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 »scripting help

Author Topic: scripting help (4 messages, Page 1 of 1)
Moderators: Dennis

Blackshakes
Joined: Mar 4, 2012

I'll take that off your hands...


Posted: Mar 8, 2012 09:11 AM    Msg. 1 of 4       
i have a lot of trouble scripting... i copied some of the scripts from this site exactly and when i try to compile the script in my map it gives me this error:

03.08.12 07:33:55 a hobo pc 01.01.00.0609 ----------------------------------------------
03.08.12 07:33:55 reference function: _write_to_error_file
03.08.12 07:33:55 reference address: 401b13
03.08.12 07:33:55 Couldn't read map file './a_hobobeta.map'
03.08.12 07:33:56 CreateDevice succeeded with refresh rate = 0
03.08.12 07:33:56 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
03.08.12 07:33:57 Increasing sound decompression buffer size to 1048576 bytes
03.08.12 07:33:59 local player 0, weapon (0x0), deleted unexpectedly
03.08.12 07:34:14 [bsp0,1tele line 3] this is not a valid function or script name.: bsp 0,1)

03.08.12 07:34:14 recompiling scripts after scenarios were merged.
03.08.12 07:34:14 this left parenthesis is unmatched.: (volume_test_objects (bsp 0,1)

03.08.12 07:34:56 [bsp0,1tele line 3] this is not a valid function or script name.: bsp 0,1))

03.08.12 07:34:56 recompiling scripts after scenarios were merged.
03.08.12 07:34:56 [bsp0,1tele line 2] this left parenthesis is unmatched.: (sleep_until

03.08.12 07:35:36 [bsp0,1tele line 2] this is not a valid function or script name.: bsp 0,1) (players)) 15)

03.08.12 07:35:36 recompiling scripts after scenarios were merged.
03.08.12 07:35:36 [bsp0,1tele line 1] this left parenthesis is unmatched.: (script startup tele

03.08.12 07:35:54 [bsp0,1tele line 2] this is not a valid function or script name.: bsp 0,1) (players)) 15)

