IDKFA gives all weapons twice
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.
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.
IDKFA gives all weapons twice
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
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.
Re: IDKFA gives all weapons twice
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.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: IDKFA gives all weapons twice
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?
Re: IDKFA gives all weapons twice
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.
Re: IDKFA gives all weapons twice
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.
I noticed this when I tested my weapons powerup mod on the old 1.1.04 version of GZDoom.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: IDKFA gives all weapons twice
They need to be given because otherwise you can't use them at all!
Re: IDKFA gives all weapons twice
Hmm, then just hidden on the alt hud screen?
- 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
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?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?
- Graf Zahl
- Lead GZDoom+Raze Developer

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

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: IDKFA gives all weapons twice
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.
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.
- 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
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.
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.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: IDKFA gives all weapons twice
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.
No, it's not! Some WADs actually use weapons of other games without creating inherited versions. (e.g. Massmouth 2, The Chosen or TNT3)Agent ME wrote: I think leaving it at checking the game filter should be enough.
Re: IDKFA gives all weapons twice
Another fix could have been to add massive amount of Chex sprite renaming.
- 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
EDIT: Nevermind, it turned out to be this which given the problem in multiplayer I suspect isn't a bug.
Spoiler: