Can't place MD2 monsters in Editor.

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
metroid014
Posts: 22
Joined: Thu Oct 01, 2009 4:21

Can't place MD2 monsters in Editor.

Post 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?
dark-slayer-201
Posts: 149
Joined: Thu Jul 16, 2009 14:31

Re: Can't place MD2 monsters in Editor.

Post by dark-slayer-201 »

it is usually best if you post a link to the whole file.
User avatar
Rex Claussen
Developer
Developer
Posts: 2659
Joined: Tue Jul 11, 2006 18:36
Contact:

Re: Can't place MD2 monsters in Editor.

Post 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.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Can't place MD2 monsters in Editor.

Post 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
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Can't place MD2 monsters in Editor.

Post 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!
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Can't place MD2 monsters in Editor.

Post by Enjay »

How would that be versus summoning/spawning it where he says it works?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Can't place MD2 monsters in Editor.

Post by Graf Zahl »

Different code that doesn't do these checks.
metroid014
Posts: 22
Joined: Thu Oct 01, 2009 4:21

Re: Can't place MD2 monsters in Editor.

Post 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).
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Can't place MD2 monsters in Editor.

Post 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.
Locked

Return to “GZDoom”