BringUpWeapon causes error on startup in devbuild

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
DrPyspy
Posts: 278
Joined: Sat Feb 21, 2015 7:35 pm
Operating System Version (Optional): Windows XP Gangster Edition
Location: Utah, USA

BringUpWeapon causes error on startup in devbuild

Post by DrPyspy »

When starting up the most recent devbuild (obtained from gzdoom-x64-g3.7pre-761-gcbb5f8a0d.7z) a mod that calls BringUpWeapon as player.BringUpWeapon() as opposed to player.mo.BringUpWeapon() will cause GZDoom to stop the startup process with an error that states "Script error, [...] Unknown function BringUpWeapon"

I have prepared an example pk3 that will properly run in 3.6.0, but will demonstrate the behavior above when ran in the specified devbuild: link here

A couple mods that do this and were released before the change are the 2.0 release of Doom Delta, and abort_m, although the linked commit has changed it from player.BringUpWeapon() to player.mo.BringUpWeapon()
User avatar
Rachael
Posts: 13572
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: BringUpWeapon causes error on startup in devbuild

Post by Rachael »

Seeing two mods break with this change, but seeing this happen in two mods, it's giving a clue that this problem may be a bit more widespread than I thought, initially. Thanks for the minimal example, by the way, DrPypsy.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: BringUpWeapon causes error on startup in devbuild

Post by Marisa the Magician »

Thanks for this. I reverted my change.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: BringUpWeapon causes error on startup in devbuild

Post by Graf Zahl »

Keep in mind that I deprecated the PlayerInfo variant from ZScript version 3.7 onwards.
User avatar
Rachael
Posts: 13572
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: BringUpWeapon causes error on startup in devbuild

Post by Rachael »

That's fine - I do think that what's important here is that the change didn't break mods that were previously compatible with 3.6.0. It was a concern that I had toward that change.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: BringUpWeapon causes error on startup in devbuild

Post by Marisa the Magician »

Obviously I will change it back when 3.7 is out.
Post Reply

Return to “Closed Bugs [GZDoom]”