[Request] Simple program to split hex into seperate files

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Coleman_C18, Nov 16, 2015.

  1. Coleman_C18
    OP

    Coleman_C18 GBAtemp Fan

    Member
    429
    278
    Sep 1, 2015
    United States
    Hello, I'm currently in the process of interpreting and editing ACNL collision files for its outdoor acres (grd_jmp.bin). So far I've been doing things by hand mapping them out, and as you can see below its been quite tedious.

    [​IMG]

    I have no programming knowledge and would love if someone could make me a basic tool that would save these separate hex maps into 261 separate files.
    It would be optimal to have them spit out in groups of 2 bytes as seen above with A0 (160) bytes per column/row with a total of 16 columns or rows per map. There should be A00 (2560) bytes in total per map collision and in the end looking something like this.
    [​IMG]
    Though the separate filenames can be numbered, if your willing to go the extra mile it would be great to have them based on the offset they begin.

    Thanks in advanced <3
     
    Last edited by Coleman_C18, Nov 16, 2015
    Tomato Hentai likes this.
  2. Kaphotics

    Kaphotics badc0ded

    Member
    611
    460
    Sep 10, 2010
    United States
    Seems like a good opportunity for you to learn how to program something. It's really not that hard.
     
  3. Coleman_C18
    OP

    Coleman_C18 GBAtemp Fan

    Member
    429
    278
    Sep 1, 2015
    United States
    This thread is asking for help, not asinine and obvious statements. move along if you don't plan to assist.
    If I had time to sit and learn to code I wouldn't have made the post.
     
    Last edited by Coleman_C18, Nov 16, 2015
  4. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,361
    9,152
    Nov 21, 2005
    If ROM hacking like this is something you intend to do (custom files for a complex task on a pain in the arse to hack system) then spending a few hours to get python to the point where you can modify a binary file is probably worth the effort. If you had to learn C or something a bit more complex then yeah Kaphotics would be the one making an asinine statement, with modern scripting type languages then the ball is back in your court there.

    Still http://min.midco.net/cracker/filecutter.zip
    Usage
    filecutter file.in length file.out <-s start>

    I quite often make batch files which are just long lists of commands for this. They end up something like
    Code:
    filecutter data.bin 404 00000194.bin -s 40812
    filecutter data.bin 473920 00073B40.bin -s 41216
    filecutter data.bin 298200 00048CD8.bin -s 515136
    filecutter data.bin 260812 0003FACC.bin -s 813336
    filecutter data.bin 47352 0000B8F8.bin -s 1074148
    filecutter data.bin 168724 00029314.bin -s 1121500
    filecutter data.bin 49844 0000C2B4.bin -s 1290224
    filecutter data.bin 18240 00004740.bin -s 1340068
    filecutter data.bin 98984 000182A8.bin -s 1358308
    filecutter data.bin 72880 00011CB0.bin -s 1457292
    filecutter data.bin 71684 00011804.bin -s 1530172
     
    Coleman_C18 likes this.