MantisBT - Zandronum
View Issue Details
0000911Zandronum[All Projects] Bugpublic2012-07-09 05:442012-07-11 19:42
TerminusEst13 
 
normalminoralways
closedno change required 
MicrosoftWindowsXP/Vista/7
 
 
0000911: Player.WeaponSlot only reads first word in weapon name when it conflicts with an existing actor.
Hello.

Player.WeaponSlot is a wonderful resource that allows modders to attribute specific weapons to specific classes, rather than have everyone get everything.
Quoted actor names is also a wonderful thing, allowing modders to put proper spaces and other characters in weapon/actor names.

Problem.
When Player.WeaponSlot X has a quoted actor name that happens to have the same first word as an existing actor, like say "Dragon Claw" with the same first word as HeXen's Dragon actor, or "Ripper Chaingun" with the same first word as Heretic's Ripper actor, the game does not allow the player to swap to that weapon.
Attached is a simple weapon mod, replacing the PlasmaRifle class with a "Fireball Gun" and giving the player a Player.WeaponSlot 6, "Fireball Gun" property.
The "Fireball Gun" actor has the same first word as HeXen's Fireball actor, and so when summoned (or walked over) the player will be able to pick it up but cannot use it.
One possible workaround to this is to backport the Tag actor property from ZDoom, so that the actor name is different from the display name.
No tags attached.
? te13-weaponslotproblem.wad (780) 2012-07-09 05:44
/tracker/file_download.php?file_id=640&type=bug
Issue History
2012-07-09 05:44TerminusEst13New Issue
2012-07-09 05:44TerminusEst13File Added: te13-weaponslotproblem.wad
2012-07-09 09:10TerminusEst13Note Added: 0003927
2012-07-09 17:51Torr SamahoNote Added: 0003928
2012-07-09 17:51Torr SamahoStatusnew => feedback
2012-07-10 06:24ZzZomboNote Added: 0003941
2012-07-11 17:54TerminusEst13Note Added: 0003947
2012-07-11 17:54TerminusEst13Statusfeedback => new
2012-07-11 19:41Torr SamahoNote Added: 0003949
2012-07-11 19:42Torr SamahoStatusnew => closed
2012-07-11 19:42Torr SamahoResolutionopen => no change required

Notes
(0003927)
TerminusEst13   
2012-07-09 09:10   
Oh yeah, forgot to mention. There's also a big ol' "Cannot add non-weapon actor Fireball to weapon slots" error message on starting the game.
(0003928)
Torr Samaho   
2012-07-09 17:51   
I'm pretty sure that this problems originates from ZDoom. Does your example wad work in the latest ZDoom version?
(0003941)
ZzZombo   
2012-07-10 06:24   
Tag property is here already.
(0003947)
TerminusEst13   
2012-07-11 17:54   
Ah, no, it doesn't seem to work in ZDoom, either. That settles that, I suppose. Sorry.
(0003949)
Torr Samaho   
2012-07-11 19:41   
Alright, I'm closing this then. If ZDoom should fix it, please let me know.