Add-on Support: [EASY :)]]
wcapes opened this issue · 1 comments
wcapes commented
Hi
Can we have game add-on support
If we could put additional games in subfolders, like new levels or new campaigns
Would be pretty easy: OPENJAZZ eg: OPENJAZZ LevelPack
This would then load from 'LevelPack' first and if there is no file in 'LevelPack' load the original game files.
so, main game files and openjazz.exe in the main folder, and subfolders for additions ( new music, levels, full games etc etc )
I'll be happy to help if this is accepted
carstene1ns commented
This is already possible. It works like you described it.
Here is the console log, as you can see it uses the special episode first and falls back:
$ ./OpenJazz games/jazz-shareware/ games/jazz-jackrabbit-holiday-hare-1995/
16:13:41 INFO This is OpenJazz git, built on Apr 10 2022. (main.cpp:679)
16:13:41 DEBUG Opened file: openjazz.cfg (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/SOUNDS.000 (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/PANEL.000 (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/FONT2.0FN (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/FONTBIG.0FN (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/FONTINY.0FN (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/FONTMN1.0FN (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/FONTMN2.0FN (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/MENUSNG.PSM (file.cpp:134)
16:13:41 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/STARTUP.0SC (file.cpp:134)
16:13:45 DEBUG Opened file: openjazz.000 (file.cpp:134)
16:13:45 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/MENU.000 (file.cpp:134)
16:13:45 DEBUG Opened file: games/jazz-shareware/MACRO.1 (file.cpp:134)
16:13:45 DEBUG Opened file: games/jazz-shareware/MACRO.2 (file.cpp:134)
16:13:45 DEBUG Opened file: games/jazz-shareware/MACRO.3 (file.cpp:134)
16:13:45 DEBUG Opened file: games/jazz-shareware/MACRO.4 (file.cpp:134)
16:13:48 DEBUG Opened file: games/jazz-shareware/LEVEL0.000 (file.cpp:134)
16:13:48 WARN Could not open file: LEVEL0.003 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.006 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.009 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.012 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.015 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.030 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.033 (file.cpp:60)
16:13:48 WARN Could not open file: LEVEL0.036 (file.cpp:60)
16:13:48 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/LEVEL0.050 (file.cpp:134)
16:13:48 DEBUG Opened file: games/jazz-shareware/BONUSMAP.000 (file.cpp:134)
16:14:10 DEBUG Opened file: games/jazz-jackrabbit-holiday-hare-1995/END.0SC (file.cpp:134)
16:14:11 DEBUG Opened file: openjazz.cfg (file.cpp:134)