Can't place MD2 monsters in Editor.
Moderator: Graf Zahl
-
- Posts: 22
- Joined: Thu Oct 01, 2009 4:21
Can't place MD2 monsters in Editor.
Ok I have MD2 monsters for my WAD, and they work just fine. However... they only work when I spawn them (either through ACS or the console "Summon XXX"). For example I have a monster set as "DoomImp replaces DoomImp". When I have an imp placed through Doom Builder it will give me the spriteless thing error. However if I type in "Summon DoomImp", it will work just fine... please help?
-
- Posts: 149
- Joined: Thu Jul 16, 2009 14:31
Re: Can't place MD2 monsters in Editor.
it is usually best if you post a link to the whole file.
- Rex Claussen
- Developer
- Posts: 2659
- Joined: Tue Jul 11, 2006 18:36
- Contact:
Re: Can't place MD2 monsters in Editor.
In the actor's DECORATE definition, have you assigned it a DooMEd ID number? [I'm guessing the answer is yes, as otherwise I'm not sure how you could put the thing into a map via DB.]metroid014 wrote:Ok I have MD2 monsters for my WAD, and they work just fine. However... they only work when I spawn them (either through ACS or the console "Summon XXX"). For example I have a monster set as "DoomImp replaces DoomImp". When I have an imp placed through Doom Builder it will give me the spriteless thing error. However if I type in "Summon DoomImp", it will work just fine... please help?
It's possible that the spawn definition in DECORATE needs to be modified. I believe the frames to reference will need to be defined in the model, and in your MODELDEF.
Ask Enjay, as he would likely be able to immediately pinpoint your problem.
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Re: Can't place MD2 monsters in Editor.
It's a little difficult to tell from the description. However, my guess is that it's nothing to do with the model or the modeldef at all.
He says that when he places the thing in an editor, he sees the "spriteless thing error". Assuming that he means the little <!> symbol, that indicates that there is a thing placed in the map that (G)Zdoom knows nothing about. ie, probably a DoomEdNum error rather than anything else.

He says that when he places the thing in an editor, he sees the "spriteless thing error". Assuming that he means the little <!> symbol, that indicates that there is a thing placed in the map that (G)Zdoom knows nothing about. ie, probably a DoomEdNum error rather than anything else.

- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Can't place MD2 monsters in Editor.
That thing also appears if a sprite is used which doesn't have any graphics. It's not enough to define a sprite for replacement by a model. It has to actually be there!
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Re: Can't place MD2 monsters in Editor.
How would that be versus summoning/spawning it where he says it works?
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Can't place MD2 monsters in Editor.
Different code that doesn't do these checks.
-
- Posts: 22
- Joined: Thu Oct 01, 2009 4:21
Re: Can't place MD2 monsters in Editor.
My apologies, I could have been much clearer on that. Following what Graf said do I need to have a sprite in place for every single frame of my model? Or do I just need one for the first of each state (Idle, See).
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Can't place MD2 monsters in Editor.
Just the first one is enough. In general it's probably best you use existing IWAD sprite names for model-only actors so that you don't have to add your own sprites for basically nothing.