Page 1 of 1

Properly Injecting Scripts

Posted: Sat Sep 08, 2007 4:30 pm
by Shadowz_O_Death
Properly Injecting Scripts
by Shadowz O Death

Introduction
This step-by-step tutorial demonstrates how to properly inject a script into a Halo 2 map without the hassle of cloning chunks or overwriting pre-existing scripts.

Prerequisites
1. H2Core

Decompiling Map
1. Open H2Core.
2. In the menu bar, click "File" then "Open."
3. Double-click the map that you wish to inject scripts into. I'll be using Ascension.
4. In the menu bar, click "Map" then "Decompile."
5. When finished, close H2Core.

Injecting Script
1. Open H2Guerilla.
2. In the menu bar, click "File" then "Open."
3. Double-click "H2," "scenarios," "multi," "ascension," then "ascension.scenario."
4. Click "Editors" then "Script Tools."
5. Click "Add New."
6. Type a script into the text box. I'll be using the following no gravity script.

Code: Select all

(begin
 (script startup no_gravity
  (physics_set_gravity 0)
 )
)
7. Click "Done."
8. Close H2Guerilla.

Rebuilding Map
1. Open H2Core.
2. In the menu bar, click "File" then "Open."
3. Double-click the map you wish to inject scripts into.
4. In the menu bar, click "Map" then "Rebuild."
5. Click "..."
6. Double-click "H2," "scenarios," "multi," "ascension," then "ascension.scenario."
7. Check "Keep Existing Spawns."
8. Click "Rebuild."
9. When finished, close H2Core.

Conclusion
Congratulations! You've successfully injected a script. Enjoy!

Regards,
Shadowz O Death

Posted: Sun Sep 09, 2007 6:58 am
by Zone 117
Nice tutorial. Try and get pics.

You should make a couple more tutorials...

Posted: Sun Sep 09, 2007 7:21 am
by XxPTLegitxX
Wow thanks this help me out alot and ur other tut Thanks

Posted: Sun Sep 09, 2007 9:59 am
by JacksonCougAr
...Pictures are for fools! Never overuse pictures >_> its just take me longer to scroll past them --_--

Posted: Sun Sep 09, 2007 10:17 am
by XxPTLegitxX
Yea your right but if im lazy i just look at pics,

Posted: Mon Sep 10, 2007 3:37 pm
by L0d3x
Excellent tutorial!

I can finally add respawns now without the hassle of overwriting older scripts!

Posted: Mon Sep 10, 2007 3:50 pm
by -DeToX-
Zone 117 wrote:Nice tutorial. Try and get pics.

You should make a couple more tutorials...
Indeed. Nice tutorial. Needs pictures. ;D

Posted: Mon Sep 10, 2007 6:57 pm
by Th3 ScarY BeaR
Wow, Nice tutorial.
Works like a charm.
And its super simple.
Thanks alot. :D

Posted: Tue Sep 11, 2007 2:19 pm
by Shadowz_O_Death
Th3 ScarY BeaR wrote:Wow, Nice tutorial.
Works like a charm.
And its super simple.
Thanks alot. :D
No problem! That's what I'm here for! :P

Regards,
Shadowz_O_Death

Posted: Tue Sep 11, 2007 2:32 pm
by Ragdoll
ahhh, thank you. very nice tutorial shadowz :o

Posted: Sun Sep 16, 2007 9:32 am
by koekoek
Ok i'm stupid i know.
But in H2guerilla, when you're in the script editor thingy, you have to type your script, but there allready is text in there, so do i delete it or do i just leave it??

Posted: Mon Sep 17, 2007 6:59 am
by ScarabMaster117
What are scrips?

Posted: Mon Sep 17, 2007 8:03 am
by koekoek
My game freezes.
Help me

Posted: Mon Sep 17, 2007 11:36 am
by Shadowz_O_Death
koekoek wrote:Ok i'm stupid i know.
But in H2guerilla, when you're in the script editor thingy, you have to type your script, but there allready is text in there, so do i delete it or do i just leave it??
You delete it.
koekoek wrote:My game freezes.
Help me
What script are you using?

Regards,
Shadowz_O_Death

Posted: Wed Sep 19, 2007 3:27 am
by koekoek
I'm using the no gravity script.

Posted: Wed Sep 19, 2007 3:39 pm
by bumlove
does this break system link or not or is it a case of everyone needs the same .map
PS thanks for sharing this, the amount of hair I've pulled out over script injection isn't even funny

Posted: Wed Sep 19, 2007 6:23 pm
by Meatwad068
i just finally understood what a script is out of no where respawns, check points etc am i right.
ive never really looked into scripts this is the first thing ive ever read about them well anyway thanks maybe mess with it later.

Posted: Thu Sep 20, 2007 5:49 am
by Shadowz_O_Death
koekoek wrote:I'm using the no gravity script.
Did you inject the script to a clean map? If not, try adding it to a clean map and see if it works. If it does, it's obviously something wrong with the mod.

Regards,
Shadowz_O_Death