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 »Scripts

Author Topic: Scripts (17 messages, Page 1 of 1)
Moderators: Dennis

Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Oct 3, 2010 09:36 PM    Msg. 1 of 17       
Where do I put in the scripts so that sapien will compile it. I tried putting it in data/levels/test/beavercreek/scripts and tags/levels/test/beavercreek/scripts and it dosn't do anything and it has .hsc.
Edited by Head Noob on Oct 4, 2010 at 03:57 AM


Dennis

Joined: Jan 27, 2005

"We are made of starstuff.” ― Carl Sagan


Posted: Oct 3, 2010 10:13 PM    Msg. 2 of 17       
Quote: --- Original message by: Head Noob
Where do I put in the scripts so that sapien will compile it. I tried putting it in data/levels/test/beavercreek/scrpits and tags/levels/test/beavercreek/scripts and it dosn't do anything and it has .hsc.


Assuming the map is in tags/levels/test/beavercreek then the scripts go in data/levels/test/beavercreek/scripts

You have to initiate the compile from within Sapien from the drop down menu


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Oct 3, 2010 10:41 PM    Msg. 3 of 17       
Also my property view is always maxamised and i cant minamise it or hide it down in the tollbar area of sapien of exit it same as game view. Is thier a way to fix it? As well I put the script the file and it stall dosn't compile. Is their anything else that I have to do to compile it. Or is it that it dosn't work for notepad?
Edited by Head Noob on Oct 4, 2010 at 12:43 AM


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Oct 4, 2010 02:57 AM    Msg. 4 of 17       
So u finally decided to go on the site head noob?

Now, to get my sp scripts to work i made a new folder with the map name (hmm, creek_sp will do) in tags levels test. put ur scenario file in that folder and create another creek_sp folder in data levels test. In data levels test creek_sp, make a new folder called scripts and chuck ur script in there. Open sapien and compile the script. Any errors appear in the game view and debug

And as for the properties view always being maximised, its probly that piece of junk u call ur pc. Seriously get that laptop ur keep talking about cos that thing is going to explode!

And dennis, when i did it ur way it didn't work for some reason


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Oct 4, 2010 03:45 AM    Msg. 5 of 17       
It won't explode until you kick it.
Now my script is not working. This is it.
(script startup basicscript
(wait_until(volume_test_objects red_base(players)26)) -Something is wrong here it says?
(ai_place red_base)
(game_save_no_timeout)
And so on with the script.
What is wrong with line 2?
Edited by Head Noob on Oct 4, 2010 at 03:46 AM


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Oct 4, 2010 07:50 AM    Msg. 6 of 17       
(script startup basicscript
(wait_until (volume_test_objects red_base (players) 26))
(ai_place red_base)
(game_save_no_timeout)
....blah blah blah
)

There should be spaces between the words and the parentheses, like so.
Make sure to close the script with a parenthesis as well, when you get to the end.

Edited by MoooseGuy on Oct 4, 2010 at 07:52 AM


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Oct 4, 2010 02:52 PM    Msg. 7 of 17       
you would want to use sleep_until not wait_until


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Oct 4, 2010 03:43 PM    Msg. 8 of 17       
Oh yeah, that too.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Oct 5, 2010 02:47 AM    Msg. 9 of 17       
and why the 26) at the end???

Doesn't that mean u wait for 2.6 seconds before the command initiates??? If so i think thats why i have a few glitches in my four sp's coming soon that head noob did the beta testing for (well i did it on his pc...so he really wasn't a beta tester)

And much better avatar head noob hi 5 for taking my advice

And we did try kicking the computer: what's wrong with it? BANG
Graphics card has a spaz


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Oct 5, 2010 08:52 AM    Msg. 10 of 17       
Quote: --- Original message by: Muscl3r
and why the 26) at the end???

Doesn't that mean u wait for 2.6 seconds before the command initiates???


