
docter p0
Joined: Jul 22, 2010
|
Posted: Sep 7, 2010 05:38 PM
Msg. 1 of 9
here is my script and the only error i get when compiling is simply i expected a script or variable definition. : ÿþ(
(script continuous door-open (begin (sleep_until (= (device_get_position control2) 1.00)) (device_set_position control1 1.00) (device_set_position door4 1.00) (device_set_position door3 1.00) (device_set_position door2 1.00) (device_set_position door1 1.00))) (sleep_until (= (device_get_position control2) 0.00)) (device_set_position control1 0.00) (device_set_position door4 0.00) (device_set_position door3 0.00) (device_set_position door2 0.00) (device_set_position door1 0.00) (sleep_until (= (device_get_position control1) 1.00)) (device_set_position control2 1.00) (device_set_position door4 1.00) (device_set_position door3 1.00) (device_set_position door2 1.00) (device_set_position door1 1.00) (sleep_until (= (device_get_position control1) 0.00)) (device_set_position control2 0.00) (device_set_position door4 0.00) (device_set_position door3 0.00) (device_set_position door2 0.00) (device_set_position door1 0.00)
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Sep 7, 2010 07:48 PM
Msg. 2 of 9
WHAT'S WITH YOUR BAD FORMATTING. I seriously don't want to read this ><
I'll format it later, and check for a problem in a bit. One tip: Don't use (begin unless it's containing a block of code that would otherwise be read as separate parameters. If you don't understand this, just don't use (begin. Edited by Gamma927 on Sep 7, 2010 at 07:48 PM
|
|
|

docter p0
Joined: Jul 22, 2010
|
Posted: Sep 7, 2010 07:59 PM
Msg. 3 of 9
alright jus plz hurry been waiting for this forever
and how is it bad formating besides the (begin and how later is later its all just the same block of code 3 times over
|
|
|

d4rfnader
Joined: Jul 16, 2010
Open mouth, insert sandwhich.
|
Posted: Sep 7, 2010 08:21 PM
Msg. 4 of 9
(script continuous door-open (begin (sleep_until (= (device_get_position control2) 1.00)) (device_set_position control1 1.00) (device_set_position door4 1.00) (device_set_position door3 1.00) (device_set_position door2 1.00) (device_set_position door1 1.00))) (sleep_until (= (device_get_position control2) 0.00)) (device_set_position control1 0.00) (device_set_position door4 0.00) (device_set_position door3 0.00) (device_set_position door2 0.00) (device_set_position door1 0.00) (sleep_until (= (device_get_position control1) 1.00)) (device_set_position control2 1.00) (device_set_position door4 1.00) (device_set_position door3 1.00) (device_set_position door2 1.00) (device_set_position door1 1.00) (sleep_until (= (device_get_position control1) 0.00)) (device_set_position control2 0.00) (device_set_position door4 0.00) (device_set_position door3 0.00) (device_set_position door2 0.00) (device_set_position door1 0.00)
look at the colored parentheses that might be your issue right there, but gamma's right you might wanna get rid of that (begin and also fix your formatting a little bit too it also bugs me.
|
|
|

docter p0
Joined: Jul 22, 2010
|
Posted: Sep 7, 2010 08:40 PM
Msg. 5 of 9
thats not the problem cause then it says line 2 blah blah blah thats not the problem ill just let gamma do his thing and hopefully it turns out good
|
|
|

OrangeJuice
Joined: Jan 29, 2009
Documentation and debug.txt
|
Posted: Sep 7, 2010 08:58 PM
Msg. 6 of 9
Cut those two red brackets out and paste them to the end of the script.
-- Notepad++ is very good for bracket-checking ^-^
|
|
|

d4rfnader
Joined: Jul 16, 2010
Open mouth, insert sandwhich.
|
Posted: Sep 7, 2010 09:11 PM
Msg. 7 of 9
yeah orange juice is right remove the two colored brackets and add and remove them at the end of the script to see if that works.
|
|
|

docter p0
Joined: Jul 22, 2010
|
Posted: Sep 7, 2010 09:33 PM
Msg. 8 of 9
it compiled but then in game if u press one control panel it wont open doors and even if u press both still nothing whatever i give up
|
|
|

OrangeJuice
Joined: Jan 29, 2009
Documentation and debug.txt
|
Posted: Sep 7, 2010 09:57 PM
Msg. 9 of 9
Make the controls and the doors they are "connected to" have the same device_group. so that if just ONE opens, all devices on the same device_group will open too.
when a s%^tload of doors are in the same device_group as a control, the control will open or close all of those doors. Edited by OrangeJuice on Sep 7, 2010 at 09:58 PM
|
|
|