Properly Injecting Scripts

Tutorials for the Xbox version of Halo 2.
Post Reply
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Properly Injecting Scripts

Post 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
Last edited by Shadowz_O_Death on Thu Sep 20, 2007 1:59 pm, edited 2 times in total.
User avatar
Zone 117




Pi Trickster Stylist Advisor
Snitch! Connoisseur

Posts: 799
Joined: Wed Nov 09, 2005 4:37 pm
Location: Want to be in Asia :'(

Post by Zone 117 »

Nice tutorial. Try and get pics.

You should make a couple more tutorials...
Image Thanks for the sig Xiion :P
[ AI Revision ][ Sewer ][ Boat Mod ][ Archaic ]
Remapped: Mod Archive and Forums.
User avatar
XxPTLegitxX





Posts: 112
Joined: Sun Jul 08, 2007 8:46 am

Post by XxPTLegitxX »

Wow thanks this help me out alot and ur other tut Thanks
User avatar
JacksonCougAr




Recreator

Posts: 2333
Joined: Fri Jan 12, 2007 1:56 pm
Location: Canada
Contact:

Post by JacksonCougAr »

...Pictures are for fools! Never overuse pictures >_> its just take me longer to scroll past them --_--
User avatar
XxPTLegitxX





Posts: 112
Joined: Sun Jul 08, 2007 8:46 am

Post by XxPTLegitxX »

Yea your right but if im lazy i just look at pics,
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

Excellent tutorial!

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




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

Zone 117 wrote:Nice tutorial. Try and get pics.

You should make a couple more tutorials...
Indeed. Nice tutorial. Needs pictures. ;D
Image
User avatar
Th3 ScarY BeaR




Connoisseur

Posts: 74
Joined: Sat Jun 10, 2006 7:24 pm
Contact:

Post by Th3 ScarY BeaR »

Wow, Nice tutorial.
Works like a charm.
And its super simple.
Thanks alot. :D
Image
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Post 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
User avatar
Ragdoll




Connoisseur Foundry Snitch!

Posts: 1101
Joined: Tue Jul 10, 2007 1:02 pm
Location: New Jersey

Post by Ragdoll »

ahhh, thank you. very nice tutorial shadowz :o
Image
User avatar
koekoek





Posts: 254
Joined: Wed Jun 06, 2007 7:20 am
Location: My desk

Post 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??
When the game is great.... The gamer has to be greater.
Such is the rule of honor.
ScarabMaster117





Posts: 2
Joined: Wed Sep 12, 2007 3:41 pm

Post by ScarabMaster117 »

What are scrips?
User avatar
koekoek





Posts: 254
Joined: Wed Jun 06, 2007 7:20 am
Location: My desk

Post by koekoek »

My game freezes.
Help me
When the game is great.... The gamer has to be greater.
Such is the rule of honor.
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Post 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
User avatar
koekoek





Posts: 254
Joined: Wed Jun 06, 2007 7:20 am
Location: My desk

Post by koekoek »

I'm using the no gravity script.
When the game is great.... The gamer has to be greater.
Such is the rule of honor.
User avatar
bumlove




Literarian 250

Posts: 305
Joined: Tue May 29, 2007 1:17 pm
Location: Islamic fundamentlist capital of europe, seriously my home town is a hole

Post 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
never underestimate the predictability of stupidity
Meatwad068





Posts: 21
Joined: Sun Aug 20, 2006 8:03 pm

Post 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.
User avatar
Shadowz_O_Death




Connoisseur

Posts: 188
Joined: Wed Nov 01, 2006 8:38 am
Location: Pittsburgh, PA Xlink: Shadowz_O_Death

Post 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
Post Reply