[WIP] Final Fantasy (eShop) Translation.

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Drwho0894, Mar 11, 2016.

  1. Mikemk

    Mikemk GBAtemp Advanced Maniac

    Member
    1,637
    614
    Mar 26, 2015
    United States
    As has been said 10 times on each page...

    The game is particularly picky about the compression, and the translator hasn't quite nailed down how to get it to not crash.
     
    geekboy1011 likes this.
  2. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    I haven't written the utilities yet as I have not been able to properly extract and repack the files for the game. It is moving along. Right now the problem is rather confusing but will get figured out eventually. Not 100% sure where the problem lies yet though :/

    To say what's going on again asset repacking seems to work. Maps load battles load. Certain early game cutscenes load. Entering the town. Crashes. And I haven't the slightest idea as to why yet. The files seem to decompress correctly from my tests(checked half a dozen files or so and they all are 100% Identical). They seem to load in the same order as the original archive. But once I enter that town the contents of an extracted file gets corrupted and the game crashes. I still haven't found where that corruption occurs.

    I have some testing code to write to re-verify that the (de)compressor I have is functioning properly and I have not gotten around to it yet. Taking a small break to work on another non temp related project and play some danganronpa :P the brain is still working however.

    @chrismartin994@gmail.com to call you out directly. The archive format and compression scheme are completion figured out. It is just a matter of figuring out the above memory corruption issue. That's all that's left before I can write the tools for actually Injecting new text!
     
    Last edited by geekboy1011, Aug 7, 2017
  3. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    I'm wondering if replacing the corrupted file with a backup of it mid-game is a possibility.
    If not then, i'll snoop around.
     
  4. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    Every thing copies over correctly. There is some physical corruption in ram that is happening where a previously extracted file is getting corrupted. I also have some hunches. But again going to take some time to test them out. Also replacing it mid execution does not fix anything as it just covers up the bug :P
     
    Last edited by geekboy1011, Aug 7, 2017
  5. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Might I ask what tools you are utilizing? If you could, perhaps you may lend those tools to me so I may partake in ram corruption.
     
  6. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    https://github.com/geekbozu/FF1_Tools I posted them earlier in the thread but here is I believe the current revision. If it fails to seemingly properly load the modified crown.dpk let me know. There was a bug that I might have not pushed....
     
  7. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Um, I have python 2.7.x but for some reason it just opens and closes as soon as I double-click the repacker.py file.
     
  8. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    Did you read the readme?
     
  9. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Yes, the whole readme - several times. I did unpack the crown.dpk with QuickBMS- I got a lot of .pck files.

    To unpack:
    repacker.py input_file output_folder

    Is that what I need to type into cmd prompt?
     
  10. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    Is that what the readme says? also it will unpack the dpk file as well as the pck files. Please do not use quickbms. It loses some metadata we need.
     
  11. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Eh, I made backups of the romfs which contains basically the core parts of the game-as you already know.
    Yes, that's what the readme says.

    EDIT: I'm stupid and forgot all about Python. I got it working now, the Unpacking I mean. Now for some small translation and see if that'll work.
     
    Last edited by Defaultio, Aug 7, 2017
  12. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    All right, i've unpacked it- now what? It's just a bunch of .pck folders as opposed to the files themselves.
     
    Last edited by Defaultio, Aug 7, 2017
  13. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    repack it and load it on the 3ds (use which ever means youprefer hans/layeredfs etc) and see if it crashes.
     
  14. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Just repack? No edits or anything?
    Oh well, godmode9 to the rescue.
     
  15. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    Just repack. IF the plain repack does not work how will any edits work yes? :P
     
  16. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    You got a point there. I'm repacking.
     
  17. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Stupid question: How can I put the romfs file back in to a .app file with god 9? Decrypt9 doesn't work with the latest luma update.

    I used GM9 to just get the romfs folder from the .app file from the game itself.
    I have no clue how to put it back in other than re-doing the entire proccess but with a dump of the game itself. Sorry for being so stupid.
     
    Last edited by Defaultio, Aug 7, 2017
  18. geekboy1011

    geekboy1011 Advanced Member

    Newcomer
    50
    22
    Mar 24, 2013
    United States
    look up layered fs with luma definitely the easiest way for this.
     
  19. Defaultio

    Defaultio GBAtemp Regular

    Member
    105
    9
    Sep 19, 2015
    United States
    Almost done with all this stuff. I actually made a plan to see what would happen if I loaded a save file while in the town.
     
    Last edited by Defaultio, Aug 7, 2017
  20. FateForWindows

    FateForWindows GBAtemp Advanced Fan

    Member
    713
    259
    Feb 8, 2017
    United States
    Go into FBI, Titles, find Final Fantasy and write down the title ID somewhere. Then create a folder in the Luma folder named code_sections, then a folder with the titleid you wrote down. Then make a folder called romfs and paste the modified files there.
     
    geekboy1011 likes this.