Custom Distribution, LE-Code not loaded

      Custom Distribution, LE-Code not loaded

      Hi,
      first of all thank you for the great work in modding MKwii!

      My goal is to set up a very small custom distribution for my wife and me with some custom maps and AI-Tweaks.

      I followed this toturial video here:

      Note: This video will be loaded from YouTube, which causes some data, including but not limited to your IP, User Agent and Referrer, to be sent to YouTube servers. For more information see the Privacy Policy. By pressing the "play" button you automatically enable embedding YouTube videos for the future.


      Hinweis: Dieses Video wird von YouTube geladen. Dabei werden einige Daten, unter anderem Ihre IP, Ihr User Agent und der Referrer an YouTube-Server gesendet. Für weitere Details lesen Sie bitte die Datenschutzerklärung. Wenn Sie den Play-Button anklicken, erlauben Sie damit automatisch das Einbinden von YouTube-Videos für die Zukunft.

      and I think I set up everything correctly.

      However, LE-Code seems not to be loaded. My custom cup does not show up, nor do I see the speed-o-meter which I activated.
      I now read alot about patching a main.dol file, but I could not find when I need it and what I should actually be doing here (and where to put it and how to load it). (I checked https://wiki.tockdom.com/wiki/LE-CODE/Distribution_Tutorial)

      I start my custom distribution via Riivolution. So do I even need the main.dol file to be patched? Is there anything else I am doing wrong?

      My lecode.bin looks like this:

      Spoiler anzeigen

      DUMP LE-BIN:2022-10-20.build-34/lecode-PAL.bin

      LE-CODE binary, valid=FVKLfvk, file size: 11da0/hex = 73120 bytes

      File header:
      Magic: LECT
      Version: 4
      Build number: 34
      Region code: P = PAL
      Debug flag: R = Release
      Header size: 20/hex = 32 bytes
      Total size: 11da0/hex = 73120 bytes
      Offset param: 40/hex
      Base address: 808dd400/hex
      Entry point: 808dd6ac/hex
      Time of creation: 2022-10-20 15:57:00

      Parameters (LPAR):
      Magic: LPAR
      Version: 1
      Param size: 26c/hex = 620 bytes
      Allow cheat codes: 0 = disabled
      Engine chances: 10 + 60 + 30 = 100 (100cc+150cc+mirror=total)
      200cc: 0 = disabled
      Perform. monitor: 0 = disabled
      Custom Timetrial: 0 = disabled
      Extended P-Flags: 1 = enabled
      Block tracks for: 0 races
      Speedometer: 2 = format "123.1 km/h"
      Debug mode: 0 = disabled
      Item cheat: 0 = disabled
      Drag blue shells: 1 = enabled
      Thundercloud time: 720 frames = 12.00s
      Textures: bt=0 (disabled), vs=0 (disabled)
      Block textures: 1

      Sections (offset,n/max):
      Cup parameters: a000/hex
      Racing track cups: a010/hex, 10 / 1024
      Battle arena cups: e010/hex, 2 / 2
      Course parameters: e040/hex
      Property list: e050/hex, 72 / 4096
      Music list: f050/hex, 72 / 4096
      Flags list: 10050/hex, 72 / 4096 (8 bits)
      End of data: 11050/hex
      End of file: 11da0/hex

      Cup and course parameters (n/max):
      Cup magic: CUP2
      Racing track cups: 10 / 1024
      Battle arena cups: 2 / 2
      Course magic: CRS2
      Total track slots: 72 / 4096
      Used racing slots: 0 / 36
      Used battle slots: 0 / 10



      MY Riivolution XML looks like this:

      Spoiler anzeigen

      <?xml version="1.0"?>

      -<wiidisc version="1">

      <id game="RMC"/>


      -<options>


      -<section name="MkkWii by Micha">


      -<option name="MkkWii by Micha:">


      -<choice name="Enabled" default="1">

      <patch id="Pack"/>

      <patch id="OnlinePack"/>

      </choice>

      </option>

      </section>

      </options>


      -<patch id="Pack">

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/eu/English.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/eu/Dutch.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/eu/French.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/eu/German.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/eu/Italian.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/eu/Spanish_EU.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/us/English.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/us/French.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/us/Spanish_US.szs"/>

      <file external="/pack_micha/boot/English.szs" disc="/Boot/Strap/jp/jp.szs"/>

      <file external="/pack_micha/boot/lecode-PAL.bin" disc="/rel/lecode-PAL.bin" create="true"/>

      <file external="/pack_micha/boot/lecode-USA.bin" disc="/rel/lecode-USA.bin" create="true"/>

      <file external="/pack_micha/boot/lecode-JAP.bin" disc="/rel/lecode-JAP.bin" create="true"/>

      <folder external="/pack_micha/Race/Course" disc="/Race/Course" create="true"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_F.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_G.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_I.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_S.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_F.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_G.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_I.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_S.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_F.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_G.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_I.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_S.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_F.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_G.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_I.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_S.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_J.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_M.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_Q.szs"/>

      <file external="/pack_micha/Scene/MenuMulti_E.szs" disc="/Scene/UI/MenuMulti_U.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_J.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_M.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_Q.szs"/>

      <file external="/pack_micha/Scene/MenuSingle_E.szs" disc="/Scene/UI/MenuSingle_U.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_J.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_M.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_Q.szs"/>

      <file external="/pack_micha/Scene/Race_E.szs" disc="/Scene/UI/Race_U.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_J.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_M.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_Q.szs"/>

      <file external="/pack_micha/Scene/Title_E.szs" disc="/Scene/UI/Title_U.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_E.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_F.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_G.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_S.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_I.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_J.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_Q.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_U.szs"/>

      <file external="/pack_micha/Scene/Globe_E.szs" disc="/Scene/UI/Globe_M.szs"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/banana.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/cup_select.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/flower.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/kinoko.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/konoha.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/koura.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/special.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/star.thp"/>

      <file external="/pack_micha/thp/video.thp" disc="/thp/course/thunder.thp"/>

      <folder external="/pack_micha/Scene" recursive="true"/>

      <folder external="/pack_micha/" disc="/"/>

      </patch>


      -<patch id="OnlinePack">

      <memory offset="0x80258700" valuefile="/pack_micha/boot/LoaderP.bin"/>

      <memory offset="0x8000629C" value="48252FB0"/>

      <folder external="/pack_micha/codes" disc="/codes" create="true"/>

      <memory offset="0x800017C4" value="0266"/>

      <memory offset="0x800017C6" value="313030363134"/>

      </patch>

      </wiidisc>



      I think my first goal is to get the speedometer running, so I know lecode is loaded and then I can have a look on any further bugs.

      I am glad for any help you can provide. Thanks in advance!
      What is that "LoaderP.bin" file and the other memory patches you've added? Doesn't look like it's my LE-CODE loader.

      The game needs to be patched, either by modifying the main.dol or by adding an appropriate Riivolution memory patch, to make it load and execute the lecode-XXX.bin file upon boot. An original, unmodified main.dol is not going to load the LE-CODE binary.

      DevkitPro Archiv (alte Versionen / old versions): wii.leseratte10.de/devkitPro/
      Want to donate for Wiimmfi and Wii-Homebrew.com? Patreon / PayPal

      Dieser Beitrag wurde bereits 0 mal editiert, zuletzt von Leseratte ()

      Leseratte schrieb:

      An original, unmodified main.dol is not going to load the LE-CODE binary.
      Patch main.dol with --add-lecode. See wiki.tockdom.com/wiki/LE-CODE/…in.dol_and_lecode-.2A.bin for details.

      WIT: Wiimms ISO Tools
      Verwaltet Plain ISO, WDF, WIA, CISO, WBFS, FST: kann Extrahieren, Erstellen, Patchen, Mischen und Überprüfen

      SZS: Wiimms SZS Tools
      Verwaltet SZS-, BRRES-, U8-, BMG-, BREFT-Dateien uvm.



      PN ohne persönlichen Charakter werden ignoriert. Support-Anfragen gehören ins Forum.