Page 1 of 1

deh / bex override

Posted: Thu Mar 30, 2017 2:24
by Jamesff
I have been playing the pwad invasion.wad with freedoom pahse one via GZDoom (latest version) and have noticed (by checking the console output) that the FreeDoom iwad's deh / bex lump loads last, overriding the pwad's accompanying deh file, which loads before the iwad's lump. There is nothing wrong with the invasion.deh file, and it is last in the load order, so why is it loading after the iwad's deh/bex lump?

Re: deh / bex override

Posted: Thu Mar 30, 2017 9:06
by Graf Zahl
Do you have a link to the mod?

Re: deh / bex override

Posted: Thu Mar 30, 2017 9:48
by _mental_
I guess it's about this one.

However the problem seems to be unrelated to particular PWAD. It's caused by presence of DEHACKED lump in IWAD.
The latter is processed twice and the second one overwrites entries patched by standalone .deh file.

Re: deh / bex override

Posted: Fri Mar 31, 2017 1:10
by Jamesff
Yeah, I think that's it, _merntal_.

And the problem is unrelated to that pwad or its deh file. When I play them with Ultimate Doom, the pwad's deh file is not overwritten; that only happens with FreeDoom.

Re: deh / bex override

Posted: Sun Apr 02, 2017 22:17
by Jamesff
One additional note: I have discovered that the bex patch in Freedoom.wad / Freedoom2.wad is only installed last if a standalone bex/deh patch with altered strings is loaded.

Re: deh / bex override

Posted: Tue Apr 04, 2017 10:24
by _mental_
I changed DEHACKED loading a bit. Lumps from IWAD now have precedence over separate files and lumps from PWADs.

Re: deh / bex override

Posted: Tue Apr 04, 2017 21:42
by Jamesff
Shouldn't the standalone deh/bex file or PWAD lump be loaded have precedence over and therefore overwrite the IWAD's lump?

Re: deh / bex override

Posted: Wed Apr 05, 2017 6:08
by _mental_
By precedence I mean that one lump is loaded before another. IWAD's lump is loaded first, then separate file(s), and then lump(s) from PWAD. Each next lump may override changes done by previous one.

Re: deh / bex override

Posted: Wed Apr 05, 2017 21:41
by Jamesff
Oh, OK. That should be fine.