Halo 2 Xbox: Intermediate - A Few Chunk Adding Tutorials

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




Artisan Socialist Decryptor Droplet

Posts: 854
Joined: Fri Apr 02, 2004 11:22 am
Location: Tea co not Tie co...

Halo 2 Xbox: Intermediate - A Few Chunk Adding Tutorials

Post by TheTyckoMan »

Adding Chunks Tutorial

By TheTyckoMan

Things you'll need:

Hex Workshop
H2X by Pokecancer (Download)
WordPad
At least a basic understanding of modding....

I'll be adding 2 different types of chunks in this tutorial.
First is adding more itmc chunks to the scnr, second is adding more passenger seats to the warthog. Both will be done in ascension.

Also I will write a include a basic tutorial on finding chunk sizes for reflexives.

I'm kinda tired from writing this one up, so the others will have to wait, I'll edit this post when I get them done :)

Adding itmc chunks to scnr.

1:Take a fresh ascension and make a copy of it.
Image

2:Open h2x, then open copy of ascension.

3:Save the scnr (parsed and recursive off) to a folder called "Meta".
Image
4:Create a copy of ascension[scnr].meta and ascension[scnr].meta.data.
Image
If you can't see the .data extension, go to Tools->Folder Options then click the view tab and uncheck "hide extensions for known file types".
Image

5:Open copy of ascension[scnr].meta.data in Wordpad.

6:Find reflexive 288, that's the decimal offset in the scnr for the itmc reflexive.
Image
288 is the offset with in the tag.
9600 is the offset it points to in the tag it points to.
33 is the chunk count.
scnr is the tag type of the tag it points to.
scenarios\multi\ascension\ascension is the tag name that it points to.
32136 is the size of the tag it points to.

7:Open copy of ascension[scnr].meta in hex workshop and use Edit->goto... to go to the offset that the reflexive points to (9600)
Image

8:Now we want to select all the chunks of this reflexive, use Edit->Select Block and set it to dec and Size of Block and select 4752 bytes
Image
You're probably wondering why we selected that much, well we select that much because this reflexive's chunk size is 144
and the chunk count for this this tag's reflexive 288 is 33, so to select all the reflexive we multiply 144 by 33 and get 4752.
For info on finding the chunk size, see the 3rd tutorial in this topic ;)


9:Now that we have the reflexive selected we want to copy it and paste it over everything else in the file.
Press ctrl-c, Edit->Select All and then ctrl-v. Now everything should be red, and # bytes (in the lower right corner)
should read 4752 bytes.
Image

10: Now we start adding chunks, since the chunk size is 144 go to the start of the file and select a block of 144, copy, then scroll all the way to the
bottom and paste at the very end of the file. Keep pasting until the size of the file (the # bytes) reaches 14256 (99 chunks)
because sometimes it'll lock if you go over 99 chunks. Save and close Hex Workshop.
Image

11:Now it's time to edit the data file, go back to copy of ascension[scnr].meta.data in wordpad.
Delete everything after TagType|scnr. Save and close.
Image


12:Now we have to go and fix the list so that dependencies and reflexives and SIDs (string ids) ar fixed.
Go back to h2x with copy of ascension opened in it, find a tag whose size is at least 14256 bytes,
in this case we'll use the original scnr. Inject copy of ascension[scnr].meta into that tag.
Image


13:Extract the that same tag again (the one you just injected into) into a new folder called "Meta To Add"
Image


14:open the data file and change Filename|scenarios\multi\ascension\ascension to Filename|itmcchunks, some names you choose
might give you an index was out of range of the array (or something like that) error, so if it does just change the name and try again.
Save and close.
Image

15:Open the meta file and go to Edit->Select Block and select 14256 bytes (from the start), copy, select all and paste.
Save and quit.

16:Close h2x then get back in and open ascension.map

17:Go to tools->Add to map and select the Meta To Add folder, press ok and wait for it to get done.
Image
Image

18:extract the original scnr from the new map, open the data file and change the reflexive so it points to the new tag.
To make the reflexive point to the new tag change it's translated offset to 0, its chunk count to 99,
change its pointed to tag to itmcchunks and the tag size to 14256.
so it should now look like this
Image

now inject it back over the original scnr (same name there) and it'll make it point to the new meta.


Sign, test and you're done :)
Attachments
ChunkAdding.rar
For those of you who want the tutorial for download... :)
(1.47 MiB) Downloaded 46 times
Sweetness.......Visual Security: 9-block IP Identification
"Teenagers, plus anonymity, plus microphone = idiot."-Bungie
Post Reply