This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Lemmings Bug on non english PPC's (fix)


Lemmings Bug on non english PPC's (fix)

Postby Stefan » Jan 8, 2002 @ 9:35am

Hello Jacco,<br><br>I own a Casio E115G (German Version) and had trouble to run Lemmings (exception on startup).<br>After a played around a while with the sourcecode I figured out the following:<br><br>Within the global function title(), the initialisation of the variable mod fails.<br>MODULE* mod = Player_Load( BGMTITLE, 4, 0 );<br>After execution of this statement mod is still 0x0.<br><br>Therefore I checked definition of BGMTITLE and found the reason for the problem in file lemmings.h:<br>There are many definitions of directories, that are only valid on english PPC's.<br><br>To fix the problem (at least for german PPC's) lemmings.h need to be changed as follows:<br><br>!---code starts here------<br>#ifdef _WIN32_WCE<br>#ifdef _GERMAN_DEVICE<br>#define SCREEN_TITLE      L"Programme\\EasyCE\\images\\title_pal.tga"<br>#define LEVEL1                  L"Programme\\EasyCE\\images\\level4.tga"<br>#define LEVEL2                  L"Programme\\EasyCE\\images\\level1b.tga"<br>#define LEVEL3                  L"Programme\\EasyCE\\images\\level5.tga"<br>#define LEVEL4                  L"Programme\\EasyCE\\images\\level3.tga"<br>#define SPRITESET            L"Programme\\EasyCE\\images\\lemanim.tga"<br>#define BUTTONS                  L"Programme\\EasyCE\\images\\buttons.tga"<br>#define BBUTTONS            L"Programme\\EasyCE\\images\\bbuttons.tga"<br>#define TING_WAV            "Programme\\EasyCE\\sounds\\ting.wav"<br>#define OHNO_WAV            "Programme\\EasyCE\\sounds\\ohno.wav"<br>#define EXPLODE_WAV            "Programme\\EasyCE\\sounds\\explode.wav"<br>#define SPLAT_WAV            "Programme\\EasyCE\\sounds\\splat.wav"<br>#define OING_WAV            "Programme\\EasyCE\\sounds\\oing.wav"<br>#define DOOR_WAV            "Programme\\EasyCE\\sounds\\door.wav"<br>#define LETSGO_WAV            "Programme\\EasyCE\\sounds\\letsgo.wav"<br>#define CHANGEOP_WAV      "Programme\\EasyCE\\sounds\\changeop.wav"<br>#define BGM1                  "Programme\\EasyCE\\sounds\\lem2-pol.mod"<br>#define BGM2                  "Programme\\EasyCE\\sounds\\lemmus0.mod"<br>#define BGMTITLE            "Programme\\EasyCE\\sounds\\ohnom0.mod"<br>#else<br>#define SCREEN_TITLE      L"Program Files\\EasyCE\\images\\title_pal.tga"<br>#define LEVEL1                  L"Program Files\\EasyCE\\images\\level4.tga"<br>#define LEVEL2                  L"Program Files\\EasyCE\\images\\level1b.tga"<br>#define LEVEL3                  L"Program Files\\EasyCE\\images\\level5.tga"<br>#define LEVEL4                  L"Program Files\\EasyCE\\images\\level3.tga"<br>#define SPRITESET            L"Program Files\\EasyCE\\images\\lemanim.tga"<br>#define BUTTONS                  L"Program Files\\EasyCE\\images\\buttons.tga"<br>#define BBUTTONS            L"Program Files\\EasyCE\\images\\bbuttons.tga"<br>#define TING_WAV            "Program Files\\EasyCE\\sounds\\ting.wav"<br>#define OHNO_WAV            "Program Files\\EasyCE\\sounds\\ohno.wav"<br>#define EXPLODE_WAV            "Program Files\\EasyCE\\sounds\\explode.wav"<br>#define SPLAT_WAV            "Program Files\\EasyCE\\sounds\\splat.wav"<br>#define OING_WAV            "Program Files\\EasyCE\\sounds\\oing.wav"<br>#define DOOR_WAV            "Program Files\\EasyCE\\sounds\\door.wav"<br>#define LETSGO_WAV            "Program Files\\EasyCE\\sounds\\letsgo.wav"<br>#define CHANGEOP_WAV      "Program Files\\EasyCE\\sounds\\changeop.wav"<br>#define BGM1                  "Program Files\\EasyCE\\sounds\\lem2-pol.mod"<br>#define BGM2                  "Program Files\\EasyCE\\sounds\\lemmus0.mod"<br>#define BGMTITLE            "Program Files\\EasyCE\\sounds\\ohnom0.mod"<br>#endif<br>#else<br>#define SCREEN_TITLE      "images/title_pal.tga"<br>#define LEVEL1                  "images/level4.tga"<br>#define LEVEL2                  "images/level1b.tga"<br>#define LEVEL3                  "images/level5.tga"<br>#define LEVEL4                  "images/level3.tga"<br>#define SPRITESET            "images/lemanim.tga"<br>#define BUTTONS                  "images/buttons.tga"<br>#define BBUTTONS            "images/bbuttons.tga"<br>#define TING_WAV            "sounds/ting.wav"<br>#define OHNO_WAV            "sounds/ohno.wav"<br>#define EXPLODE_WAV            "sounds/explode.wav"<br>#define SPLAT_WAV            "sounds/splat.wav"<br>#define OING_WAV            "sounds/oing.wav"<br>#define DOOR_WAV            "sounds/door.wav"<br>#define LETSGO_WAV            "sounds/letsgo.wav"<br>#define CHANGEOP_WAV      "sounds/changeop.wav"<br>#define BGM1                  "sounds/lem2-pol.mod"<br>#define BGM2                  "sounds/lemmus0.mod"<br>#define BGMTITLE            "sounds/ohnom0.mod"<br>#endif<br>!---code ends here--------<br><br>regards<br>Stefan
Stefan
 


Return to Phantom's Forum


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum