[Help] Decorate error, line 1, unknown game type.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Talonos
Posts: 789
Joined: Mon May 03, 2004 7:08 am
Location: At college!

[Help] Decorate error, line 1, unknown game type.

Post by Talonos »

I'm stressed for time a little, so quick help would be appreceated.

Look in the monster resourse wad. Under the Afrit section, there is a thing called HellFire. I want to use a script to put one somewhere.

I tried spawning it with spawnspot. I tried spawning it with spawn. Neither worked, for some strange reason. Now, I'm trying to spawn it with thing_spawn. The origional one has no spawn ID, so I made a clone.

Code: Select all

HellFireWithSpawnID : HellFire
{    SPAWNID 222    }
I try it, and it gave me an error. Decorate error line two thousand something : Unknown game type.

So on a hunch, Bring it up to the top. The code pasted above is on the first two lines of my decorate code. Lo and behold, Decorate error line one : unknown game type.

What does this mean? How do I fix it?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You forgot the 'ACTOR'.
User avatar
Talonos
Posts: 789
Joined: Mon May 03, 2004 7:08 am
Location: At college!

Post by Talonos »

The imaginary conversation in my head wrote:Random person: You joined May third, 2004? You can't still be a n00b, like your title says, can you?

Me, in response: You'd be suprised...
Thank you Graf.

However, it still won't spawn, and I am at a loss as to why.

Here is the script, with the pertinent parts in bold:



Code: Select all

Script 160 (void){
SetPlayerProperty(const:1, 1, PROP_TotallyFrozen);
AmbientSound("SecuritySystemNotify",255);
Delay(123);
Print(s:"\cGWait, this place has a security system!?");
Delay(100);
Print(s:"\cGI'll switch it on.");
Delay(100);
AmbientSound("SecuritySystemOn",255);
Delay(114);
ChangeCamera(166,1,0);
AmbientSound("SecuritySystemAttacking",255);
Delay(348);
Thing_Hate(167,168,4);
ChangeCamera(164,1,0);
Thing_Activate (162); 
Thing_Hate(162,169,4);
Delay(35);
Thing_Hate(162,169,4);
ChangeCamera(165,1,0);
Thing_Activate (163);
Thing_Hate(163,170,4);
Delay(35);
ChangeCamera(0,0,0);
Print(s:"\cGSweet! That saves a lot of work!");
Delay (100);
[b]Thing_SpawnNoFog (172,222,0,0) ;
Thing_SpawnNoFog (173,221,0,171); [/b]
Print(s:"\cGWhat?");
SetPlayerProperty(const:1, 0, PROP_TotallyFrozen);
Delay (50);
AmbientSound("SecuritySystemohnoes",255);
AmbientSound("SecuritySystemohnoes",255);
AmbientSound("SecuritySystemohnoes",255);
ACS_Execute(161,2,0,0,0);
}
I have two mapspotswithgravity with TIDs of 172 and 173.

I tried spawning a stealth baron, but it won't work either.

I've tried spawning things with spawnspot, but it fails to work as well.

Code: Select all

Spawnspot("HellFire",173,171,0) ;
Spawnspot("FakeArchVile",173,171,0) ;
I can summon both HellFire and FakeArchVile in the console, so I know they exist. Help... :(
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Re: [Help] Decorate error, line 1, unknown game type.

Post by Biff »

Talonos wrote:...I try it, and it gave me an error. Decorate error line two thousand something : Unknown game type....
This may come in handy - when you use the "edit" command from the command prompt (edit decorate.txt), that editor shows what line you are on. You can scroll fast and find the exact line. :)
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

@Talonos: I encountered a similar issue. Try thumbing through this thread, and see if it helps. It resolved the problem for me.

http://forum.zdoom.org/potato.php?p=148 ... ht=#148177
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

Talonos wrote:

Code: Select all

Spawnspot("HellFire",173,171,0) ;
Spawnspot("FakeArchVile",173,171,0) ;
You're not trying to spawn two things at the same spot, at the same time, are you?
User avatar
Talonos
Posts: 789
Joined: Mon May 03, 2004 7:08 am
Location: At college!

Post by Talonos »

One is an effect (Fire on the ground) and the other is a monster (Well, it acts like one, anyways) It shouldn't be a problem.
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

I don't know about that. Try using seperate spots.
Locked

Return to “Editing (Archive)”