Jump to content

Invalid sprite frame


Recommended Posts

So I was modding doom 2, I was changing the pistol sprites following doomkids tutorial Video but I got an error that said 

Quote

R_ProjectSprite: invalid sprite frame 3 : 0

I don't know what I did wrong, I even had the sprites in between the SS_START AND S_END

Share this post


Link to post

Are you trying to run this in vanilla, or something like Chocolate Doom, or something else?

 

The vanilla engine actually can't handle new sprites normally. Back in the day there was a utility called DeUSF which would merge the new graphical assets into the original IWAD (creating a modified IWAD in the process). If you're trying to play under Vanilla, this is still pretty much the only option.

 

If you're using something like Chocolate Doom, that's a little more flexible - but instead of using -file to load your WAD with the graphics lumps, you'd use -merge instead, which will act like the addon WAD is as if DeUSF had merged the graphics into the IWAD, without actually doing so.

 

If you're using something else, then the problem is more on your sprites than anything.

Edited by Dark Pulse

Share this post


Link to post

TITLEPIC should not be in between the sprite markers

 

EDIT: But the actual reason it doesn't work is that it needs to be S_END, not SS_END.

 

On 10/23/2023 at 7:49 PM, LuzRoja29 said:

SS_END*

 

^^ do not listen :P

Edited by magicsofa

Share this post


Link to post

I think the problem is more simple: You are using custom sprite names. You CANNOT do that for something that is intended to be vanilla-compatible, IIRC, unless you do some DeHackEd editing in order to change the strings the EXE is looking for. All replacement lumps in a WAD should have the exact same name as the original lump they are replacing. For example, if you are replacing the Zombieman's forward-facing sprite, the replacement sprite MUST be named POSSA1.

 

You basically need to do two things:

  1. Move TITLEPIC out of the SS area (it's a title graphic, not a sprite), so either put it above SS_START or below SS_END.
  2. Rename your pistol graphics to the original graphic lump names, PISG (and PISF for the flash).

Alternatively, if you are intending to use a DeHackEd patch for it, I think you need to make sure that all of the sprite names are properly replaced, not just the first instance. But I also remember it being a bit weird about replacing sprite graphics and that there was some quirks involved with that.

Edited by Dark Pulse

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...