[HELP] Swapping files inside a file?

Discussion in 'NDS - ROM Hacking and Translations' started by Hidden Gardevoir, Dec 5, 2015.

  1. Hidden Gardevoir
    OP

    Hidden Gardevoir Member

    Newcomer
    25
    1
    Mar 14, 2015
    I'm trying to add the old sprites and models from Inazuma Eleven 1 (jap) to Inazuma Eleven 3 (nds, jap) but they are in a compressed file. Is there anyway to change the files inside?
    HOW can I do it? I tried with Tinke nds, but it looks like the "Change File" option doesn't work as expected.

    PLEASE ANSWER, I am trying to do this since 2013...
     
  2. XswordcraftX

    XswordcraftX Advanced Member

    Newcomer
    56
    17
    Mar 2, 2010
    Saint Kitts and Nevis
    I use DSLazy to unpack my NDS roms, extract some sound files from a japanese version of the rom and repack it to the english version (undubbing as they call it). However if you are trying to unpack a game to an entirely different game, im afraid it may not be possible.
     
  3. Hidden Gardevoir
    OP

    Hidden Gardevoir Member

    Newcomer
    25
    1
    Mar 14, 2015
    It's possible, because I changed the packed files and it worked but there's a problem, the models from IE2 and IE3 obviously don't appear so I want to change the files inside the packed ones.
     
  4. XswordcraftX

    XswordcraftX Advanced Member

    Newcomer
    56
    17
    Mar 2, 2010
    Saint Kitts and Nevis
    Im afraid i wont be able to help you there, but you may try experimenting around with DSlazy to see if you can get what you want
     
  5. rastsan

    rastsan 8 baller, Death Wizard,

    Member
    995
    228
    May 28, 2008
    Canada
    toronto
    talked to anyone who was hacking/translating ie2 ie3?
    I do remember that unpacking wasn't an issue. I have unfortunately deleted all the files I used to have on this. Open the pkh file to see the pointers.
    you will see them in hex
    look at the the numbers in hex they point in the corresponding pkb file to a file in that file (example 5E 01 would point to hex 15E in the [pkb file... which is where the file in the file starts)
    now the problem being that tinke may not be updating the pkh file. so you may have to go old school and do it by hand or do it differently. As in join the pkb file to the pkh then open it as a pack file in tinke. If this is too difficult there is the slightly more difficult option of using filesplitter and a bat file to make things (with the use of a spreadsheet to make things faster). filesplitter needs to have the pointers spelled out. Tinke also has that as an option where you would manually add the pointers in yourself... I wouldn't give up on finding roxas tools though. I may have it around on a backup somewhere... but I am not going to spend that much time looking as I have already unpacked the file both ways I just listed and it took me less than half an hour while watching doctor who...
    so if I didn't explain this well enough fast6191 has a guide on this forum somewhere on filecutter (and a bat file that you just need to paste into a text editor then into a spreadsheet then fill with the relevant pointers.
    My suggestion to you is to look up pack files so you get to know how they work.
     
    Hidden Gardevoir likes this.
  6. Hidden Gardevoir
    OP

    Hidden Gardevoir Member

    Newcomer
    25
    1
    Mar 14, 2015
    I'll try to do it!
    THANK YOU! I've been looking for an answer soo long.
    Again, THANK YOU ^^
     
  7. rastsan

    rastsan 8 baller, Death Wizard,

    Member
    995
    228
    May 28, 2008
    Canada
    toronto
    Maybe I should be clearer then. If you have the pointers of where the file is in the file you can change them all to once you put your file in. if it is smaller don't worry about it just pad the difference with a bunch of null bytes but if it is bigger you will need to find where every file in there now starts and change the pointer to them to reflect their new position. so 15e gets a bigger file - the file that used to be at 23c is now at 304 you need to find that pointer and change it and any other pointers for other files. its like inserting a bigger chapter in a book the page numbers are no longer the same so they need to be changed.
     
    Hidden Gardevoir likes this.