How to translate a game after decrypting it?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Skyleft, Feb 19, 2016.

  1. Skyleft
    OP

    Skyleft Advanced Member

    Newcomer
    84
    13
    Feb 19, 2016
    I've decrypted a game since I wanted to translate it to Italian, but the script files are all messy and with a .lua extension. Even when I open them they seem corrupted or something. Is there something I'm skipping or there's no way?
     
  2. evandixon

    evandixon PMD Researcher

    Member
    1,652
    775
    May 29, 2009
    United States
    What game is it?
     
  3. Skyleft
    OP

    Skyleft Advanced Member

    Newcomer
    84
    13
    Feb 19, 2016
    Virtue's Last Reward, a Visual Novel that probably not a lot of people know about
     
  4. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,429
    4,751
    Mar 17, 2010
    Norway
    Alola
    VLR is a massively popular game...
     
  5. Skyleft
    OP

    Skyleft Advanced Member

    Newcomer
    84
    13
    Feb 19, 2016
    Really now? Well I definitely haven't seen a lot of people talking about it. Anyway, can I have luck with the original topic?
     
  6. evandixon

    evandixon PMD Researcher

    Member
    1,652
    775
    May 29, 2009
    United States
    It sounds like the scripts are compiled. Try reading psy_commando's post about how to decompile them (guide written for Pokemon Mystery Dungeon):
    https://projectpokemon.org/forums/s...-And-Utilities&p=207140&viewfull=1#post207140

    If it's anything like Pokemon Mystery Dungeon, the actual dialog will be stored in another file, but it's probably best to see what's in the scripts before making assumptions.

    [Edit]
    Wait, it's published by Chunsoft. It might actually be the same format.
     
  7. Skyleft
    OP

    Skyleft Advanced Member

    Newcomer
    84
    13
    Feb 19, 2016
    I'm trying right now to make it work, but I'd like to ask something else that you might know the answer to as well. VLR was basically the only game braindump didn't want to decrypt, since it froze whenever I selected it. I managed to decrypt it anyway, but not with braindump. That would be fine, but it seems that the same thing is happening now with Hans, since I can't open VLR with it, but I can open every other game.
    Do you have any idea why that'd happen, or if I can fix it?
     
  8. Tomato Hentai

    Tomato Hentai snart

    Member
    3,670
    5,800
    Oct 30, 2014
    Canada
    actually north korea. please send help
    Well, you use Google Translate of course.

    Scrolling through the Lua files, is there anything that looks like normal Lua script, or is the whole thing just a mess? If it's the former, it could be that the file is encoded in something like SHIFT-JIS.
     
  9. Skyleft
    OP

    Skyleft Advanced Member

    Newcomer
    84
    13
    Feb 19, 2016
    Everything is a mess except for a few random readable words here and there
     
    Tomato Hentai likes this.
  10. Tomato Hentai

    Tomato Hentai snart

    Member
    3,670
    5,800
    Oct 30, 2014
    Canada
    actually north korea. please send help
    Could you show me a picture of what it looks like?
     
  11. evandixon

    evandixon PMD Researcher

    Member
    1,652
    775
    May 29, 2009
    United States
    It's a compiled lua script, but unluac.jar doesn't do anything with it for some reason. In PMD: GTI and PSMD (both published by Spike Chunsoft), they can be decompiled and recompiled using unluac.jar and luac.exe, respectively. Maybe LVR doesn't use Lua 5.1 like Mystery Dungeon?
     
    Skyleft and Tomato Hentai like this.
  12. Skyleft
    OP

    Skyleft Advanced Member

    Newcomer
    84
    13
    Feb 19, 2016
    Sorry for taking a while to answer. http://prntscr.com/a5ja3f This is one of the files.
     
    Tomato Hentai likes this.
  13. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    Open it in a hex editor instead. If the amount of bytes between each string is consistent, it won't be too difficult to reverse engineer the file type.
     
    Tomato Hentai likes this.
  14. raystriker

    raystriker Alpha PC Builder

    Member
    1,262
    409
    Dec 28, 2011
    India
    Bloomington
    The games already released in English language regions. I play it. :rofl2::ph34r::wtf::blink:
     
  15. Tomato Hentai

    Tomato Hentai snart

    Member
    3,670
    5,800
    Oct 30, 2014
    Canada
    actually north korea. please send help
     
  16. raystriker

    raystriker Alpha PC Builder

    Member
    1,262
    409
    Dec 28, 2011
    India
    Bloomington
    Oops my bad, missed the italian word. Sorry :3
     
    Tomato Hentai likes this.