mnemjc@Posted: Wed Apr 21, 2010 10:22 pm :
Hello, i started to script my very first "machine", i've started small and just wanted to move an entity Down a few units, however as soon as i started to load the map it gave me this error message:

Unknown Value "DOWN"

Code:
$claw1_arm.move( DOWN, 128 );



This is what i used, eventually i got it working because i looked it up in the doom_defs.script file and found the following line:
#define DOWN -2

and with -2 its working.. but i wonder why? Especially because i found a few scripts from Raven where they use the DOWN Keyword, and it seems to work...

PS: I saw Raven using setNewTimes alot, i wonder what it does? I couldn't find any info about it here or on modwiki.net... any help is greatly appreciated.

Thanks in advance...



simulation@Posted: Thu Apr 22, 2010 12:26 am :
mnemjc wrote:
Hello, i started to script my very first "machine", i've started small and just wanted to move an entity Down a few units, however as soon as i started to load the map it gave me this error message:

Unknown Value "DOWN"

Code:
$claw1_arm.move( DOWN, 128 );



This is what i used, eventually i got it working because i looked it up in the doom_defs.script file and found the following line:
#define DOWN -2

and with -2 its working.. but i wonder why? Especially because i found a few scripts from Raven where they use the DOWN Keyword, and it seems to work...

PS: I saw Raven using setNewTimes alot, i wonder what it does? I couldn't find any info about it here or on modwiki.net... any help is greatly appreciated.

Thanks in advance...


a) try adding this at the top of your map script
Code:
#include "scripts/doom_defs.script"

b) or include your map script inside doom_main.script like the other maps

For a TC / mod (b) is the best aprroach; just remember to include the modfiied doom_main.script in your PK4
For a stand-alone SP map / MP map I'd use suggestion (a) to avoid conflicts



mnemjc@Posted: Thu Apr 22, 2010 12:53 am :
I took on your second suggestion, thank you very much, works perfectly.