gtrafimenkov / ja2-experiments

Experimenting with Jagged Alliance 2 sources
0 stars 0 forks source link

Editor is crashing #5

Open gtrafimenkov opened 1 year ago

gtrafimenkov commented 1 year ago

When launching with JA2-vanilla.exe -EDITOR after the intro application is crashing.

gtrafimenkov commented 1 year ago

Crash in the debugger: image

gtrafimenkov commented 1 year ago

The app crashes because:

editor.slf is not here:

LibraryInitHeader gGameLibaries[] = {
    // Library Name                 Can be  Init at start
    //                                                  on
    // cd
    {"Data.slf", FALSE, TRUE},
    {"Ambient.slf", FALSE, TRUE},
    {"Anims.slf", FALSE, TRUE},
    {"BattleSnds.slf", FALSE, TRUE},
    {"BigItems.slf", FALSE, TRUE},
    {"BinaryData.slf", FALSE, TRUE},
    {"Cursors.slf", FALSE, TRUE},
    {"Faces.slf", FALSE, TRUE},
    {"Fonts.slf", FALSE, TRUE},
    {"Interface.slf", FALSE, TRUE},
    {"Laptop.slf", FALSE, TRUE},
    {"Maps.slf", TRUE, TRUE},
    {"MercEdt.slf", FALSE, TRUE},
    {"Music.slf", TRUE, TRUE},
    {"Npc_Speech.slf", TRUE, TRUE},
    {"NpcData.slf", FALSE, TRUE},
    {"RadarMaps.slf", FALSE, TRUE},
    {"Sounds.slf", FALSE, TRUE},
    {"Speech.slf", TRUE, TRUE},
    //  { "TileCache.slf",              FALSE, TRUE },
    {"TileSets.slf", TRUE, TRUE},
    {"LoadScreens.slf", TRUE, TRUE},
    {"Intro.slf", TRUE, TRUE},

#ifdef JA2DEMO
    {"DemoAds.slf", FALSE, TRUE},
#endif

#ifdef GERMAN
    {"German.slf", FALSE, TRUE},
#endif

#ifdef POLISH
    {"Polish.slf", FALSE, TRUE},
#endif

#ifdef DUTCH
    {"Dutch.slf", FALSE, TRUE},
#endif

#ifdef ITALIAN
    {"Italian.slf", FALSE, TRUE},
#endif

#ifdef RUSSIAN
    {"Russian.slf", FALSE, TRUE},
#endif

};

So, there are few issues with this code: