Template:Ps2configrev: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
m (Another 7 more needed)
Line 8: Line 8:
         |<!--else-->{{#ifexpr:{{{1|0}}}>=15937 and {{{1|0}}}<=16195
         |<!--else-->{{#ifexpr:{{{1|0}}}>=15937 and {{{1|0}}}<=16195
           |<!--then-->[[4.00_CEX|4.00]] or newer
           |<!--then-->[[4.00_CEX|4.00]] or newer
           |<!--else-->('''Unknown config revision, please help <strike>adding</strike> breaking the template {{edit|Template:ps2configrev|<nowiki>{{ps2configrev}}</nowiki>}}''')
           |<!--else-->{{#ifexpr:{{{1|0}}}>=16196 and {{{1|0}}}<=16361
            |<!--then-->[[4.10_CEX|4.10]] or newer
            |<!--else-->{{#ifexpr:{{{1|0}}}>=16362 and {{{1|0}}}<=16604
              |<!--then-->[[4.20_CEX|4.20]] or newer
              |<!--else-->{{#ifexpr:{{{1|0}}}>=16605 and {{{1|0}}}<=16740
                |<!--then-->[[4.25_CEX|4.25]] or newer
                |<!--else-->('''Unknown config revision, please help <strike>adding</strike> breaking the template {{edit|Template:ps2configrev|<nowiki>{{ps2configrev}}</nowiki>}}''')
              }}
            }}
          }}
         }}
         }}
       }}
       }}
Line 16: Line 25:
<!-- failed first attempt
<!-- failed first attempt
*Requires [[PS2 Emulation|ps2_netemu.self]] from firmware {{#switch:{{{1|}}}
*Requires [[PS2 Emulation|ps2_netemu.self]] from firmware {{#switch:{{{1|}}}
| 15686    = [[3.70_CEX|3.70]] or newer
| 15842    = [[3.72_CEX|3.72]] or newer
| 15936    = [[3.73_CEX|3.73]] or newer
| 16195    = [[4.00_CEX|4.00]] or newer
| 16361    = [[4.10_CEX|4.10]] or newer
| 16604    = [[4.20_CEX|4.20]] or newer
| 16740    = [[4.25_CEX|4.25]] or newer
| 9841
| 0x9841
| 4198
| 0x4198
| 16792    = [[4.30_CEX|4.30]] or newer
| 16792    = [[4.30_CEX|4.30]] or newer
| 5744
| 0x5744
| 4457
| 0x4457
| 17495    = [[4.78_CEX|4.78]] or newer
| 17495    = [[4.78_CEX|4.78]] or newer
| #default  = ('''Unknown config revision, please help <strike>adding</strike> breaking the template {{edit|Template:ps2configrev|<nowiki>{{ps2configrev}}</nowiki>}}''')
| #default  = ('''Unknown config revision, please help <strike>adding</strike> breaking the template {{edit|Template:ps2configrev|<nowiki>{{ps2configrev}}</nowiki>}}''')
}}
}}
Line 46: Line 37:
{{ps2configrev|15900}}<br>
{{ps2configrev|15900}}<br>
{{ps2configrev|16000}}<br>
{{ps2configrev|16000}}<br>
{{ps2configrev|16200}}<br>
{{ps2configrev|16500}}<br>
{{ps2configrev|16700}}<br>
{{ps2configrev|99999999}}
{{ps2configrev|99999999}}



Revision as of 10:24, 27 September 2021



Tests


Notes

It could be handy to do the conversion in this sequence: 1) hexLE to hexBE, 2) hexBE to dec, 3) Math expression to compare the value in ranges
I been trying to do step 2 using this template https://en.wikipedia.org/wiki/Template:Hex2dec Is dependant of the module https://en.wikipedia.org/wiki/Module:BaseConvert Actually we dont need the template because we can call the module BaseConvert directly in a single line this way: {{#invoke:BaseConvert|16to10|FFFF}}
We already have a template named https://www.psdevwiki.com/ps3/Template:Hex2dec ... but is not doing the conversion
We already have the module BaseConvert installed in this wiki https://www.psdevwiki.com/ps3/Special:Version but doesnt seems to work, it looks we cant "#invoke" it. Im wondering if is because we need to copy also the script into https://www.psdevwiki.com/ps3/Module:BaseConvert (the page doesnt exists)
So... by now i dont know how to do steps 1 and 2 of the conversion process. And the math expressions (required for step 3) only works with decimals... so the only solution by now is to pass the decimal value to this template