Porting Addresses
#1
If you create a cheat for Mario Kart Wii and want to adapt it for all regions, then you have to adapt different addresses. With Wiimmfi and CTGPR this process is called porting. With the SZS tools since version 2.25a there are 2 new commands that support porting:

Command wstrt PORT

With this command it is possible to port addresses. To do this, you enter the region (PAL, USA, JAPAN or KOREA) and any number of addresses. The region can be changed in the middle of the command line. If the region is not specified, PAL is used. An attempt is made to port every given address to all other regions.

Further details: https://szs.wiimm.de/cmd/wstrt/port

Porting is still experimental. Therefore, please report errors or missing addresses here.


Command wstrt WHERE

This command is a by-product. This allows you to determine in which memory area the addresses are located. Here, among other things, the various DOL segments and staticR.rel are recognized.

Further details: https://szs.wiimm.de/cmd/wstrt/where
Reply
#2
I have just released a new version of the SZS tool. In particular, the two porting commands »wstrt PORT« and »wstrt WHERE« have been greatly improved.

When entering the address you now have more options:
  • Addresses can be specified with or without »0x« prefix.
  • If an address begins with »m« or »M«, then it is an offset of the file »main.dol«. If an address begins with »s« or »S«, then it is an offset of the file »staticr.rel«. This automatically converts file offsets into addresses.
  • If an address begins with a period (».«), then it is a cheat code in which only the least significant 25 bits are used for the calculation.
  • If an address without a prefix consists of exactly 6 characters, the value 0x80000000 is added. This simplifies the use of copy+paste from cheat codes.
The output has also been improved. Option --no-0x (short: -0) suppresses the output of a »0x« prefix. Option --long (short: -l) adds file offsets to the output. This makes the WHERE command ideal for converting file offsets into addresses and vice versa.

The internal porting DB has of course also been improved. It is now also possible to provide updates to this DB at a later date (option --port-db=file).

All details:
* https://szs.wiimm.de/cmd/wstrt/port
* https://szs.wiimm.de/cmd/wstrt/where
Reply
#3
I recalculated the porting DB with a better algorithm. You can find the update here: https://szs.wiimm.de/wstrt/cmd-port.html#update
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)