OK well whenever I compile scripts in sapien, I seem to get an error:
Didnt write to sapien, but it was: This left parenthesis is unmatched: (script continuous sprint_turn_on0
Here is the whole script
(global boolean sprint_on0 false)
(global short sprint_cooldown0 120)
(script static unit player0
(unit (list_get (players) 0))
)
(script continuous sprint_turn_on0
(sleep_until (= (unit_get_current_flashlight_state (player0)) 1))
(unit_set_desired_flashlight_state (player0) 0)
(sleep_until (= sprint_cooldown0 0) 1)
(set sprint_on0 true)
(unit_set_seat (unit (list_get (players) 0)) ready)
(sleep_until (= (unit_get_current_flashlight_state (player0) 1) 1))
(set sprint_on0 false)
(unit_set_desired_flashlight_state (unit (list_get (players) 0)) 0)
)
(script continuous sprint_player_off0
(sleep_until (= sprint_on0 false) 1)
(unit_set_seat (unit (list_get (players) 0)) zomghaxlolz)
(global boolean sprint_on0 false)
(unit_set_desired_flashlight_state (unit (list_get (players) 0)) 0)
)
I checked it and it is matched, but when I attempt to compile using tool I get this error
07.09.12 19:12:48 tool pc 01.00.00.0609 ----------------------------------------------
07.09.12 19:12:48 reference function: _write_to_error_file
07.09.12 19:12:48 reference address: 42ca20
07.09.12 19:12:48 Couldn't read map file './toolbeta.map'
07.09.12 19:12:48 tag data 'hs_syntax_data_definition' too large.
07.09.12 19:12:48 failed to load scenario tag 'levels\test\beavercreek\SPRINTTEST'
07.09.12 19:12:48 tag data 'hs_syntax_data_definition' too large.
07.09.12 19:12:48 failed to load scenario tag 'levels\test\beavercreek\SPRINTTEST'
07.09.12 19:12:48 need to get the following tags:
07.09.12 19:12:48
Help would be appreciated!
Edited by 1337 on Jul 9, 2012 at 05:26 AM