(Help) Some modified Things code doesn't work in GZDoom
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
(Help) Some modified Things code doesn't work in GZDoom
I modified some thing (Chaingun,items:health and armor,powerups) in DECORATE,but they don't work in GZDoom. In ZDoom yes. I tested in GZDoom v3.3.0.
-
wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
Re: (Help) Some modified Things code doesn't work in GZDoom
....Post your WAD?
-
Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: (Help) Some modified Things code doesn't work in GZDoom
Should be pinned for "How not to report a bug"!
-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
Re: (Help) Some modified Things code doesn't work in GZDoom
Tomorrow I'll post my wad.wildweasel wrote:....Post your WAD?
-
Rachael
- Posts: 13967
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: (Help) Some modified Things code doesn't work in GZDoom
I am moving this to scripting, until we know for sure there is a bug here.
-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
Re: (Help) Some modified Things code doesn't work in GZDoom
Okay. Sometimes I don't know the things.Rachael wrote:I am moving this to scripting, until we know for sure there is a bug here.
Here it is my Doom wad:http://www.mediafire.com/file/1s083c1kz ... 20v0.9.wad
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: (Help) Some modified Things code doesn't work in GZDoom
How about checking warnings in console?
I'm pretty sure that non-working modified things are in this list.
You need to name your classes differently and use replaces keyword to substitute internal GZDoom actors.
Code: Select all
Script warning, "HELL v0.9.wad:DECORATE" line 9:
Tried to define class 'ArmorBonus' more than once. Renaming class to 'ArmorBonus@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 28:
Tried to define class 'GreenArmor' more than once. Renaming class to 'GreenArmor@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 45:
Tried to define class 'BlueArmor' more than once. Renaming class to 'BlueArmor@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 62:
Tried to define class 'BlueArmorForMegasphere' more than once. Renaming class to 'BlueArmorForMegasphere@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 74:
Tried to define class 'HealthBonus' more than once. Renaming class to 'HealthBonus@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 89:
Tried to define class 'Stimpack' more than once. Renaming class to 'Stimpack@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 102:
Tried to define class 'Medikit' more than once. Renaming class to 'Medikit@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 116:
Tried to define class 'Soulsphere' more than once. Renaming class to 'Soulsphere@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 134:
Tried to define class 'MegasphereHealth' more than once. Renaming class to 'MegasphereHealth@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 147:
Tried to define class 'Berserk' more than once. Renaming class to 'Berserk@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 173:
Tried to define class 'Chaingun' more than once. Renaming class to 'Chaingun@HELL v0.9.wad@DECORATE'
Script warning, "HELL v0.9.wad:DECORATE" line 241:
Unknown class name '0' of type 'Actor'
Script warning, "HELL v0.9.wad:DECORATE" line 244:
Unknown class name '0' of type 'Actor'You need to name your classes differently and use replaces keyword to substitute internal GZDoom actors.
-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
Re: (Help) Some modified Things code doesn't work in GZDoom
I only replace? E.G:Ultra Chaingun?
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: (Help) Some modified Things code doesn't work in GZDoom
I guess it should be
instead of
And similar changes for all other warnings.
Code: Select all
ACTOR UltraChaingun : DoomWeapon replaces ChaingunCode: Select all
ACTOR Chaingun : DoomWeapon-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
Re: (Help) Some modified Things code doesn't work in GZDoom
I replaced the things. But I can't understand,that Berserk why give yet health above? Hm._mental_ wrote:I guess it should beinstead ofCode: Select all
ACTOR UltraChaingun : DoomWeapon replaces ChaingunAnd similar changes for all other warnings.Code: Select all
ACTOR Chaingun : DoomWeapon
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: (Help) Some modified Things code doesn't work in GZDoom
Did you mean why player's health can go above 200 when replaced berserk was picked up?
If so, check DEHACKED lump from your mod, line 73 to be precise
Berserk was altered to give 200 health, so player with 100 hp will have 300 after picking it up.
If so, check DEHACKED lump from your mod, line 73 to be precise
Code: Select all
Max Health = 400-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
Re: (Help) Some modified Things code doesn't work in GZDoom
In Original Doom Berserk give 100% Health,but it doesn't step the 100% health.
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: (Help) Some modified Things code doesn't work in GZDoom
In original Doom player's maximum health is 100. Megasphere and Soulsphere are special cases though.
Did you try pickup a medikit with your mod? Player's health will go above 100 because you set its maximum to 400.
Did you try pickup a medikit with your mod? Player's health will go above 100 because you set its maximum to 400.
-
Shotgun guy
- Posts: 73
- Joined: Sat Mar 24, 2018 5:35 am
- Location: Hungary
Re: (Help) Some modified Things code doesn't work in GZDoom
I set to 200% Health max without Megasphere and Soulsphere._mental_ wrote:In original Doom player's maximum health is 100. Megasphere and Soulsphere are special cases though.
Did you try pickup a medikit with your mod? Player's health will go above 100 because you set its maximum to 400.
-
_mental_
-

- Posts: 3820
- Joined: Sun Aug 07, 2011 4:32 am
Re: (Help) Some modified Things code doesn't work in GZDoom
Where did you do this?
Code: Select all
Initial Health = 200
Max Health = 400
Max Armor = 400
Green Armor Class = 2
Blue Armor Class = 4
Max Soulsphere = 400
Soulsphere Health = 200
Megasphere Health = 400
God Mode Health = 200
IDFA Armor = 400
IDFA Armor Class = 4
IDFA Armor = 400
IDKFA Armor Class = 4