I'm not 100% sure this is a bug, but at the very least it's a very odd behavior that left me baffled for a few hours, and it doesn't seem to be documented.
It's known that when a weapon is missing a sprite, you can't pick it up or use it with Give/Use commands or anything else (this could be better documented as well). But there is an exception: when you obtain that weapon via another weapon with Weapon.SisterWeapon, you can use the weapon with the missing sprite. It will be invisible, but you can use it normally. Another thing is that SisterWeapon will allow the 3D model to appear even though the sprite file that is referenced in MODELDEF is missing.
edit: I should probably clarify that I'm not using the WEAPON.POWERED_UP flag. I use SisterWeapon solely as a means to obtain another weapon automatically, without having to replace something, randomize, or having it drop from a monster.
Sharing my tale in detail in case someone else has a similar problem:
It took a long time for me to figure out what was wrong, because the weapon was a sisterweapon of another for the longest time, so I had never had to "pick it up". The weapon uses a 3d model, which needs a sprite to replace (or something) even though the sprite itself can be anything and is not shown. A long time ago I had renamed the sprite which is referenced in MODELDEF, to see what would happen. Nothing happened, and I forgot I had renamed it. Now that I have new methods to obtain my custom weapons, I removed the SisterWeapon property from the related weapon (among other things), and some time later I noticed I could no longer pickup or use this weapon in particular. After trying dozens of different things, I put it back as a SisterWeapon on another weapon and voila, I could use it again. Convinced that there was nothing wrong with the weapon itself, the MODELDEF definitions and the model files, I went to take a look at the sprite files, even though I was sure that the sprite name didn't matter because of the 3d model. I noticed the sprite name had been renamed, and sure enough renaming it to be the same as the one in MODELDEF solved it.
Bug(?) involving missing sprites, SisterWeapon and 3D models
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.
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.
Return to “Closed Bugs [GZDoom]”
Jump to
- Important Threads
- ↳ HELP! "Account is inactive!"
- ↳ Official ZDoom Community Rules
- ↳ Mod Download Broken? Request Reuploads Here
- ↳ Don't see your first post(s) here? DON'T PANIC
- ↳ Errors? Can't run that new mod? Your GZDoom or ZDoom may be too old!
- ↳ Official Discord Server
- ↳ New Password Requirements and Password Reset
- ↳ A quick notice about privacy (Re: Our efforts to combat spam)
- Official
- ↳ ZDoom (and related) News
- ↳ The Spotlight
- ↳ Developer Blog
- ↳ Rules and Forum Announcements
- Technical Issues
- ↳ Technical Issues
- ↳ Helpful Stickies
- GZDoom Development
- ↳ Bugs [GZDoom]
- ↳ Important Threads
- ↳ Please check the latest version (or dev builds) before reporting!
- ↳ Classic ("Carmack") Software Renderer Bugs
- ↳ OpenGL Renderer Bugs
- ↳ OpenGLES Renderer Bugs
- ↳ Vulkan Renderer Bugs
- ↳ Audio/Music Bugs
- ↳ LZDoom Bugs
- ↳ ZDoom.org Bugs
- ↳ On Hold Bugs
- ↳ On-Hold Softpoly Bugs
- ↳ Closed Bugs [GZDoom]
- ↳ Vintage Build Bugs
- ↳ SoftPoly2 Bugs
- ↳ Feature Suggestions [GZDoom]
- ↳ ZDoom.org Suggestions
- ↳ Code Submissions
- ↳ On Hold Suggestions
- ↳ Closed Feature Suggestions [GZDoom]
- Raze-Specific Stuff
- ↳ Raze
- ↳ News
- ↳ Raze (and ZDoom-related) News
- ↳ Technical Issues
- ↳ Technical Issues
- ↳ Raze Development
- ↳ Bugs [Raze]
- ↳ On Hold Bugs
- ↳ Closed Bugs [Raze]
- ↳ Feature Suggestions [Raze]
- ↳ Code Submissions
- ↳ On Hold Suggestions
- ↳ Closed Feature Suggestions [Raze]
- ↳ Discussion
- ↳ General
- ↳ Editing Help
- ↳ Scripting (Build)
- ↳ Mapping (Build)
- ↳ Tutorials (Build)
- ↳ Projects
- ↳ Projects
- ↳ Abandoned Projects
- Doom Editing Help
- ↳ Scripting
- ↳ Mapping
- ↳ Assets (and other stuff)
- ↳ Tutorials
- ↳ Programming and Compiling
- Discussion
- ↳ General
- ↳ Networking
- ↳ Legacy Discussion
- ↳ Off-Topic
- Projects
- ↳ Levels
- ↳ Gameplay Mods
- ↳ TCs, Full Games, and Other Projects
- ↳ Resources
- ↳ Requests
- ↳ Script Library
- ↳ Graphic/Audio Patches
- ↳ Shaders
- Software and Ports
- ↳ Launchers
- ↳ Game Engines
- ↳ Creation, Conversion, and Editing
- ↳ Miscellaneous
- Archives
- ↳ The Halls of the Dead
- ↳ Abandoned/Dead Projects
- ↳ Editing (Archive)
- ↳ Archived Bugs & Suggestions (Mantis Tracker)