Small problem with one model

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
User avatar
Reinchard
Posts: 140
Joined: Wed Aug 08, 2007 8:10
Location: Beuthen - city of tunnels and legends

Small problem with one model

Post by Reinchard »

I copy model from DN Hi-Res Pack and its not work.

My DECORATE:
ACTOR Toilet 22222
{
Game Doom
Radius 25
Height 25
Mass 50000
+SOLID
+SHOOTABLE
+NOBLOOD
States
{
Spawn:
NULL A 0
Stop
}
}

My MODELDEF:
Model Toilet
{
Path "models"
Model 0 "toi.md2"
Skin 0 "toi.png"
Scale 0.82 0.82 0.70

Frame NULL A 0 "idle"
}

Model is not appear in game. Why?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Because the object immediately disappears as the 0 duration ot the spawn state suggests.
User avatar
Reinchard
Posts: 140
Joined: Wed Aug 08, 2007 8:10
Location: Beuthen - city of tunnels and legends

Post by Reinchard »

How can I repair this bug? I don't understand this frames and durations...
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Replace the 0 with a -1. If you don't understand how this works try to read some docs. Otherwise you will run into other problems sooner or later.
User avatar
Reinchard
Posts: 140
Joined: Wed Aug 08, 2007 8:10
Location: Beuthen - city of tunnels and legends

Post by Reinchard »

Thanks, but now it looks like this:

DECORATE:

ACTOR Toilet 22222
{
Game Doom
Radius 25
Height 25
Mass 50000
+SOLID
+SHOOTABLE
+NOBLOOD
States
{
Spawn:
NULL A -1
Stop
}
}

MODELDEF:

Model Toilet
{
Path "models"
Model 0 "toi.md2"
Skin 0 "toi.png"
Scale 0.82 0.82 0.70

Frame NULL A 0 "idle"
}

Sprite name is NULLA0

Model not appear in game, but if I write in console "summon toilet" its appear. I read docs, but still I dont know what is wrong :(
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

An obvious question I know but have you put a thing in your map with edit number 22222 and flagged it to appear in all game types and at all difficulties?

If so, can you put together a small test map for people to look at?
User avatar
Reinchard
Posts: 140
Joined: Wed Aug 08, 2007 8:10
Location: Beuthen - city of tunnels and legends

Post by Reinchard »

hahahah
Thanx. I just forget paste a marker to sprites!! Few houers of work for nothing :D
Locked

Return to “GZDoom”