Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Bug? Different DECORATE lump behaviour for archive vs folder

$
0
0
Hey fellas

So here's the story, I wanted to make the mod Weapons of Saturn not have any screen shaking.

Inside the mod, we have an "ACTORS" subfolder with text files that get included in the root DECORATE file.

Instead of just modding the mod directly, I wondered if I could make a patch archive. I discovered that I could just replace the text files containing the Actor definitions with mine in a new folder, ZDoom seeing each as a lump.

So my patch looks like this:

Code:

weapons_of_saturn_no_shake    ACTORS        1911.txt        COACHGUN.txt        KNUCKLES.txt        MACHINERIFLE.txt        MINIGUN.txt        MP40.txt        NOVARIFLE.txt        PISTOL.txt        RIOTGUN.txt        SATURNV.txt        TITAN.txt 

And that's it. It's just those 11 "lumps". Here's the funny bit, this only works if the patch is provided as a folder, not as a zipped archive! In both cases, ZDoom logs 11 lumps recognised, but it looks like the DECORATE is parsed differently.

Again, when I just pass ZDOOM a path to the folder, it works!

Works: gzdoom.exe weapons_of_saturn.pk3 weapons_of_saturn_no_shake

Does not: gzdoom.exe weapons_of_saturn.pk3 weapons_of_saturn_no_shake.pk3

If this could be made to work with archives, then maybe mod patches would be easier?

I've attached the archive for you to try yourself :)

Cheers
Steve
weapons_of_saturn_no_shake.pk3

Statistics: Posted by SuaveSteve — Fri Feb 23, 2024 9:10 pm



Viewing all articles
Browse latest Browse all 3391

Trending Articles