[release] MHX Data Manager

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

  1. moghedien
    OP

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    This in an update/expansion of another homebrew app that I made (http://gbatemp.net/threads/release-mhx-quest-importer.410108/). It's now compatible with the JPN, USA and EUR versions of Monster Hunter X.

    Features:
    • Copy a character between regions or just to another save slot
    • Import/export/delete DLC quests
    • Backup/restore save file

    Always backup your save file before messing with it!
    Please report issues here: https://github.com/svanheulen/mhx_data_manager/issues


    Source code: https://github.com/svanheulen/mhx_data_manager
    Compiled version: https://github.com/svanheulen/mhx_data_manager/releases

    Q: Why doesn't my edited quest show up after importing it?
    A: https://github.com/svanheulen/mhx_data_manager/issues/2


    Edit:
    Here's a Python script to convert a Japanese MHX quest to work with MHGen: https://github.com/svanheulen/mhff/blob/master/n3ds/convert_quest.py
    MHGen doesn't seem to have a Japanese font though so the text will show up as a bunch of question marks.

    Instructions for using the conversion script:
    1. Go to python.org, Downloads > Python 3.5.x
    2. Run the installer you just downloaded, make sure to check the "add to path" option on the first page of the installer, the rest leave default.
    3. Download the script (click the "raw" button, then right click and "save page as..."): https://github.com/svanheulen/mhff/blob/master/n3ds/convert_quest.py
    4. Navigate to the folder you Downloaded the script to, hold the "shift" button and right click on the folder, select the "open command prompt here" option
    5. In the command prompt type "python convert_quest.py inputquest outputquest" (only replace input/outputquest with paths to the actual input and output files you want to use)
    WARNING: Please update to v2.3.0+ and do NOT use the "Get Encryption Keys" feature in the older versions. See this post for more info: https://gbatemp.net/threads/release-mhx-data-manager.434848/page-12#post-7366058
     
    Last edited by moghedien, Jun 3, 2017


  2. KazeFatalis

    KazeFatalis Member

    Newcomer
    23
    1
    Jan 6, 2016
    Mexico
    I tried to export the dlc japanese from my mhx and import them to the usa version but only a few of them got copied correctly (most of them prowler quests).

    Warning: Spoilers inside!
     
  3. moghedien
    OP

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    You can't copy JPN quests directly to the USA/EUR versions of the game. That requires more work since the folder structure inside the quest and file formats are slightly different.
     
    KazeFatalis likes this.
  4. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    Would you be able to edit them for export from MHX to MHGen?
     
  5. _eyCaRambA_

    _eyCaRambA_ GBAtemp Advanced Fan

    Member
    522
    139
    Apr 22, 2009
    United States
    Right around the cornerâ„¢
    Most likely yes. It's just a little convoluted since you probably need to unpack all arcs, dupe all the text-related files for all multi5 languages, create the slightly different matching folder structure for the localised version and repack everything appropriately. And since the game is pretty picky with the file order in the archives, I think that might be the most tedious thing to get right.
     
  6. moghedien
    OP

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    justln likes this.
  7. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    Is it possible for you to post the converted files or post a link teaching how to run python files? I'm an idiot at this sort of thing.
     
  8. moghedien
    OP

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    Go to python.org and download/install Python 3.5 (make sure to select the "add to path" option when installing)
    Download my script from the above link (click the "raw" button and then right click and save page as)
    Go to the folder you saved the script in, hold shift and right click and select "open command prompt here"
    Then in the console type "python convert_quest.py path\to\inputquest.arc path\to\outputquest.arc"
    Obviously you'll need to give real paths to the input and output files.
     
    justln likes this.
  9. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    Thanks for the idiot's guide, got Python working and your script worked! Now to convert the 93 DLCs 1 by 1 haha.
     
  10. panotty

    panotty Newbie

    Newcomer
    8
    0
    Jul 19, 2016
    Italy
    Thanks for your great work! Only a little help if possible..i'm in trouble to import quest in mh gen eur. Explain better: if i use export option, it works and place extracted quests into a "quest" folder in eur folder, when i use the import option...it shows me again export instead of import function, i give ok and it export asking me to overwrite. I'm doing something wrong or maybe a bug? Thanks in advance for your reply!
     
  11. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    Yup, same issue. Shows "Select the game to export quests from..." for both Import/Export option.
     
  12. moghedien
    OP

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    Oops, yeah that's just a typo. I'll fix that later today.
     
  13. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    So I exported the quests from MHX, converted, paste them back into the US folder, import them into Gen, go into the game and... nothing. DLC list is still the same with the recently released US DLCs only.
     
  14. panotty

    panotty Newbie

    Newcomer
    8
    0
    Jul 19, 2016
    Italy
    Thank you very much! I'll wait for your fix as if there were no tomorrow!
     
  15. panotty

    panotty Newbie

    Newcomer
    8
    0
    Jul 19, 2016
    Italy
    OMG! Can you post a script sample please....i tried but not able to get working! This is what i write in command prompt: "python convert_quest.py path\to\C:\jap\q1010002.arc path\to\C:\eur\q1010002.arc" .....gives always error of wrong syntax.
     
  16. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    python convert_quest.py D:\MH\q1010003.arc D:\MH\2.arc
     
  17. moghedien
    OP

    moghedien GBAtemp Fan

    Member
    411
    247
    Mar 9, 2015
    United States
    Did you change the name of the quest files? They need to be named exactly like they are when exported. I tested it with the Japanese "q1010004.arc" quest and it worked for me.
    [​IMG]
    [​IMG]

    Fixed the typo and there's a new version on the release page.
     
    Justin185619, justln and KazeFatalis like this.
  18. KazeFatalis

    KazeFatalis Member

    Newcomer
    23
    1
    Jan 6, 2016
    Mexico
    Now is when the hero appears with all converted quests in a .rar
     
  19. panotty

    panotty Newbie

    Newcomer
    8
    0
    Jul 19, 2016
    Italy
    Thank you....later i'll try but i'm sure all will work fine!
     
  20. justln

    justln GBAtemp Advanced Fan

    Member
    708
    276
    Aug 16, 2013
    Ah, I knew it was something like this. Will report back on the results later.

    Edit 1: Works! It was way easier than I thought, used the below command to get all the file names, copy them into Google sheets, some formatting and viola. 9 pages of HR DLCs, didn't crash when I go into one of them.

    "Copy Entire List of Files. Hold the "Shift" key, right-click the folder containing a list of files and select "Open Command Window Here." Type "dir /b > filenames.txt" (without quotation marks) in the Command Prompt window. Press "Enter."

    Edit 2: Just curious, would it be possible to remove the DLC by themselves instead of restoring a previous savegame?
     
    Last edited by justln, Jul 20, 2016