Grand Knights History English Patch Alpha (looking for help)

Discussion in 'PSP - Hacking & Homebrew' started by justfuit, May 13, 2014.

  1. justfuit
    OP

    justfuit Member

    Newcomer
    42
    43
    Dec 10, 2013
    United States
    About the Patch:
    This patch is a complete English patch for Grand Knights History. There are patches floating around by Gyoru and by kenma9123, but they were partial patches.

    There is an online portion for this game, but it is not being officially supported. As such, things related to the online War mode have not been completed.

    EDIT:
    The final version is gkhpatchv1.16


    Screenshots:
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    Patch Download:
    Download the patch here

    You'll need custom firmware, xdelta, and UMDGen. Read the README in the zipped patch file for instructions.

    This is version 1.16, the final version. This version fixes typos found in version 1.15 and also incorporates some wording changes. Many thanks to all those who have made suggestions since 1.15.

    Notes:
    - Keep in mind that it's a still Japanese game, so "O" is confirm and "X" is cancel
    - The online portion of the game, while translated, has not been tested at all, nor is it a goal to complete this portion of the game.

    Last Words:
    Big thanks to:
    Gyoru, for starting the patch and suggesting that a complete patch could be done
    kenma9123, for helping me get starting by sharing his extractor tool
    codestation, for open-sourcing his PRX patch code, from which I was able to study and learn from
    My translator and tester, both of which who wish to remain anonymous (shy people...)
    Al_Sleeper, for doing some heavy testing and being very responsive
    Lyan53, for his work on the French translation attempt helped me understand how this game works

    Support Vanillaware! The art in their games is amazing and deserves to be recognized.
     
    Tosnic, KingVamp, imadsoft and 17 others like this.
  2. NicoBlogs

    NicoBlogs GBAtemp Regular

    Member
    289
    89
    Apr 19, 2013
    United States
    USA
    Wow awesome work! Thank you so much!
     
  3. parallelepipeds

    parallelepipeds Newbie

    Newcomer
    1
    0
    Jun 10, 2009
    United States
    First of all, you're very kind and generous -- to share all of your hard work with us. Thank you for this. I've been dying to play this game completely translated...and you're making my dream come true.

    Second, while I can't help with the translation, I want to wish the team the best with all of their work! Looking forward to this!
     
  4. NicoBlogs

    NicoBlogs GBAtemp Regular

    Member
    289
    89
    Apr 19, 2013
    United States
    USA
    I'm getting stuck at the black "now loading" screen after inserting my name.
    PSP 6.60 PRO-C (fix3)

    Edit: After restarting the game it didn't got stuck there.
    But after finishing the tutorial it got stuck again on a white screen while the music still playing.

    3rd try. I tried 3 kingdoms by now, different names, it always crash early in the game.

    I tried disabling the plugin, it solved crashing problem. I'm 99% sure it's the cause of the crashing.
    But without it most of the translation is unreadable (doesn't fit the screen).

    I'll wait for an update of the plugin, can't play the game with the alpha one.
     
  5. Kelebek

    Kelebek GBAtemp Regular

    Member
    165
    62
    May 25, 2012
    No idea how to fix it or *exactly* where the code is yet, but I see that the ascii is converted into SJIS, and that's why it's monospaced, so that's what needs to be avoided.
     
  6. justfuit
    OP

    justfuit Member

    Newcomer
    42
    43
    Dec 10, 2013
    United States
    Thanks for trying it out NicoBlogs. It certainly does sound like a problem with the patch, although I'm not sure what it could be. A majority of the patch gruntwork should be done shortly after the main game thread loads. Things are patched in memory, then the patch sleeps until it hooks some internal PSP functions.

    What model PSP are you using? I have PSP-1000 with 6.60 PRO-C2, but I downgraded it to PRO-C fix 3 to test and was able to go through the first quest without any freezing. Can you try this patch instead? When the game freezes, connect the PSP over USB to a PC and there should be a file on the PSP root called 'gkhpatch.log'. I might be able to see what's going on based on those messages.

    Thanks for the input. You are correct - there is a conversion from ASCII to Shift-JIS, but I think it only applies to the main story text, and not the menus. The patch should defeat the conversion, which allows the nicer display. That's why if you don't use the PRX patch, the text runs off the screen.
     
  7. Kelebek

    Kelebek GBAtemp Regular

    Member
    165
    62
    May 25, 2012
    Ah really? Mmk, didn't know you already got around that part. I just started debugging the first SJIS I saw. :P

    The menus should be doing the same though, because it looks monospace from the screenshots.
     
  8. justfuit
    OP

    justfuit Member

    Newcomer
    42
    43
    Dec 10, 2013
    United States
    After you mentioned it, I took another look at the screenshots and you may be right. It's possible there another conversion in another place that I missed. I'll look into it. Thanks!
     
  9. Kelebek

    Kelebek GBAtemp Regular

    Member
    165
    62
    May 25, 2012
    Or maybe not, looking again at the "i"s, they definitely have less space than other characters. Maybe just a case of odd/bad spacing. Hmm. Maybe editable in the font itself, have you looked into that?
     
  10. StorMyu

    StorMyu "I'm too old for this"

    Member
    900
    440
    Jan 2, 2010
    France
  11. justfuit
    OP

    justfuit Member

    Newcomer
    42
    43
    Dec 10, 2013
    United States
    I looked through that when you posted it in the other thread. Thanks for that. I think what Lyan found is something I have already fixed. I can't read French, but based on the gibberish translation that Google spit out for that post, I believe Lyan found the ASCII to Shift-JIS conversion that occurs in the main text, which I do fix with the patch, and not the one that occurs in the menus, which is what I'm looking for.

    For the most part, the game is playable (provided the patch works), but I'm looking to do the finishing touches. If I can't figure out a way to get it the way I want, the patch I have released can still be used.
     
  12. NicoBlogs

    NicoBlogs GBAtemp Regular

    Member
    289
    89
    Apr 19, 2013
    United States
    USA
    Hi again, my PSP is a 3004
    I tried again with the debug patch.
    This is what happens, it's not actually a freeze/crash, looks like the game still runs but i can't do anything cos i'm on a loading screen or in a white screen, while the music is still going, i could even trigger the screenshot menu with start:

    [​IMG]
    [​IMG]

    This is the log content:
     
  13. GamerzHell9137

    GamerzHell9137 GBAtemp Psycho!

    Member
    3,833
    1,687
    Nov 1, 2011
    Bosnia and Herzegovina
    Can you make a plugin-less version of the patch? PPSSPP doesn't support plugins (nor it will).
     
  14. qaz015393

    qaz015393 GBAtemp Fan

    Member
    444
    25
    Jan 28, 2009
    United States
    Big thanks for the patch. Been wanting to play this in English :) Great job on the work you've done for the patch.
     
  15. justfuit
    OP

    justfuit Member

    Newcomer
    42
    43
    Dec 10, 2013
    United States
    I messed with the font before, just to see what the limitations were. At one point, I tried replacing some characters with the font used in Odin Sphere, but that didn't turn out too well. All the tiles for different encodings of the English letters look identical, but the spacing in the tile is different. I think there's a routine in the game that resizes the tiles as it sees fit. Here's what the font file (on a navy background, original is transparent) for English characters looks like:
    [​IMG]

    NicoBlogs, thanks for going through that and posting the log. Unfortunately, it looks like the patch is doing what it's supposed to. It could be way I'm building the plug-in, as I'm not too experienced with that. My final suggestion would be to try PRO-C2, or maybe wait. I might have a PRX-less patch working.

    The plug-in writes in some ASM code to makes things look nicer in most places. I feel the biggest role of the patch is to defeat the ASCII to SJIS conversion that happens in the main text. Without this defeat, none of the text would fit in the window. You can get around it by shortening things, but then you're severely limited in getting the message from the translation through. StorMyu was kind enough to explain something to me that make me think I might be able to get a plugin-less patch to work, which might be worth the effort.
     
  16. Kelebek

    Kelebek GBAtemp Regular

    Member
    165
    62
    May 25, 2012
    You just need to patch the EBOOT directly, and include that with your other files.
     
  17. GamerzHell9137

    GamerzHell9137 GBAtemp Psycho!

    Member
    3,833
    1,687
    Nov 1, 2011
    Bosnia and Herzegovina
    Cool, good luck with it, gonna wait until then.
     
  18. justfuit
    OP

    justfuit Member

    Newcomer
    42
    43
    Dec 10, 2013
    United States
    Original post download link has been updated with a new patch. With this patch, the plugin is only needed if playing on the PSP. All the plugin will do is hook the PSP utility functions and change the region to English. Needless to say, emulators don't need (nor support) this plugin, so those who want to use an emulator can ignore the prx.

    Still looking for people who will help proof-read. I reviewed all the text files before putting the translations in, but sometimes it's difficult to get the right message across without context. Problems described in the original post are still there, but I'll be working on them, albeit slowly.
     
  19. NicoBlogs

    NicoBlogs GBAtemp Regular

    Member
    289
    89
    Apr 19, 2013
    United States
    USA
    Ok i've tested the new patch.
    In both pro-C fix3 and Pro-C2 it does the same thing, after you kill the enemies on the initial tutorial the screen goes white the music still runs but you can't do anything other than close the game.
    The problem moved to the ISO itself not the plugin.

    A pic showing my model and CFW:
    [​IMG]

    The infamous white screen of death:
    [​IMG]

    I really wish somebody else test this patch maybe on a 3000 model if possible. I can't believe i'm the only one with this problem.
     
  20. gartlan

    gartlan Member

    Newcomer
    33
    0
    Nov 5, 2002
    I have tested both patches on a PSP 2000 running 6.60 Pro C2 and I have exactly the same issue, it hangs displaying a white screen with the music still running, after completing the first tutorial. Not only that, after exiting the game and returning to the game, it won't load the save game, hanging while displaying a loading message. With the first patch I deleted the save game...and didn't have the problem. If you decline the tutorial I was able to complete the first battle and continue, but I didn't play for long.

    Great to see this game translated, but a hang so early in the game doesn't make you confident. I'll test the second patch with a friend's PSP 1000, but I imagine it will do the same.