You could delete or rename the DAT files (except LEVELS.DAT) from the mods folder.Akruzen wrote: ↑October 8th, 2022, 12:22 pm Also, it seems I can have either have custom graphics, or custom level map. How can I achieve both? Currently, to use my custom level file, I edit the levels using apoplexy editor and put the game in mods folder of SDLPoP. However, when I mention use of mods folder in SDLPoP.ini file, the game uses the mod's (original) graphics and not the one I edited in SDLPoP's data\kid directory. How to achieve both?
New Mod Doubts
Re: New Mod Doubts
Re: New Mod Doubts
You need to change data/DIGISND*.DAT with PR.
I know the sounds should be in separate files (data/DIGISND*/res*.wav) like the images, but for some reason I did not implement loading sounds from separate files yet.
Alternatively, you can edit data/music/names.txt, add an <ID>=<name> line for a sound effect, then put a <name>.ogg file into the same folder.
The sound IDs are in src/types.h, in enum soundids.
This does not seem to work!?
EDIT: It *does* work.
I just happened to test with an OGG file which triggers a bug in stb_vorbis.
Namely, if an OGG file has no metadata, opening fails with an "out of memory" error.
Fixed it: https://github.com/NagyD/SDLPoP/commit/ ... 59ae28d090
Re: New Mod Doubts
Thanks for your reply David, that did work.
Sure, will try that today.
Any idea on how to resolve doubts 1 and 2? If it is too ambitious or extremely difficult, just let me know and I will try to find a work-around for it. But needless to say, the intended way would be preferred.
Thanks again,
Best Regards,
Akruzen
What if life is a video game and Déjà Vu are just checkpoints?
Re: New Mod Doubts
Here is how I could do it: https://github.com/NagyD/SDLPoP/commit/ ... ed89c0a1fc
(By the way, there was a similar request for DOS PoP here: viewtopic.php?f=68&t=3778 )
With the original kid images, if I recolor the sword then the kid's clothing is also recolored, because the same color index is used for both.
Here is how to do it anyway: https://github.com/NagyD/SDLPoP/commit/ ... 194c50169f
Probably set_chtab_palette() should be called not where I called it, but when the certain condition becomes true.