A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »script error

Author Topic: script error (6 messages, Page 1 of 1)
Moderators: Dennis

delta49
Joined: Jan 23, 2007

I don't always make shaders..


Posted: Feb 29, 2008 06:47 PM    Msg. 1 of 6       
I've been working on a map designed for two players max. I don't really have a plan to release it so don't be talking about how it sucks <_<. So to get to the point, i tried compiling my scripts in sapien and this message came up:

i expected a script or variable definition.: )---<‘
i expected a script or variable definition.: )---<®À
recompiling scripts after scenarios were merged.
i expected a script or variable definition.: )---<‘
i expected a script or variable definition.: )---<®À


I have no ideas what it means. If anyone would care to explain if they know it would be greatly appreciated.

Here are the scripts if it helps: (Yes i know there are too many )'s or ('s, but thats because another error came up before this saying there were parentheses that were unmatched)

(script static "unit" player0
(unit (list_get (players )0 ))
)

(script static "unit" player1
(unit (list_get (players )1 ))
)

(script static "short" player_count
(list_count (players ))
)

(script dormant enter
(unit_enter_vehicle (player0 ) "insertion_pelican" "p-riderlf" )
(unit_enter_vehicle (player1 ) "insertion_pelican" "p-riderrf" )
(unit_set_enterable_by_player "insertion_pelican" false )

(recording_play_and_hover "insertion_pelican" "insertion_pelican_in" )
(sound_looping_start "sound\sinomatixx_music\c10_insertion_music" none 1 )

(unit_exit_vehicle (player0 ))
(unit_exit_vehicle (player1 ))

(vehicle_hover "insertion_pelican" false )
(recording_play_and_delete "insertion_pelican" "insertion_pelican_out" ))

(script dormant enc_swamp2
(sleep_until (volume_test_objects enterance (players )))
(effect_new "weapons\frag grenade\effects\explosion" "boom1" )
)

(script dormant ai
(sleep_until (volume_test_objects "bsp 0,1" (players )))
(ai_kill_silent c_first_platoon)
(ai_place c_first_platoon)
)

(script dormant ai2
(sleep_until (volume_test_objects "enterance" (players )))
(ai_place c_first_platoon
)
)
)


(script startup cutscene
(fade_in 0 0 0 1)
(cinematic_start)
(camera_set cut1 100)
(sleep 50)
(camera_set cut2 100)
(sleep 50)
(camera_set cut3 100)
(sleep 50)
(camera_set cut4 100)
(sleep 50)
(camera_set cut5 100)
(sleep 50)
(camera_set cut6 100)
(sleep 50)
(fade_out 1 1 1 1)
(camera_control 0)
)
)


DarkZealot
Joined: Jan 1, 2008

Time management: 40% Xbox, 30% PC, 30% Skating


Posted: Feb 29, 2008 06:49 PM    Msg. 2 of 6       
Is the script encoding ANSI?


delta49
Joined: Jan 23, 2007

I don't always make shaders..


Posted: Feb 29, 2008 07:02 PM    Msg. 3 of 6       
yes it is


DarkZealot
Joined: Jan 1, 2008

Time management: 40% Xbox, 30% PC, 30% Skating


Posted: Feb 29, 2008 07:15 PM    Msg. 4 of 6       
Hmm, that's wierd then. Try saving it in Unicode or UTF-8.


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Feb 29, 2008 07:42 PM    Msg. 5 of 6       
Try removing the quotes from the return types in the first three scripts. I think the error means that some scripts were not defined properly, as in the "(script <type> <return type> <name>" part.

I'm guessing this because you're saying Sapien gave you a "left parentheses unmatched" error, even though you already had the right amount of parentheses, and you had to add unnecessary ones at the end. This might mean that Sapien never bothered reading through two of the static scripts maybe because of the quotes in the return type, so it considered the scripts' parentheses unmatched.

I don't see why quotes would be a problem, though, so I could be wrong.
Edited by Me KS on Feb 29, 2008 at 07:43 PM


delta49
Joined: Jan 23, 2007

I don't always make shaders..


Posted: Feb 29, 2008 08:00 PM    Msg. 6 of 6       
Quote: --- Original message by: Me KS
Try removing the quotes from the return types in the first three scripts. I think the error means that some scripts were not defined properly, as in the "(script <type> <return type> <name>" part.

I'm guessing this because you're saying Sapien gave you a "left parentheses unmatched" error, even though you already had the right amount of parentheses, and you had to add unnecessary ones at the end. This might mean that Sapien never bothered reading through two of the static scripts maybe because of the quotes in the return type, so it considered the scripts' parentheses unmatched.

I don't see why quotes would be a problem, though, so I could be wrong.


i think ill try that right now.

EDIT: doesn't anybody have any idea?

Edited by delta49 on Mar 2, 2008 at 01:36 PM

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 5:24 AM 156 ms.
A Halo Maps Website