Halo script runs at 30 times per second, so 26 script units is actually 13/15ths of a second.


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Oct 6, 2010 06:45 AM    Msg. 11 of 17       
I fixed it and added more. Now the cutscene is being a gay thing. But I can fix that. How do you create objectives and nav points the tutorial I have that tells me what to do isn't working


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Oct 6, 2010 11:41 PM    Msg. 12 of 17       
Quote: --- Original message by: Gamma927
Now, you're wondering why I didn't fill in the HUD text stuff for you. This part is a bit complicated. You're going to have to create a new txt file, renamed to hud messages.hmt (hmt being the file extension). When you save this, make sure it's set to unicode encoding. Then, inside, place your HUD texts in this format:

INDEX=OBJECTIVE TEXT

So if I wanted to display something like, ">>Go through the teleporter", I'd use:

obj1=>>Go through the teleporter

Please note that obj1 is the index, and that we'll be referring to that in the script. Once you've filled the hud messages.hmt file with your objectives (NOTE. YOU CANNOT HAVE TWO SAME INDEXES.) Then, CLOSE SAPIEN, and open your command prompt. Type in:

tool hud-messages DIRECTORY OF SCENARIO FILE NAME OF SCENARIO FILE

So if your scenario file was inside tags\levels\firefight\firefight.scenario, you'd put your hud messages.hmt file inside: data\levels\firefight

Then, you'd type into tool:

tool hud-messages levels\firefight firefight

Compile it.

Re-open Sapien AFTER COMPILING. Inside your script, add

(show_hud_help_text true) ;; Displays HUD help text
(hud_set_objective_text INDEX) ;; Sets the objective thing in the pause menu
(hud_set_help_text INDEX) ;; Sets the HUD text to this
(sleep 150) ;; Sleeps for five seconds
(show_hud_help_text false) ;; Stops displaying HUD help text

Replacing INDEX with your index from your hud messages.hmt file. So if your index was obj1, you'd use something like:

(show_hud_help_text true)
(hud_set_objective_text obj1)
(hud_set_help_text obj1)
(sleep 150)
(show_hud_help_text false)

THIS IS NOT A STANDALONE SCRIPT. YOU CANNOT USE THIS ALONE.


Copied and pasted this from one of the tutorials I wrote a while ago. I should collect them and post them sometime.


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Oct 7, 2010 01:36 AM    Msg. 13 of 17       
lol funny, firefight-descent's scenario was called levels\firefight\firefight.scenario for a while...
Edited by MoooseGuy on Oct 7, 2010 at 01:37 AM


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Oct 7, 2010 05:53 AM    Msg. 14 of 17       
Thanks. Now my cutscene is only showing the skybox not where i put the cams. All I need to do is make it have a piture of the map and then go to the player. Can anyone help me with that.

What about if the level is in levels\test what do i put in the tool then?
Edited by Head Noob on Oct 7, 2010 at 06:23 AM


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Oct 8, 2010 08:32 PM    Msg. 15 of 17       
chuck the scenario in levels test creek_sp as i said before something like that.

And also one of my cutscenes are glitchy. It sorta changes everytime its meant to show some elites patrolling but first of all it starts outside of the map and sometimes the camera just flys away this is the script i am using for it:

(player_enable_input 0)
(camera_control 1)
(cinematic_start)
(cinematic_show_letterbox 1)
(sleep 60)
(cinematic_start)
(cinematic_show_letterbox 1)
(camera_set cam1 60)
(sleep 60)
(camera_set cam2 60)
(sleep 100)
(camera_control 0)
(cinematic_stop)


Also in my sp's the music is sometimes all wierd like it starts when its meant to then there's a big battle and it stops and starts again

And navpoints. I can't get navpoints working either. I have been trying to use this command from p0lar bears tut:

(activate_nav_point_flag default nav1)

but it isn't working. The debug is saying that nav1 isn't a valid navpoint


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Oct 8, 2010 09:53 PM    Msg. 16 of 17       
You're using (camera_set cam1 60) as your first camera point, which means that it takes 2 seconds for the camera to get to the first camera position.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Oct 11, 2010 03:40 AM    Msg. 17 of 17       
thanks again Gamma

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 12:40 AM 250 ms.
A Halo Maps Website