MTrop / DoomTools

Doom-related tools for Java. Home of DECOHack and lots of other utilities. Build WAD projects (and soon, other kinds) with ease!
https://mtrop.github.io/DoomTools/
MIT License
46 stars 5 forks source link

[DECOHack] DropItem not Saving Properly if Only Change #91

Closed MTrop closed 1 year ago

MTrop commented 1 year ago

From Doomy__Doom on DoomWorld:


If the only thing you specify is dropitem, empty dehacked is generated.

Minimal setup

using mbf21

thing 11 "Chaingun Sargeant"
{
    DropItem 64
}

produces

Patch File for DeHackEd v3.0
# Created with DECOHack v0.30.1 by Matt Tropiano
# Note: Use the pound sign ('#') to start comment lines.

Doom version = 21
Patch format = 6

Adding something else

using mbf21

thing 11 "Chaingun Sargeant"
{
    Mass 101
    DropItem 64
}

produces expected result

Patch File for DeHackEd v3.0
# Created with DECOHack v0.30.1 by Matt Tropiano
# Note: Use the pound sign ('#') to start comment lines.

Doom version = 21
Patch format = 6

Thing 11 (Chaingun Sargeant)
Mass = 101
Dropped item = 64

Looks like some boolean value is not getting tripped on export.

MTrop commented 1 year ago

Fixed in commit bd4fd66e45dcd97474f42445f6ee95504ae2520a.