script trouble.

Discuss HaloCE modding with the HEK tools here. For help, go to the Help Desk forum above.
Post Reply
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

script trouble.

Post by Andrew_b »

ok so im just finishing up on my SP map...and im just adding the sound for the story.
Im half way done with the sounds, but i have a problem. when i compiled some sounds were erased...the sniper zoom wouldnt make a noise ingame, and the health meter made no noise when there was no shield...
please tell me what im doing wrong...all i did was write the sounds in this script. (long script)

Code: Select all

(script startup cutscene1
	(begin
		(cinematic_start)
		(camera_control 1)
		(cinematic_set_title first)
		(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)
		(camera_set cut7 100)
		(sleep 50)
		(camera_set cut8 100)
		(sleep 50)
		(camera_set cut9 100)
		(sleep 50)
		(camera_control 0)
		(cinematic_stop)
	)
)
(script startup teamsetup
	(ai_allegiance "player" "human")
)
(script startup spawn1
	(sleep_until (volume_test_objects 1 (players))15)
		(ai_place 1)
		(sound_impulse_start sound\dialog\a30\a30_010_cortana none 1)
		(sleep 75)
		(sound_impulse_start sound\dialog\a30\a30_020_cortana none 1)
		(sleep 170)
		(sound_impulse_start sound\dialog\a30\a30_030_cortana none 1)
		(sleep 155)
		(sound_impulse_start sound\dialog\a30\a30_040_cortana none 1)
		(sleep 270)
		(sound_impulse_start sound\dialog\a30\a30_060_cortana none 1)
		(sleep 250)
		(sound_impulse_start sound\dialog\a30\a30_070_cortana none 1)
		(sleep 168)
		(sound_impulse_start sound\dialog\c40\c40_extract_010_chief none 1)
		(sleep_until (= (ai_living_count 1) 0) 15)
		(game_save)
		(sound_impulse_start sound\dialog\a30\a30_440_cortana none 1)
		(sleep 480)
		(sound_impulse_start sound\dialog\c40\c40_extract_090_chief none 1)
) 
(script startup spawn2
	(sleep_until (volume_test_objects 2 (players))15)
		(ai_place 2)
		(sleep_until (= (ai_living_count 2) 0) 15)
		(game_save)
)
(script startup spawn3
	(sleep_until (volume_test_objects 3 (players))15)
		(ai_place 3)
		(ai_place M1)
		(object_create_anew jeep)
		(sleep 660)
		(ai_place 3b)
		(sleep_until (= (ai_living_count 3) 0) 15)
		(cinematic_start)
		(cinematic_set_title Marines)
		(cinematic_stop)
		(game_save)
		(sound_impulse_start sound\dialog\a30\a30_430_cortana none 1)
		(sleep 95)
		(if (vehicle_test_seat_list jeep "wdriver" (players)) (deactivate_team_nav_point_object "player" jeep)
))
(script startup spawn4
	(sleep_until (volume_test_objects 4 (players))15)
		(cinematic_start)
		(camera_control 1)
		(camera_set floodchamber1 100)
		(sleep 50)
		(camera_set floodchamber2 100)
		(sleep 50)
		(camera_set floodchamber3 100)
		(sleep 50)
		(camera_set floodchamber4 100)
		(cinematic_set_title floodchambers)
		(sleep 50)
		(camera_set floodchamber5 100)
		(sleep 50)
		(camera_set floodchamber6 100)
		(sleep 50)
		(camera_set floodchamber7 100)
		(sleep 99)
		(camera_control 0)
		(cinematic_stop)
		(ai_place 4)
		(sleep_until (= (ai_living_count 4) 0) 15)
		(game_save)
)
(script startup spawnflood1
	(sleep_until (volume_test_objects createflood1 (players))15)
		(ai_place flood1)
)
(script startup spawn5
	(sleep_until (volume_test_objects 5 (players))15)
		(ai_place 5)
		(ai_place flood2)
)
(script startup spawn6
	(sleep_until (volume_test_objects 6 (players))15)
		(ai_place 6)
		(sleep_until (= (ai_living_count 6) 0) 15)
		(game_save)
		(sound_impulse_start sound\dialog\multiplayer1\killtacular none 1)
)
(script startup floodscene
	(sleep_until (volume_test_objects floodscene (players))15)
		(ai_place floodscene)
		(game_save)
		(sleep_until (= (ai_living_count floodscene) 0) 15)
		(game_save)
)
(script startup spawn7
	(sleep_until (volume_test_objects 7 (players))15)
		(ai_place 7)
		(object_create_anew covy1)
		(object_create_anew covy2)
		(object_create_anew covy3)
		(object_create_anew covy5)
		(object_create_anew covy6)
		(object_create_anew covy7)
		(object_create_anew covy8)
		(object_create_anew covy9)
		(object_create_anew covy10)
		(object_create_anew covy11)
		(sleep_until (= (ai_living_count 7) 0) 15)
		(game_save)
)
(script startup switch
	(sleep_until (volume_test_objects switch (players))15)
		(switch_bsp 1)
		(game_save)
)
(script startup spawn8
	(sleep_until (volume_test_objects 8 (players))15)
		(ai_place 8)
		(sleep_until (= (ai_living_count 8) 0) 15)
		(game_save)
)
(script startup spawn9
	(sleep_until (volume_test_objects 9 (players))15)
		(ai_place 9)
		(ai_place M2)
		(sleep_until (= (ai_living_count 9) 0) 15)
		(game_save)
)
(script startup spawntunnel
	(sleep_until (volume_test_objects 10b (players))15)
		(ai_place tunnel1)
		(ai_place tunnel2)
		(ai_place Mrun)
		(game_save)
)
(script startup spawntunnelmid
	(sleep_until (volume_test_objects 10c (players))15)
		(ai_place tunnelmid)
		(game_save)
)
(script startup spawn10
	(sleep_until (volume_test_objects 10 (players))15)
		(ai_place 10)
		(ai_place M3)
		(sleep_until (= (ai_living_count 10) 0) 15)
		(game_save)
)
(script startup spawn11
	(sleep_until (volume_test_objects 11 (players))15)
		(ai_place 11)
		(ai_place M4)
		(sleep_until (= (ai_living_count 11) 0) 15)
		(game_save)
)
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

i dont think your script has anything to do with missssing sounds. back up you tags folder. then reninstall hek and see if that fixes it. reinstalling hek can fix alot of things. like corrupted and missing tags
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

before i added all the sounds to play in my script, the sounds all worked perfectly...

Now that my script has all the sounds...some default sounds arent played...

(and some reason the sounds in the script stop here too

Code: Select all

(sleep_until (= (ai_living_count 1) 0) 15)
      (game_save)
      (sound_impulse_start sound\dialog\a30\a30_440_cortana none 1)
      (sleep 480)
      (sound_impulse_start sound\dialog\c40\c40_extract_090_chief none 1) 
)

So what am i doing wrong?

and must i put sleep tags at then end? or will the game just play the sounds after each other???
User avatar
wanksta
Readers Club




Wordewatician 500

Posts: 617
Joined: Mon Jun 11, 2007 3:04 pm
Location: Owning Freedom451 Constantly over LAN. Kills:999999999 Owns:943234 Pwns:749455 Killtaculars:5667

Post by wanksta »

you may need a sleep tag. i have problems with Fade_in and Fade_out if i dont use sleep tags sometimes.
Sig may not be animated.
Lol you got me in like 3 minutes!
Oh wait... I'm banned.... well not funny anymore...
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

uhh so
(game_save)
(sleep 10)
(sound)
(sleep 10323442)
(sound)
(sleep 1)
Post Reply