Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

Thread Tools
Old April 5th, 2010 (11:58 AM). Edited April 5th, 2010 by smurph717.
smurph717 smurph717 is offline
    Join Date: Apr 2010
    Location: Santa Clara
    Gender: Male
    Nature: Bold
    Posts: 22
    Hey all, so I've been playing around with the land_data files (the narc is at a/0/6/5 in the rom, for those interested), and found an interesting change from the DPP format (I'm assuming it's a change because it apparently wasn't an issue with maps from DPP, but I'm not certain because I don't have those roms). Some of you may be aware of the PG4Map tool that SentryAlphaOmega made recently (it's in this forum), and how it can't open many of the HG/SS map files. After snooping around in a few with a hex editor, I noticed a "magic number" of sorts placed after the 4 sizes in the header. It looks like after the movement permissions, 3d models, BMD0, and BDHC section sizes are given, there's a 0x1234 and then another size of something (it's zero for the maps that PG4Map can open). I'll look into this more and post later, but the size given here is always the offset from where the program expects the BMD0 data to start and where it actually starts. What's weird is it doesn't take this into account for the size of the header; even though there's this magic number and mystery size, the BMD0 offset is still computed as if the header is 16 bytes. For example, in land_data_release_004, the sizes of the two sections before BMD0 are 0x800 and 0x0 and the size of the header is 0x10, so PG4Map looks at 0x810 for the BMD0 data and fails. In actuality, it starts at 0x850, and after the 0x1234 "magic number" there's an 0x40. I modified the tool to take that into account, and now it opens all the maps (I'm having some serious texture issues, however, but at least the models load). If someone could point me in the direction of more documentation on the map file format, I'd appreciate it. For all I know, I figured out something someone already knows, but probably not because the tool didn't know about it. Anyway, enjoy!
    Attached Files
    File Type: zip‎ (915.9 KB, 87 views) (Save to Dropbox)
    Reply With Quote

    Relevant Advertising!

    Old April 6th, 2010 (1:22 PM).
    Full Metal's Avatar
    Full Metal Full Metal is offline
    C(++) Developer.
    • Silver Tier
    Join Date: Jan 2008
    Location: In my mind.
    Age: 22
    Gender: Male
    Nature: Timid
    Posts: 806
    hey, i'm interested in figuring out how the maps are. Could you help me?
    I've opened up the land files with a hexworkshop
    and...theres' ascii?!
    i was like O_______________________O
    so yea, i'm really interested in being able to edit them. Just for fun (i really don't care to do a DS hack, whew that would be a doozy)
    anyways, what i'd really like is a description of what bytes do what, cuz i only found 08's (of course, i'm looking at the files from my old pearl rom) (which i should delete seeing as i sold my game...) but i have platinum and maybe i'll look at them too...

    ★ full metal.

    I like to push it,
    and push it,
    until my luck is over.
    Reply With Quote

    Quick Reply

    Join the conversation!

    Create an account to post a reply in this thread, participate in other discussions, and more!

    Create a PokéCommunity Account

    Sponsored Links
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump

    All times are GMT -8. The time now is 1:36 AM.