Page 1 of 1

Can't place MD2 monsters in Editor.

Posted: Mon Dec 14, 2009 4:43
by metroid014
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?

Re: Can't place MD2 monsters in Editor.

Posted: Mon Dec 14, 2009 5:04
by dark-slayer-201
it is usually best if you post a link to the whole file.

Re: Can't place MD2 monsters in Editor.

Posted: Mon Dec 14, 2009 23:14
by Rex Claussen
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?
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.]

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.

Re: Can't place MD2 monsters in Editor.

Posted: Mon Dec 14, 2009 23:58
by Enjay
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.

Image

Re: Can't place MD2 monsters in Editor.

Posted: Tue Dec 15, 2009 0:07
by Graf Zahl
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!

Re: Can't place MD2 monsters in Editor.

Posted: Tue Dec 15, 2009 0:09
by Enjay
How would that be versus summoning/spawning it where he says it works?

Re: Can't place MD2 monsters in Editor.

Posted: Tue Dec 15, 2009 0:30
by Graf Zahl
Different code that doesn't do these checks.

Re: Can't place MD2 monsters in Editor.

Posted: Tue Dec 15, 2009 1:54
by metroid014
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).

Re: Can't place MD2 monsters in Editor.

Posted: Tue Dec 15, 2009 7:49
by Graf Zahl
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.