PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Lemmings Bug on non english PPC's (fix)

Hello Jacco,

I own a Casio E115G (German Version) and had trouble to run Lemmings (exception on startup).
After a played around a while with the sourcecode I figured out the following:

Within the global function title(), the initialisation of the variable mod fails.
MODULE* mod = Player_Load( BGMTITLE, 4, 0 );
After execution of this statement mod is still 0x0.

Therefore I checked definition of BGMTITLE and found the reason for the problem in file lemmings.h:
There are many definitions of directories, that are only valid on english PPC's.

To fix the problem (at least for german PPC's) lemmings.h need to be changed as follows:

!---code starts here------
#ifdef _WIN32_WCE
#ifdef _GERMAN_DEVICE
#define SCREEN_TITLE      L"Programme\\EasyCE\\images\\title_pal.tga"
#define LEVEL1                  L"Programme\\EasyCE\\images\\level4.tga"
#define LEVEL2                  L"Programme\\EasyCE\\images\\level1b.tga"
#define LEVEL3                  L"Programme\\EasyCE\\images\\level5.tga"
#define LEVEL4                  L"Programme\\EasyCE\\images\\level3.tga"
#define SPRITESET            L"Programme\\EasyCE\\images\\lemanim.tga"
#define BUTTONS                  L"Programme\\EasyCE\\images\\buttons.tga"
#define BBUTTONS            L"Programme\\EasyCE\\images\\bbuttons.tga"
#define TING_WAV            "Programme\\EasyCE\\sounds\\ting.wav"
#define OHNO_WAV            "Programme\\EasyCE\\sounds\\ohno.wav"
#define EXPLODE_WAV            "Programme\\EasyCE\\sounds\\explode.wav"
#define SPLAT_WAV            "Programme\\EasyCE\\sounds\\splat.wav"
#define OING_WAV            "Programme\\EasyCE\\sounds\\oing.wav"
#define DOOR_WAV            "Programme\\EasyCE\\sounds\\door.wav"
#define LETSGO_WAV            "Programme\\EasyCE\\sounds\\letsgo.wav"
#define CHANGEOP_WAV      "Programme\\EasyCE\\sounds\\changeop.wav"
#define BGM1                  "Programme\\EasyCE\\sounds\\lem2-pol.mod"
#define BGM2                  "Programme\\EasyCE\\sounds\\lemmus0.mod"
#define BGMTITLE            "Programme\\EasyCE\\sounds\\ohnom0.mod"
#else
#define SCREEN_TITLE      L"Program Files\\EasyCE\\images\\title_pal.tga"
#define LEVEL1                  L"Program Files\\EasyCE\\images\\level4.tga"
#define LEVEL2                  L"Program Files\\EasyCE\\images\\level1b.tga"
#define LEVEL3                  L"Program Files\\EasyCE\\images\\level5.tga"
#define LEVEL4                  L"Program Files\\EasyCE\\images\\level3.tga"
#define SPRITESET            L"Program Files\\EasyCE\\images\\lemanim.tga"
#define BUTTONS                  L"Program Files\\EasyCE\\images\\buttons.tga"
#define BBUTTONS            L"Program Files\\EasyCE\\images\\bbuttons.tga"
#define TING_WAV            "Program Files\\EasyCE\\sounds\\ting.wav"
#define OHNO_WAV            "Program Files\\EasyCE\\sounds\\ohno.wav"
#define EXPLODE_WAV            "Program Files\\EasyCE\\sounds\\explode.wav"
#define SPLAT_WAV            "Program Files\\EasyCE\\sounds\\splat.wav"
#define OING_WAV            "Program Files\\EasyCE\\sounds\\oing.wav"
#define DOOR_WAV            "Program Files\\EasyCE\\sounds\\door.wav"
#define LETSGO_WAV            "Program Files\\EasyCE\\sounds\\letsgo.wav"
#define CHANGEOP_WAV      "Program Files\\EasyCE\\sounds\\changeop.wav"
#define BGM1                  "Program Files\\EasyCE\\sounds\\lem2-pol.mod"
#define BGM2                  "Program Files\\EasyCE\\sounds\\lemmus0.mod"
#define BGMTITLE            "Program Files\\EasyCE\\sounds\\ohnom0.mod"
#endif
#else
#define SCREEN_TITLE      "images/title_pal.tga"
#define LEVEL1                  "images/level4.tga"
#define LEVEL2                  "images/level1b.tga"
#define LEVEL3                  "images/level5.tga"
#define LEVEL4                  "images/level3.tga"
#define SPRITESET            "images/lemanim.tga"
#define BUTTONS                  "images/buttons.tga"
#define BBUTTONS            "images/bbuttons.tga"
#define TING_WAV            "sounds/ting.wav"
#define OHNO_WAV            "sounds/ohno.wav"
#define EXPLODE_WAV            "sounds/explode.wav"
#define SPLAT_WAV            "sounds/splat.wav"
#define OING_WAV            "sounds/oing.wav"
#define DOOR_WAV            "sounds/door.wav"
#define LETSGO_WAV            "sounds/letsgo.wav"
#define CHANGEOP_WAV      "sounds/changeop.wav"
#define BGM1                  "sounds/lem2-pol.mod"
#define BGM2                  "sounds/lemmus0.mod"
#define BGMTITLE            "sounds/ohnom0.mod"
#endif
!---code ends here--------

regards
Stefan