(WIP) Ao no Kiseki ENGLISH patch

Discussion in 'PSP - Hacking & Homebrew' started by julialy, Jul 7, 2017.

  1. FrantzX

    FrantzX Member

    Newcomer
    19
    12
    Aug 3, 2017
    United States
    Well, crap. If you have the source to build it, I'll take that.
     


  2. julialy
    OP

    julialy Homebrewer

    Member
    1,665
    577
    Nov 26, 2012
    United States
    United States
    https://transfer.sh/IE5p6/EDAO.zip

    This requires WinDDK, the Windows 7.1 SDK, and the latest MSVC build tools.

    I used a hacked up environment to build the hook. (The above tools installed in a wineprefix, then using Make for the buildsystem)
     
    Last edited by julialy, Aug 6, 2017
  3. FrantzX

    FrantzX Member

    Newcomer
    19
    12
    Aug 3, 2017
    United States
    Well, this is going to be more involved than I thought. OK, this is what I am trying to do, at least as step 1.

    My copy of Ao no Kiseki PC is the program ED_AO.exe. I want to be able to do binary patches to the executable, just like my tool does for the PSP's decrypted EBOOT.BIN. However, the executable looks to be compressed or encrypted. The initial zip file you provided, ED_AO_Hook.zip has both ED_AO_CRACK.exe and EDAO.dll. This executable is not compressed or encrypted, so I can search for the phrase "诺艾尔", or "Noel" in Chinese (C5 B5 B0 AC B6 FB), write "Noel" at offset 0x76C920, and do the same patch as I mention on my GitHub page.

    Do you have a way to get the actual .exe file from the original ED_AO.exe?
     
    Fugsnarf likes this.
  4. julialy
    OP

    julialy Homebrewer

    Member
    1,665
    577
    Nov 26, 2012
    United States
    United States
    Nope.
    The unpacked ED_AO_CRACK.exe was emailed to me by the original hook creator by request.

    However, the hook libraries can redirect a portion of the string table (look for pointer, if in lookup table, pass on different pointer), so you don't need to hex edit the ED_AO_CRACK.exe. I plan on releasing an updated hook.
     
    Last edited by julialy, Aug 6, 2017
  5. FrantzX

    FrantzX Member

    Newcomer
    19
    12
    Aug 3, 2017
    United States
    Ideally, all the options should be configurable via ini file or equivalent.

    It looks like the dead minimum that EDAO.dll needs to do is proxy calls to Direct3DCreate9 and DirectInput8Create. I guess I get to find out if I remember enough c++ to do that.

    While I try to remember C++, can you provide a EDAO.dll that does not make any game changes? I need to play the game as vanilla as possible to make sure I am compiling the scripts correctly.
     
    Last edited by FrantzX, Aug 6, 2017
  6. ils

    ils Advanced Member

    Newcomer
    59
    39
    Mar 8, 2008
    Indonesia
    that's weird, i just finished that part of mini game and the game didn't crash :unsure:
    i should be in the conference soon, hopefully it's something easily fixable

    just found another crash before fishing mini game, the one in Armorica Old Road when we challenge certain person
    (i don't think i can fix this). i just load original ISO to play this mini game :lol:
     
    EngTrans likes this.
  7. shadow12345

    shadow12345 Member

    Newcomer
    14
    1
    Jan 19, 2009
    United States
    Hi, the game hangs for me at chapter 2, during the trade conference when Dieter is about to propose something and then Arios yells (probably a monster or somebody intruded), then it froze. I tried both with and without voice options but neither worked.
     
    Miracutor likes this.
  8. Miracutor

    Miracutor Newbie

    Newcomer
    5
    1
    Jul 31, 2017
    Malaysia
    The only available solution (unless @ils patched it) is to load with Japanese ISO. You only missing a little. Save in game before entering Chancellor Osborne room. Watch until hang. Then, load with Japanese ISO with that save and press 'X' to fast forward everything until the hang in patched ISO. Just read normally (I read with kitsune worksheet). After the end of that scene, save and reload with patched ISO. Already at Chapter 3 - Day 3. Still none of bug with exception of this hang.:yay:
     
  9. legendaryheroes123

    legendaryheroes123 Newbie

    Newcomer
    5
    0
    Jul 15, 2017
    Canada
    I hope this isn't too much to ask but could anyone please manually translate bits of text for each chapter so we can follow the walkthrough by zoelius on gamefaqs without running into machine translated text? Like the text in this part:

    Chapter 1
    • West Street
      Law Office - Speak to Ian for an event.
      Bakery Cafe "Morge" - Speak to Oscar to receive a muffin.
    • East Street
      Bracer Guild - Crossbell Branch - Speak to Lynne or Aeolia on the second floor.
    • Government District
      Police Station - Speak to Fran.
    • Entertainment District
      Arc en Ciel - Enter main stage for an event. Note: (This event will raise Rixia's Bonding Points)
    • Residential Street
      Hayworth Residence - Speak to Harold, Sofia or Colin for an event.
    • IBC
      Speak to Lanfe by the receptionist counter to receive a Primary Card.
      Speak to Rezelo near the entrance to receive a Celestial Balm.
    • Downtown
      Trinity - Short event when entering.
      Ignis - Short event when entering.
      Exchange Shop "Neinvall" - Short event when entering.
      Guillaume Factory - Short event when entering.
    • Mainz Mountain Path - Crossbell Cathedral
      Speak to Sister Marble for an event.
      You can speak to KeA for an event. Note: (This event will raise KeA's Bonding Points)
      You can visit the grave of Guy, Saya and Ozma for another event scene.
    It would be absolutely amazing if someone could do this :)
     
  10. julialy
    OP

    julialy Homebrewer

    Member
    1,665
    577
    Nov 26, 2012
    United States
    United States
    If you don't want any changes, just replace EDAO.dll with a file that immediately returns on DllMain.
     
  11. ils

    ils Advanced Member

    Newcomer
    59
    39
    Mar 8, 2008
    Indonesia
    okay, fixed the "Arios shout" crash :D
    luckily it's quite easy to fix, just like monster extermination crash in earlier version

    here's the patch :
    PSP with Voice Patch
    PSP without Voice Patch

    i also deleted all previous patch so newcomer didn't download the bugged one
     
    EngTrans likes this.
  12. shadow12345

    shadow12345 Member

    Newcomer
    14
    1
    Jan 19, 2009
    United States
    I wholeheartedly second this. Having these scenes translated would make the game significantly more enjoyable. I am not sure how much work it is though, but probably way less than the effort needed to translate the main story.

    Does anybody also notice some non-matching text problems at some scenes, using @ils patch? Sometimes, it is already somebody else's sentence but the portrait is still lloyd. It feels like originally Lloyd spoke two sentences separately in the Japanese version, but they were translated into one and shown on a single text box, then the next Lloyd text box takes the first sentence of the other person.

    It has happened to me a lot recently in Chapter 2.
    Thanks for the quick fix :D I already went past that scene using the original Japanese version, but it is good to hear it has been fixed nontheless.
     
  13. MexicanTail

    MexicanTail Member

    Newcomer
    11
    2
    Jul 27, 2017
    Italy
    Nice, is it possibile to have pc files like previous updates? Thx
     
  14. Fugsnarf

    Fugsnarf Advanced Member

    Newcomer
    69
    35
    Feb 20, 2016
    United States
    That'd be more work than one would think because the text isn't uniform in the document. Rather, it's scattered around and not in order. So for someone to do that, they'd need to basically play the game through and translate each of those events as they go. Since none of us are real translators, I'm not sure that'll happen.

    What I could do is compile up a spreadsheet with those lines of dialogue as I go along. We'll see how that works out but I won't make any promises. In any case, it'll be awhile.

    @ils One thing to note is that the Google translation screws with a lot of those # commands. I assume that's a source of a lot of potential crashes and runtime errors. I scanned through the spreadsheet a bit and noticed tons of those that were broken usually with a space between the # and the command.

    Also could you please update the OP with the scena for PC?
     
    Last edited by Fugsnarf, Aug 6, 2017
  15. FrantzX

    FrantzX Member

    Newcomer
    19
    12
    Aug 3, 2017
    United States
    That doesn't work. ED_AO_CRACK.exe crashes on startup with error 0xc000007b. Dependency Walker is showing me that ED_AO_CRACK.exe expects EDAO.dll to have the function Direct3DCreate9 exported. When I do that, ED_AO_CRACK.exe shows a black screen for a few seconds, then crashes. Until I figure out what I am doing wroing, can you provide a EDAO.dll without the cheats enabled?
     
  16. julialy
    OP

    julialy Homebrewer

    Member
    1,665
    577
    Nov 26, 2012
    United States
    United States
    To be honest, I'm not sure which are the cheats. The hook code is pretty messy.
     
  17. Fugsnarf

    Fugsnarf Advanced Member

    Newcomer
    69
    35
    Feb 20, 2016
    United States
    @ils Really quick request. The script seems to use a lot of actual ellipses (…) characters throughout. That is, not three separate periods but the actual … character. If you could just copy that and do a quick find+replace of all instances of that in the entire script (both google TL and kitsune) with three separate dots, that'd be much appreciated because the … character just shows up as a Chinese character in the PC version. Not sure about the PSP.
     
  18. FrantzX

    FrantzX Member

    Newcomer
    19
    12
    Aug 3, 2017
    United States
    That's because the PSP files encode text with Shift-JIS, while the PC version encodes in Simplified Chinese. I doubt any text outside of ASCII would display correct. I don't recommend using PSP files for the PC game, or vice versa.

    Can you create a EDAO.dll that does the dead minimum to get the game to run? If I was given a known good base to work on, I could continue from there. Visual Studio 2017 is free to download from Microsoft if you don't already use it.
     
  19. julialy
    OP

    julialy Homebrewer

    Member
    1,665
    577
    Nov 26, 2012
    United States
    United States
    Try changing your non-unicode language to Japanese. The UI text will be mojibake, but the scena files will be fine.

    I'll see what I can do.
     
  20. FrantzX

    FrantzX Member

    Newcomer
    19
    12
    Aug 3, 2017
    United States
    I just uploaded a new version of the Crossbell Translation Tool to my GitHub. Many bug fixes included for crashes when playing the game with translated files.

    It also includes a new 'formatjson' command to make your JSON files easier to work it. Of course, backup your files beforehand.

    https://github.com/FrantzX/CrossbellTranslationTool/releases/tag/v1.6.0.1

    I just finished Chapter 1 on the PC version, so my next goal is to hand edit Kitsune's text for Chapter 1 for both PSP & PC. It should take me a few days, I think.
     
    Last edited by FrantzX, Aug 7, 2017