IDKFA gives all weapons twice

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
Michi
Posts: 76
Joined: Mon Mar 28, 2005 10:09 am

IDKFA gives all weapons twice

Post by Michi »

If you type IDKFA the alternative Hud will show all weapons twice. printinv lists all Chex Quest weapons in addition to Doom's. It looks like weapons are only added by looking at the existing sprites.
Blzut3
 
 
Posts: 3215
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: IDKFA gives all weapons twice

Post by Blzut3 »

They are added if the sprites exists. This more than likely won't be changed since being able to use weapons from other games is intended behavior. Though it not really needed anymore, I see no reason to brake old mods because cheating in chex quest doesn't look right.
User avatar
Enjay
 
 
Posts: 27285
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: IDKFA gives all weapons twice

Post by Enjay »

However, if you cheat in Doom, you also get a row of weapons up the side of the screen with Alt_HUD that are, presumably, Chex weapons although, obviously, they use Doom graphics.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IDKFA gives all weapons twice

Post by Graf Zahl »

How about only giving weapons that are in a weapon slot? I know that in a few cases that may not give something that is expected to be given but it for sure eliminates the possibility of weapon duplicates being given. Is that an acceptable compromise?
User avatar
Enjay
 
 
Posts: 27285
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: IDKFA gives all weapons twice

Post by Enjay »

Doing so might make quick texting of certain items a little more complex (eg the mounted chaingun in Burghead isn't in a slot) but provided that "give whatevergun" and "use whatevergun" would still work then, yes, I think it would be much neater than a row of unselectable weapons appearing down the side of the screen.
User avatar
Rachael
Posts: 13965
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: IDKFA gives all weapons twice

Post by Rachael »

Also, I think all +POWERED_UP weapons should not be "given", as their sister counterparts should be the ones that use them. You can't even use them without the powerup, anyway.

I noticed this when I tested my weapons powerup mod on the old 1.1.04 version of GZDoom.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IDKFA gives all weapons twice

Post by Graf Zahl »

They need to be given because otherwise you can't use them at all!
User avatar
Rachael
Posts: 13965
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: IDKFA gives all weapons twice

Post by Rachael »

Hmm, then just hidden on the alt hud screen?
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: IDKFA gives all weapons twice

Post by Cutmanmike »

Graf Zahl wrote:How about only giving weapons that are in a weapon slot? I know that in a few cases that may not give something that is expected to be given but it for sure eliminates the possibility of weapon duplicates being given. Is that an acceptable compromise?
Yes please, I hate getting doom weapons while I'm playing around with classes that aren't supposed to see or get them. This will apply to "give all" too right?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IDKFA gives all weapons twice

Post by Graf Zahl »

SoulPriestess wrote:Hmm, then just hidden on the alt hud screen?
Powered up weapons are never listed.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IDKFA gives all weapons twice

Post by Graf Zahl »

Fixed. I did it a little differently:

A weapon is given if it either has no game filter, is set for the current game or is in a weapon slot. However, since weapon slots are not communicated across a network this check is only done in single player games. In multiplayer there is no safe way to detect the uselessness of such weapons.
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Re: IDKFA gives all weapons twice

Post by Macil »

Do demo recordings save weaponslot information? That could be a problem too.

I think leaving it at checking the game filter should be enough. That is the expected behavior; if I type "give all" in doom, I expect to be given doom's items, and checking the game filter is the closest to that.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IDKFA gives all weapons twice

Post by Graf Zahl »

Right. To be safe the cheat must be processed locally and each weapon be sent separately over the network. But now is not the time to fix it. It's 2:18 am here right now and I'm off to bed in a few minutes.
Agent ME wrote: I think leaving it at checking the game filter should be enough.
No, it's not! Some WADs actually use weapons of other games without creating inherited versions. (e.g. Massmouth 2, The Chosen or TNT3)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: IDKFA gives all weapons twice

Post by Gez »

Another fix could have been to add massive amount of Chex sprite renaming.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: IDKFA gives all weapons twice

Post by Matt »

EDIT: Nevermind, it turned out to be this which given the problem in multiplayer I suspect isn't a bug.

Spoiler:
Post Reply

Return to “Closed Bugs [GZDoom]”