Thing_Spawn(NoFog) problems with Doom Builder

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
deathz0r
Posts: 353
Joined: Tue Jul 15, 2003 4:09 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Land with them kangaroo
Contact:

Thing_Spawn(NoFog) problems with Doom Builder

Post by deathz0r »

Ok, so I'm making this level which contains one map spot (so far) in mid-air which spawns a secret thing from my semi-secret project. Without mentioning too much of it, I'm trying to give the spawned thing a random TID for colour translation purposes. Here's the script of the map so far:

Code: Select all

#include "common.acs"

script 1 OPEN
{
    Thing_SpawnNoFog(20, 128, 0, random(0, 9));
    delay(random(15, 30));
    restart;
}

script 2 OPEN
{
	CreateTranslation (1, 112:127=176:191);
	CreateTranslation (2, 112:127=196:207);
	CreateTranslation (3, 112:127=[100,100,100]:[0,0,0]);
	CreateTranslation (4, 112:127=250:254);
	CreateTranslation (5, 112:127=32:47);
	CreateTranslation (6, 112:127=79:64);
	CreateTranslation (7, 112:127=239:236);
	CreateTranslation (8, 112:127=160:167);
	CreateTranslation (9, 112:127=112:127);
	Thing_SetTranslation (1, 1);
	Thing_SetTranslation (2, 2);
	Thing_SetTranslation (3, 3);
	Thing_SetTranslation (4, 4);
	Thing_SetTranslation (5, 5);
	Thing_SetTranslation (6, 6);
	Thing_SetTranslation (7, 7);
	Thing_SetTranslation (8, 8);
	Thing_SetTranslation (9, 9);
}
Now, for some stupid reason, Doom Builder refuses to compile that, saying this:

Code: Select all

Line 5 in file "script.acs" ...
 script.acs:5: Incorrect number of special arguments.
 >     Thing_SpawnNoFog(20, 128, 0, 
 >                                ^
 script.acs:21: Function thing_settranslation is used but not defined.
 script.acs:22: Function thing_settranslation is used but not defined.
 script.acs:23: Function thing_settranslation is used but not defined.
 script.acs:24: Function thing_settranslation is used but not defined.
 script.acs:25: Function thing_settranslation is used but not defined.
 script.acs:26: Function thing_settranslation is used but not defined.
 script.acs:27: Function thing_settranslation is used but not defined.
 script.acs:28: Function thing_settranslation is used but not defined.
 script.acs:29: Function thing_settranslation is used but not defined.
I looked up DB's acs.cfg and I found out that Thing_Spawn(NoFog) can indeed use four arguments, yet it won't compile for me. Is there something I'm doing wrong, or is DB a pain in the ass?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

#include "zcommon.acs" instead of "common.acs" which is Raven's original include that neither knows Doom's type IDs nor ZDoom's enhanced action specials.
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

I remember back when I first started scripting... that happened to me often...
User avatar
deathz0r
Posts: 353
Joined: Tue Jul 15, 2003 4:09 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Land with them kangaroo
Contact:

Post by deathz0r »

Graf Zahl wrote:#include "zcommon.acs" instead of "common.acs" which is Raven's original include that neither knows Doom's type IDs nor ZDoom's enhanced action specials.
Stupid me, I keep forgetting to name that zcommon.acs. Thanks again.
Locked

Return to “Editing (Archive)”