Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Help with this script?

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    6

    Help with this script?

    hi everyone. I am kind of a newbie when it comes to scripting so can anyone tell me whats wrong with this script?
    Thanks in advance.

    (script startup Assault_On_Bloodgulch
    (begin
    (ai_place c1)
    (object_create turret1)
    (object_create turret2)
    (ai_command_list c1 c1)
    (ai_place h2)
    (object_create warthog)
    (ai_command_list h2 h3)
    (ai_place h1)
    (player_enable_input 0)
    (camera_control 1)
    (sleep 60)
    (cinematic_start)
    (cinematic_show_letterbox 1)
    (camera_set 1 200)
    (sleep 200)
    (camera_set 2 200)
    (sleep 90)
    (camera_set 3 200)
    (sleep 90)
    (camera_set 4 200)
    (sleep 90)
    (camera_set 5 200)
    (sleep 90)
    (camera_set 6 200)
    (sleep 90)
    (camera_set 7 200)
    (sleep 90)
    (camera_set 8 200)
    (sleep 120)
    (camera_set 9 200)
    (sleep 90)
    (camera_control 0)
    (cinematic_stop)
    )
    )

    (script startup Assault_On_Bloodgulch_2
    (hud_set_objective_text obj1)
    (sleep 15)
    (ai_follow_target_players h1)
    )

    (script startup Assault_On_Bloodgulch_3
    (sleep_until (volume_test_objects 1 (players)) 15)
    (ai_place c2)
    (game_save_no_timeout)
    )

    (script startup Assault_On_Bloodgulch_4
    (sleep_until (volume_test_objects 2 (players)) 15)
    (ai_place h2)
    (ai_place h3)
    (game_save_no_timeout)
    (sleep_until (volume_test_objects 3 (players))15)
    (hud_set_objective_text obj2)
    (ai_command_list h2 h2)
    (ai_command_list h3 c1)
    (ai_command_list h3 c1)
    )

    (script startup Assault_On_Bloodgulch_5
    (sleep_until (volume_test_objects 4 (players))15)
    (hud_set_objective_text obj3)
    (game_save_totally_unsafe)
    (sleep_until (= (ai_living_count c1) 0) 1)
    (hud_set_objective_text obj4)
    (sleep_until (volume_test_objects 5 (players)) 15)
    (sleep 5)
    (player_enable_input 0)
    (camera_control 1)
    (sleep 60)
    (cinematic_start)
    (cinematic_show_letterbox 1)
    (camera_set 10 200)
    (sleep 200)
    (camera_set 11 200)
    (sleep 90)
    (camera_set 12 200)
    (sleep 90)
    (camera_control 0)
    (cinematic_stop)
    )
    Reply With Quote

  2. #2
    Neanderthal Dwood's Avatar
    Join Date
    Sep 2008
    Location
    Wouldn't u like to know?
    Posts
    4,184

    Re: Help with this script?

    Begins are not necessary unless used in if statements. And no I can't unless you give me the error.
    Reply With Quote

  3. #3
    Junior Member
    Join Date
    Mar 2010
    Posts
    6

    Re: Help with this script?

    Quote Originally Posted by Dwood View Post
    Begins are not necessary unless used in if statements. And no I can't unless you give me the error.
    When i try to compile the script, this error apears.

    This is the last paragraph of my debug.txt.

    09.02.09 18:08:54 sapien pc 01.00.00.0609 ----------------------------------------------
    09.02.09 18:08:54 reference function: _write_to_error_file
    09.02.09 18:08:54 reference address: 401b13
    09.02.09 18:08:54 Couldn't read map file './sapienbeta.map'
    09.02.09 18:08:55 CreateDevice succeeded with refresh rate = 0
    09.02.09 18:08:55 Increasing sound decompression buffer size to 1048576 bytes
    09.02.09 18:08:58 recompiling scripts after scenarios were merged.
    09.02.09 18:08:58 i expected a script or variable definition.: ?
    09.02.09 18:08:59 local player 0, weapon (0x0), deleted unexpectedly
    09.02.09 18:09:08 i expected a script or variable definition.: ?
    09.02.09 18:09:08 recompiling scripts after scenarios were merged.
    09.02.09 18:09:08 i expected a script or variable definition.: ?
    Reply With Quote

  4. #4
    For Gnomejas sevlag's Avatar
    Join Date
    Oct 2008
    Posts
    1,875

    Re: Help with this script?

    Quote Originally Posted by cybykillers View Post
    Assault_On_Bloodgulch
    theres the problem
    Reply With Quote

  5. #5
    Junior Member
    Join Date
    Mar 2010
    Posts
    6

    Re: Help with this script?

    Quote Originally Posted by sevlag View Post
    theres the problem
    explain plz?
    Reply With Quote

  6. #6
    Chris chrisk123999's Avatar
    Join Date
    May 2009
    Location
    Florida, USA
    Posts
    646

    Re: Help with this script?

    Code:
    (script startup Assault_On_Bloodgulch
    	(ai_place c1)
    	(object_create turret1)
    	(object_create turret2)
    	(ai_command_list c1 c1)
    	(ai_place h2)
    	(object_create warthog)
    	(ai_command_list h2 h3)
    	(ai_place h1)
    	(player_enable_input 0)
    	(camera_control 1)
    	(sleep 60)
    	(cinematic_start)
    	(cinematic_show_letterbox 1)
    	(camera_set one 200)
    	(sleep 200)
    	(camera_set two 200)
    	(sleep 90)
    	(camera_set three 200)
    	(sleep 90)
    	(camera_set four 200)
    	(sleep 90)
    	(camera_set five 200)
    	(sleep 90)
    	(camera_set six 200)
    	(sleep 90)
    	(camera_set seven 200)
    	(sleep 90)
    	(camera_set eight 200)
    	(sleep 120)
    	(camera_set nine 200)
    	(sleep 90)
    	(camera_control 0)
    	(cinematic_stop)
    )
    
    (script startup Assault_On_Bloodgulch_2
    	(hud_set_objective_text obj1)
    	(sleep 15)
    	(ai_follow_target_players h1)
    )
    
    (script startup Assault_On_Bloodgulch_3
    	(sleep_until (volume_test_objects 1 (players)) 15)
    	(ai_place c2)
    	(game_save_no_timeout)
    )
    
    (script startup Assault_On_Bloodgulch_4
    	(sleep_until (volume_test_objects 2 (players)) 15)
    	(ai_place h2)
    	(ai_place h3)
    	(game_save_no_timeout)
    	(sleep_until (volume_test_objects 3 (players))15)
    	(hud_set_objective_text obj2)
    	(ai_command_list h2 h2)
    	(ai_command_list h3 c1)
    	(ai_command_list h3 c1)
    )
    
    (script startup Assault_On_Bloodgulch_5
    	(sleep_until (volume_test_objects 4 (players))15)
    	(hud_set_objective_text obj3)
    	(game_save_totally_unsafe)
    	(sleep_until (= (ai_living_count c1) 0) 1)
    	(hud_set_objective_text obj4)
    	(sleep_until (volume_test_objects 5 (players)) 15)
    	(sleep 5)
    	(player_enable_input 0)
    	(camera_control 1)
    	(sleep 60)
    	(cinematic_start)
    	(cinematic_show_letterbox 1)
    	(camera_set ten 200)
    	(sleep 200)
    	(camera_set eleven 200)
    	(sleep 90)
    	(camera_set twelve 200)
    	(sleep 90) 
    	(camera_control 0)
    	(cinematic_stop)
    )
    Try this. I'm thinking sapien isn't liking that you named your camera points numbers. It may also be the names of the AI. If it doesn't work, post the debug again.
    Reply With Quote

  7. #7

    Re: Help with this script?

    Quote Originally Posted by cybykillers View Post
    explain plz?
    While it was meant as an insult, most of the members of any Halo CE Community are quite tired of seeing bloodgulch being modded over and over again.

    http://hce.halomaps.org/index.cfm?se...ulch&B1=Search

    268 uploads of Bloodgulch modified by another user. And most of them are retarded tag placing without any consideration done.
    Reply With Quote

  8. #8
    Junior Member
    Join Date
    Mar 2010
    Posts
    6

    Re: Help with this script?

    Quote Originally Posted by CodeBrain View Post
    While it was meant as an insult, most of the members of any Halo CE Community are quite tired of seeing bloodgulch being modded over and over again.

    http://hce.halomaps.org/index.cfm?se...ulch&B1=Search

    268 uploads of Bloodgulch modified by another user. And most of them are retarded tag placing without any consideration done.
    well i wasnt going to release it anyways. i just thought since im new to modding, i figure bloodgulch would be a good place to start on my first script since its big.
    Reply With Quote

  9. #9
    For Gnomejas sevlag's Avatar
    Join Date
    Oct 2008
    Posts
    1,875

    Re: Help with this script?

    Quote Originally Posted by cybykillers View Post
    well i wasnt going to release it anyways. i just thought since im new to modding, i figure bloodgulch would be a good place to start on my first script since its big.
    to be honest BG is a good testing ground, but to test out patrol paths, try prisoner as a test map
    Reply With Quote

  10. #10
    Junior Member
    Join Date
    Mar 2010
    Posts
    6

    Re: Help with this script?

    Quote Originally Posted by chrisk123999 View Post
    Code:
    (script startup Assault_On_Bloodgulch
    	(ai_place c1)
    	(object_create turret1)
    	(object_create turret2)
    	(ai_command_list c1 c1)
    	(ai_place h2)
    	(object_create warthog)
    	(ai_command_list h2 h3)
    	(ai_place h1)
    	(player_enable_input 0)
    	(camera_control 1)
    	(sleep 60)
    	(cinematic_start)
    	(cinematic_show_letterbox 1)
    	(camera_set one 200)
    	(sleep 200)
    	(camera_set two 200)
    	(sleep 90)
    	(camera_set three 200)
    	(sleep 90)
    	(camera_set four 200)
    	(sleep 90)
    	(camera_set five 200)
    	(sleep 90)
    	(camera_set six 200)
    	(sleep 90)
    	(camera_set seven 200)
    	(sleep 90)
    	(camera_set eight 200)
    	(sleep 120)
    	(camera_set nine 200)
    	(sleep 90)
    	(camera_control 0)
    	(cinematic_stop)
    )
    
    (script startup Assault_On_Bloodgulch_2
    	(hud_set_objective_text obj1)
    	(sleep 15)
    	(ai_follow_target_players h1)
    )
    
    (script startup Assault_On_Bloodgulch_3
    	(sleep_until (volume_test_objects 1 (players)) 15)
    	(ai_place c2)
    	(game_save_no_timeout)
    )
    
    (script startup Assault_On_Bloodgulch_4
    	(sleep_until (volume_test_objects 2 (players)) 15)
    	(ai_place h2)
    	(ai_place h3)
    	(game_save_no_timeout)
    	(sleep_until (volume_test_objects 3 (players))15)
    	(hud_set_objective_text obj2)
    	(ai_command_list h2 h2)
    	(ai_command_list h3 c1)
    	(ai_command_list h3 c1)
    )
    
    (script startup Assault_On_Bloodgulch_5
    	(sleep_until (volume_test_objects 4 (players))15)
    	(hud_set_objective_text obj3)
    	(game_save_totally_unsafe)
    	(sleep_until (= (ai_living_count c1) 0) 1)
    	(hud_set_objective_text obj4)
    	(sleep_until (volume_test_objects 5 (players)) 15)
    	(sleep 5)
    	(player_enable_input 0)
    	(camera_control 1)
    	(sleep 60)
    	(cinematic_start)
    	(cinematic_show_letterbox 1)
    	(camera_set ten 200)
    	(sleep 200)
    	(camera_set eleven 200)
    	(sleep 90)
    	(camera_set twelve 200)
    	(sleep 90) 
    	(camera_control 0)
    	(cinematic_stop)
    )
    Try this. I'm thinking sapien isn't liking that you named your camera points numbers. It may also be the names of the AI. If it doesn't work, post the debug again.
    it doesnt work... and heres the debug


    03.27.10 21:40:04 sapien pc 01.00.00.0609 ----------------------------------------------
    03.27.10 21:40:04 reference function: _write_to_error_file
    03.27.10 21:40:04 reference address: 401b13
    03.27.10 21:40:04 Couldn't read map file './sapienbeta.map'
    03.27.10 21:40:05 CreateDevice succeeded with refresh rate = 0
    03.27.10 21:40:06 Increasing sound decompression buffer size to 1048576 bytes
    03.27.10 21:40:53 recompiling scripts after scenarios were merged.
    03.27.10 21:40:53 i expected a script or variable definition.: ?
    03.27.10 21:40:54 local player 0, weapon (0x0), deleted unexpectedly
    03.27.10 21:41:03 i expected a script or variable definition.: ?
    03.27.10 21:41:03 recompiling scripts after scenarios were merged.
    03.27.10 21:41:03 i expected a script or variable definition.: ?
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •