Meta-injection in detail?

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
User avatar
Ion





Posts: 42
Joined: Wed Feb 07, 2007 7:38 am

Meta-injection in detail?

Post by Ion »

I'm writing a H2 editor for practice. Extracting meta-data is a cakewalk but when it comes to injecting, how am I supposed to do that in a map with a different file-layout. Let's say I extract "objects\weapons\rifle\battle_rifle\battle_rifle.weap" from coagulation. The meta starts at offset 37659788 and is 1580 bytes large. If i want to insert this data in for example ascension, where would I start writing the meta-data? (imagine that this tag doesn't exist in ascension). Writing it at the above location will eventually screw up already existing map data.

EDIT: Basically what I want is the theory behind chunk-adding.
User avatar
WastingBody





Posts: 195
Joined: Mon Sep 19, 2005 5:07 pm

Post by WastingBody »

What you want to do is not chunk cloning its adding a new tag to a map. You need to add a new Index entry, a new file name, a new file index entry, and the tags meta. Then you need to re calculate the reflexive pointers for the meta and finally pad anything that needs to be padded.
Image
User avatar
Ion





Posts: 42
Joined: Wed Feb 07, 2007 7:38 am

Post by Ion »

Ah of course... Does anyone know where you can get the map file-format documentation? I can't get hold of the H2 White Paper since all links I've tried are broken. If anyone has it, please upload it somewhere.
DarkMetal





Posts: 444
Joined: Sun May 28, 2006 11:28 pm
Location: Jacksonville, FL

Post by DarkMetal »

UberAnalyzeTool has a pretty good layout for maps in it. Just open a map and put your mouse over the colored bars and it should tell you what it's called, the offset, and the size.
Image
User avatar
Ion





Posts: 42
Joined: Wed Feb 07, 2007 7:38 am

Post by Ion »

Lol, I want a documentation over the file-format. I know this is in the H2 White Paper, just can't find a working link to download it.
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

Ion wrote:Lol, I want a documentation over the file-format. I know this is in the H2 White Paper, just can't find a working link to download it.
Here http://www.filesend.net/download.php?f= ... 5b44b8d441
..and the uberAnalyzer only shows you the name and offset of the different data.
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
DarkMetal





Posts: 444
Joined: Sun May 28, 2006 11:28 pm
Location: Jacksonville, FL

Post by DarkMetal »

Prey wrote:..and the uberAnalyzer only shows you the name and offset of the different data.
Size would be pretty self explanetory though. And the white paper doesn't explain everything, cause it's pretty old. Someone should make a new one.
Image
Post Reply