Talk:Modified LE-CODE Loader

From Custom Mario Kart
Jump to navigation Jump to search

Wiimms SZS Tools since v2.40a/v2.40b

Can anyone test, if the option --add-lecode of the newest tool set works like this cheat code? -- Wiimm (talk) 16:08, 31 December 2023 (UTC)

Unfortunately, it didn't work. Curiously, the timing of the second LE-CODE binaries being linked changed.Runtime Wbz Decoding is not affected, but LE-CODE broken. At least, that's what I notice when I enter the World Wide room. Live View will always be Mario Circuit. Even though other players are actually running on different tracks. I am working on a REL based mod other than Runtime Wbz Decoding, such as USB GCN support, and a mod to add ghost saving capability to LE-CODE. So I am testing that as well, so I am convinced that it is not Runtime Wbz Decoding, but multiple links of REL that is causing the problem. -- Kazuki (talk) 03:08, 1 January 2024 (UTC)
I forwarded it to Leseratte. -- Wiimm (talk) 09:04, 1 January 2024 (UTC)
I made a fatal error. In the final version of v2.40a I forgot to add 00 D0 C0 DE 00 D0 C0 DE C2 at the beginning. So the cheat code was silently denied/ignored. -- Wiimm (talk) 08:54, 2 January 2024 (UTC)
Kazuki, can you please test again with v2.40b? -- Wiimm (talk) 18:17, 2 January 2024 (UTC)
Nothing has changed since v2.40a. It still does not work. Have you tested it yourself? -- Kazuki (talk) 03:18, 3 January 2024 (UTC)
Yes, I tested it. Very curios. Have you really used v2.40b?
Btw, you can use wstrt help _rawdump to export the internal data. The first 32 bytes of lecode_loader_pal.bin are:
  0:   0 d0 c0 de   0 d0 c0 de  c2 1a 6d 30   0  0  0 40
 10:  94 21 fe d8  7c  8  2 a6  90  1  1 2c  be e1  1  4
In 2.40a the first 8 bytes were missed. -- Wiimm (talk) 13:39, 3 January 2024 (UTC)
Yes, I checked the version. I created main.dol with the following command:
wstrt patch main.dol --add-lecode --add-section code.gct
code.gct does not contain the Modified LE-CODE Loader.
I don't know where the lecode_loader_pal.bin is to begin with.
I just disassembled and modified the code that CLF78 posted on mkwii.com. -- Kazuki (talk) 19:33, 3 January 2024 (UTC)
Yesterday we played the last Intermezzo. It includes v2.40b and works.
About rawdump: My fault, because the command only export the lecode starter in my private version. I'll changed it for the next release.
Wiimm (talk) 17:51, 4 January 2024 (UTC)
Intermezzo does not include custom RELs. This problem is not noticed until you enter WorldWide with a distribution that uses custom RELs and LE-CODE. Kazuki (talk) 07:19, 5 January 2024 (UTC)
You told: "Nothing has changed since v2.40a.". And v2.40a doesn't start LE-CODE, but v2.40b does. So Intermezzo is relevant as test scenario. And it is clear, that worldwide doesn't function if LE-CODE is started twice. That is the reason to ask you for assistance. -- Wiimm (talk) 09:21, 5 January 2024 (UTC)
At least in my testing, v2.40a started LE-CODE. All I can do is modify the LE-CODE starter to prevent lecode-XXX.bin from running more than once. I cannot modify lecode-XXX.bin. I think that should be done by you and Leseratte. If you release the source code of lecode-XXX.bin, maybe I or some other modder can fix it. -- Kazuki (talk) 10:45, 5 January 2024 (UTC)