Talk:BRRES Sub Files (File Format)

From Custom Mario Kart
Jump to navigation Jump to search

What do you mean with "CTools" in the "hit count" column? Implemented?
Wiimm 21:14, 3 May 2011 (CEST)

I understand!
Wiimm 22:40, 3 May 2011 (CEST)

Statistical errors

@Wiimm For the cases which have a non 100% in the match, can you compare the section counts in the header, to see if they are same. I suspect the few that don't match will have a differnce, and we can work out the offset in terms of the section count. Chadderz 23:14, 3 May 2011 (CEST)

I have started this script 2 minutes ago
Wiimm 23:17, 3 May 2011 (CEST)

MDL, group 11, offset 0x0004

@Chadderz Can you explain that indirect string pointer? Where is the second pointer? Wiimm 21:45, 4 May 2011 (CEST)

If you look at section 11 of the MDL0 page it explains that the offset at 4 points to the material layer. Each material layer has a name offset at the beggining. Therefore if you follow the pointer to the material layer, and then follow the pointer in the material layer to the name you get a string.
Chadderz 21:58, 4 May 2011 (CEST)
Ok! If I understand you, this offset is MDL internal and needs no adjustment on string pool modifications (MDL extractions). It needs only adjustment if moving data within the MDL?
Wiimm 22:09, 4 May 2011 (CEST)
No, it does need string pool modification, because the material layer has a name offset in it. The best way of finding the material layers is by following the pointer in section 11.
Chadderz 22:50, 4 May 2011 (CEST)
Now I understand it and it is not a (indirect) string pointer, but a list of pointers into an other section. Therefor I'll remove the MDL #11 line in the string pool paragraph with the next edit. I also understand the layer list of sect #8 with more string pointers. Are you know more of such links?
Wiimm 16:18, 5 May 2011 (CEST)

Draw demo and Old Mario GC

@Wiimm I've learnt to ignore draw demo and the old mario gc alternate versions, because the seem to be a strange format. I think they're from the early days of Mario Kart Wii, and may have been built for a different standard (maybe DS?). I think it's therefore best if we don't bother documenting them here, since this is primarily about the Mario kart Wii format. We can note the exception in the file system pages if necessary.
Also, I think the section 6 thing is definately a mistake. I've never seen section 6 (though would love to if you have got an example.) I've seen section 12 in other games, but again, we shouldn't necessarily document it here. Chadderz 23:02, 4 May 2011 (CEST)

Ok, I will remove these files and make some tests again. MDL section 6 will only appear in all old mario gc.
Wiimm 23:18, 4 May 2011 (CEST)
Removing the 5 unwanted files gives 100% for each entry.
Wiimm 00:07, 5 May 2011 (CEST)
Excellent, just as I'd expect. Do you still not understand the section 11 pointer?
Chadderz 00:11, 5 May 2011 (CEST)
I understand the concept, but I have never analyzed such links until now. This focus change in the next days.
Wiimm 07:27, 5 May 2011 (CEST)

Sub File Header, offset 0x08

Hi Chadderz,
are you really sure that offset 0x08 of sub file headers is a section count? I believe it is a version number and the section number is implied by this version number. For example old_mario_gc_hayasi TEX0 has version number 1 and all others 3. MDL is similar: 8 and 11. For CHR and others formats it can't be a section count.
Wiimm 08:58, 8 May 2011 (CEST)

I'm absolute sure that this is a version number and not a section count.
  • Speculation: In BRRES this is the section count and for MDL the version 8 and 11 have 11 and 14 (+3) sections. So a wrong assumption was made.
Wiimm 20:27, 8 May 2011 (CEST)
I never thought it was a section count for anything other than MDL. I treat it as a version for all others, but I thought you had other information.
Chadderz 17:48, 9 May 2011 (CEST)
Ok, than I found this info anywhere in the bad internet. But I'm still learning.
Wiimm 19:43, 9 May 2011 (CEST)