Some questions about usermaps...

Discussion about modding Halo 3.
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Some questions about usermaps...

Post by Nuklear »

How big is the CON header in bytes of an usermap because I can't seem to find out exactly. I've tried Google, experimenting, and others.

Also, in the structure for the usermaps, shade45 mentioned that BLF header is 48 bytes while in this thread, it's mentioned that BLF header is always 68 bytes long. I'm confused now. Which one is correct?

Finally, what is CHMD header?
haxalot88





Posts: 123
Joined: Sat Jun 23, 2007 2:08 pm

Post by haxalot88 »

A con file header is 0xA000 bytes long.
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Post by Nuklear »

Thank you very much. Can someone answer the other questions please?
haxalot88





Posts: 123
Joined: Sat Jun 23, 2007 2:08 pm

Post by haxalot88 »

From what I saw, it's not either 48 bytes or 68 bytes =/
In both the screenshots and usermaps, It's much bigger than that.
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

For Content the blf header is 48 bytes long. In actual BLF images the header is 68 bytes long.
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Supermodder911




Connoisseur Coroner

Posts: 1262
Joined: Sun Sep 03, 2006 10:43 pm
Location: Michigan

Post by Supermodder911 »

The size of the header is the first 32-bit int after the '_blf'...
Image
C Wizzle
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

yeah the _blf is 48 bytes long, after that is the chdr header.
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Post by Nuklear »

Thank you for the answers.

Shade, I've noticed that you use Hex Workshop. I've found out that you count 2 bytes as 1 byte because Hex workshops groups 2 bytes from other bytes.

So, for this reason I have to divide your length by half in structures because I use another hex editor that does not do this.

I don't know if you did this intentionally, but I believe a byte consists of 2 hex characters such as 0x00, etc.
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

Trust me its 48 bytes, it's like that in other editors to...

Image
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Post by Nuklear »

Really? How come one time I've looked it was wrong. I think it must be my mind because it was late last night maybe been seeing numbers wrong or wasn't thinking. xD

Thanks for your answers.
haxalot88





Posts: 123
Joined: Sat Jun 23, 2007 2:08 pm

Post by haxalot88 »

shade45 wrote:Trust me its 48 bytes, it's like that in other editors to...

http://img507.imageshack.us/img507/3796/010lq0.jpg[/img]
heh, i never noticed the chdr section =/ I just assumed that was a part of the _blf header. My bad xD
loveandhatejw





Posts: 27
Joined: Thu Mar 06, 2008 4:22 pm

Post by loveandhatejw »

eh 68 I assumed they were both the same but you know what they say about assuming
User avatar
neodos
Readers Club




Artisan Miner

Posts: 1394
Joined: Thu Aug 12, 2004 11:57 am

Post by neodos »

After the GT, is that the xbox id or user id that kind of stuff?
Supermodder911




Connoisseur Coroner

Posts: 1262
Joined: Sun Sep 03, 2006 10:43 pm
Location: Michigan

Post by Supermodder911 »

No.
Image
C Wizzle
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Post by Nuklear »

Hello. I would like people to confirm the following offsets (all are in decimal):

map_id_1 - 53802
spawned_object_count - 53831
map_boundary_x_min - 53836
max_budget - 53864
cur_budget - 53868

Are the offsets correct? I've opened several usermaps and it seems like it's right. But, I want to know it's actually right.
Supermodder911




Connoisseur Coroner

Posts: 1262
Joined: Sun Sep 03, 2006 10:43 pm
Location: Michigan

Post by Supermodder911 »

Not technically... the location of the user map inside of the container varies...

Shade released his white paper...
http://forums.halomods.com/viewtopic.ph ... 425#785425
Image
C Wizzle
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Post by Nuklear »

How come it's right in 3 usermaps I've opened. And isn't CON always A000 like haxalot says.

And, I know that whitepaper. I'm studying it.

If not, how would I be able to find the location inside the CON file?
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

neodos wrote:After the GT, is that the xbox id or user id that kind of stuff?
ProfileID is 8 bytes long and is at 881, DeviceID is at 1021 and is 20 bytes long.
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Nuklear





Posts: 24
Joined: Tue Mar 04, 2008 3:24 pm

Post by Nuklear »

Nuklear wrote:Hello. I would like people to confirm the following offsets (all are in decimal):

map_id_1 - 53802
spawned_object_count - 53831
map_boundary_x_min - 53836
max_budget - 53864
cur_budget - 53868

Are the offsets correct? I've opened several usermaps and it seems like it's right. But, I want to know it's actually right.
I forgot to mention that the offsets are in 116kb files. I assume it's correct because it's right in 3 116kb usermaps I've opened.


Also, how come the max budget is too low? In Ghost Town usermap, it says the max budget is 205 when it's really bigger than that. I've tried switching endians, etc. What's the correct way to read it? C#'s ReadInt32 says it's way too big.
User avatar
miinaturvat
Readers Club





Posts: 75
Joined: Thu Apr 10, 2008 10:04 am

Post by miinaturvat »

What does BLF actually stand for?
Image
Post Reply