03.08.12 07:35:54 recompiling scripts after scenarios were merged.
03.08.12 07:35:54 [bsp0,1tele line 1] this left parenthesis is unmatched.: (script startup tele


____________________________________________________________________________

and this is the script:

(script startup tele
(sleep_until (volume_test_objects (bsp 0,1) (players)) 15)
(switch_bsp 1)
(volume_teleport_players_not_inside (bsp 0,1) (0,1 flag))
)
_____________________________________________________________________________


PLZ HLP IM GONNA SMASH THIS DAMN COMP IF I GET THIS ERROR ONE MORE TIME!!!!!!


jawa
Joined: Jun 26, 2011

Utinni!


Posted: Mar 8, 2012 07:37 PM    Msg. 2 of 4       
I believe all you need to do is rename your trigger volumes and flags. Make sure there is no punctuation or spaces in the name. And then adjust the script to the new names.


adolif2
Joined: Apr 27, 2011

Karma changes people.


Posted: Mar 8, 2012 10:57 PM    Msg. 3 of 4       
You don't close things that aren't script names, global names, or function names in parentheses. Instead, use quotation marks.
Try this:

(script startup tele
(sleep_until (volume_test_objects "bsp 0,1" (players)) 15)
(switch_bsp 1)
(volume_teleport_players_not_inside "bsp 0,1" "0,1 flag")
)


Blackshakes
Joined: Mar 4, 2012

I'll take that off your hands...


Posted: Mar 16, 2012 02:17 PM    Msg. 4 of 4       
ok new problems with different scripts.. im trying to make a short sp level (crappy but still) anyway i was just fooling around and now i am trying to compile several scripts into my map and every one says left perenthesis is unmatched.. i checked every one of them out and they have no spaces before or after the perenthesis (that was my problem before i figured out, after help from adolf2 ty btw) except i have a tab in front of the perenthesis for the second line and so on until the last line which is the other perenthesis.. for example here are all the scripts i use in the map and their errors...

(script continuous allegiance
(ai_allegiance player humans)
(ai_allegiance default humans)
)

(script continuous attach_spartans
(ai_attach "red_team_spartans" "redteam")
)

(the one above i made bec the delemiter actor was killing my marines and the captain, while on the same side, different teams tho, all were default actor types, go figure)

(script continuous cap_shot
(sleep_until (volume_test_objects "bsp 0,1" (players))15)
(wake cap_view)
)

(script startup cap_view
(camera_set cut1 15)
(sleep 5)
(camera_set cut2 2)
(camera_set cut3 1)
(camera_set cut4 1)
)

(script continuous captain_spawn
(sleep_until (volume_test_objects "bsp 0,1" (players))15)
(ai_place redteam2)
)

(script startup ingame_text_help
(cinematic_set_name 1)
(cinematic_show_letterbox true)
(sleep 15)
(cinematic_show_letterbox false)
(sleep 100)
(cinematic_set_name 2)
(cinematic_show_letterbox true)
(sleep 15)
(cinematic_show_letterbox false)
(sleep 250)
(cinematic_set_name 3)
(cinematic_show_letterbox true)
(sleep 15)
(cinematic_show_letterbox false)
(sleep 15)
(cinematic_set_name 4)
(cinematic_show_letterbox true)
(sleep 15)
(cinematic_show_letterbox false)
(sleep 10)
(cinematic_set_name 5)
(cinematic_show_letterbox true)
(sleep 15)
(cinematic_show_letterbox false)
(sleep 10)
(cinematic_set_name 6)
(cinematic_show_letterbox true)
(sleep 15)
(cinematic_show_letterbox false)
(sleep 100)
(cinematic_set_name 7)
(cinematic_show_letterbox true)
(sleep 100)
(cinematic_show_letterbox false)
)

(script continuous migrate_spartans
(ai_migrate spartans marines)
)

(above one is because delemiter was standing around with thumb up ass, not going anywhere lol)

(script continuous spartans
(sleep_until (= (ai_living_count sniper_marine) 0) 15)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
(ai_spawn_actor spartans)
)

(i ticked not initially created in sapien next to the team thing for the spartan delimiters but they still spawn immeadiatly...)

(script startup stealth_spawn
(sleep_until (= (ai_living_count bluesquad) 0) 15)
(game_save)
(ai_spawn_actor blue_commander_elite)
)

(script continuous visionscript
(ai_magically_see_encounter redteam blueteam)
(ai_magically_see_encounter blueteam redteam)
)

(at first in the map you start out in BSP 0 and u have some spartans with sniper rifles running around shooting at grunts, then u go through a tunnel and it switches)

(script startup you_suck
(sleep_until (= (ai_living_count redteam2) 0) 15)
(sound_impulse_start sound\dialog\Halo_Reach_Dialog\yousuck none 1)
)

(i looked several times at the errors and the last two scripts i didnt have a problem with, i think... i know the last one i didnt have a problem with.)

and here is the error list

3.16.12 13:15:00 [allegiance line 2] team must be "default", "player", "human", "covenant", "flood", "sentinel", "unused6", "unused7", "unused8", or "unused9".: humans)

03.16.12 13:15:00 [attach_spartans line 2] this is not a valid object name.: red_team_spartans" "redteam")

03.16.12 13:15:00 [cap_shot line 3] this is not a valid script name.: cap_view)

03.16.12 13:15:00 [ingame_text_help line 2] this is not a valid function or script name.: cinematic_set_name 1)

03.16.12 13:15:00 [migrate_spartans line 2] this is not a valid ai encounter or squad.: marines)

03.16.12 13:15:00 [spartans line 2] this is not a valid ai encounter or squad.: sniper_marine) 0) 15)

03.16.12 13:15:00 recompiling scripts after scenarios were merged.
03.16.12 13:15:00 [allegiance line 1] this left parenthesis is unmatched.: (script continuous allegiance

03.16.12 13:15:00 [attach_spartans line 1] this left parenthesis is unmatched.: (script continuous attach_spartans

03.16.12 13:15:00 [cap_shot line 1] this left parenthesis is unmatched.: (script continuous cap_shot

03.16.12 13:15:00 [ingame_text_help line 1] this left parenthesis is unmatched.: (script startup ingame_text_help

03.16.12 13:15:00 [migrate_spartans line 1] this left parenthesis is unmatched.: (script continuous migrate_spartans

03.16.12 13:15:00 [spartans line 1] this left parenthesis is unmatched.: (script continuous spartans


i know this is alot to help with but please do... thanks to all that reply with help!!

i know also that there are 2 scripts that are supposed to do pretty much the same thing but... my delemeter actor varient is retarded and kills anything but other delemiter actor varient... so i needed to make sure they would stop doing that and just kill the coveys on the other team, not my marines or the captain
Edited by Blackshakes on Mar 16, 2012 at 02:23 PM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 12:46 AM 156 ms.
A Halo Maps Website