Creating a Mod - StoneTD/Octopath-Modding-Wiki GitHub Wiki

In this section, you will find a detailed breakdown of how to create a mod. Each heading in the process covers the installation and use of a modding tool.

FModel

Download Here

Probably the first program you will use, FModel is an efficient and stable tool for browsing the game files. It has a very fast search function, and can export uasset files, which is the main type of file we will be modding. These contain the databases, sounds, and textures (images) used in-game. It can also view and extract umap files, which are files that arrange and define 3d environmental assets such as trees, lighting effects, camera bounds, and transition zones.

How to install and set up FModel

When you install FModel, you will need to tell it what you intend to mod. It may detect this automatically as Octopath Traveler 2 when you navigate to the pak file containing the base game files, but if not then you will need to enter the following in the Settings menu:

  Output Directory:   C:\FModel\Output
  Archive Directory:     C:\Steam\steamapps\common\Octopath_Traveler2
  UE Versions:         GAME_UE4_28

The Output Directory should be wherever you installed FModel. I personally like to keep everything inside that one output folder, including the other programs I use for modding (each in their own subfolders), so everything is in one easy to access place. The Archive Directory should always point to the Octopath_Traveler2 folder in the common folder of your steam installation. The above example is the default if you installed Steam directly onto your C: drive. Once you have FModel installed and set up ready to use, you should see the following file appear when you open the program, under the "Archives" tab on the left:

  Octopath_Traveler2-WindowsNoEditor.pak

This file contains all the data we will be editing. If you double-click it, it will open the contents just like in windows file explorer. Double-click "Octopath_Traveler2", and then "Content", and you will see a large number of folders. These are the folders we will be dealing with in this tutorial. For more in-depth details of the contents of each folder, see the [File Structure](File Structure) section.

Search functions, and exporting files for modding

As you navigate the folders, double-clicking on any file will display its contents on the right-hand panel. Using Ctrl+F will open the search box to search within that panel, and if you want to search the file structure for filenames, you can use Ctrl+Shift+F. To find specific data within a file, FModel's search functionality is far superior to that of UAssetGUI. You won't be able to edit files directly using FModel, but you can export them and/or their contents, for editing with UAssetGUI and other programs. To export a file, just locate it on the left panel, and right-click, then select:

  Export Raw Data (.uasset)

This will export the selected file(s) as two linked files, a .uasset file, and a .uexp file. We'll be opening the uasset file using UAssetGUI, which will automatically modify the linked uexp file. You need to keep both in your mod in order for it to work properly. Alternatively, you can right-click and select:

  Save Texture

This will export any embedded image files (usually .png format) for editing externally. If you want to edit and re-inject textures back into their uasset files, you will need to use a program like UE4-DDS-Tools to do this. That's about it for FModel for now. By this point, you should have at least one uasset file that you want to modify, so for that we'll need UAssetGUI, discussed next, or JeffVi's UAssetAPP.

UAssetGUI

Download Here

Depending on the type of mod you are making, this will likely be your most frequently used tool. It can open .uasset and .umap files, and directly edit both. Since the release of 1.03, it also has an option to disable "pretty bytecode", which enables the direct editing of bytecode in blueprint files. This is more advanced modding though, and will be discussed later. For now, be aware there are multiple types of uasset files. Some are databases with various moddable values, some define the use of texture files, some contain directions for a music cue sheet, and some are BP (blueprint) files, which contain sets of instructions for the engine, and are much more challenging to modify accurately. For now, we'll be looking at database files, which are often contained within folders named "Database" in the file structure.

How to install and set up UAssetGUI

The GUI for this program is fairly simple and intuitive. When you open the program, you will see a drop-down menu on the upper right corner. Click that, and make sure to select 4.27 from the list – this is the version of unreal engine that was used to make OT2, and it lets the program know how it should decode the uasset files we load in.

How to edit .uasset files

When you first open a .uasset file, you'll see a list of items in the left-side panel. The only one we need to be concerned about is Export Data, which will have a plus symbol next to it. Clicking a plus symbol will expand the contents of that part of the file structure. Nearer the top, you'll see Name Map, which contains every text string used within the uasset file. If you are editing with UAssetGUI then you can ignore this, because it will automatically add any new strings you create to this list, however, if you are editing in json format, any new text strings you use will need to be added manually to the Name Map to avoid corrupting the file, and making it unsavable. Export Data is divided into numeric segments. Database files will generally have only 1 of these, but blueprint (BP) uassets may have hundreds. It will be simpler to start with a database file, so let's assume you have opened the following file:

  Octopath_Traveler2/Content/Character/Database/JobData

This file contains all the data pertaining to jobs. If you expand the structure using the plus symbols like so:

  Export Data
   Export 1 (JobData)
    Table Info (35)

You will see each of the entries in the database. If you click on eMERCHANT (16), you'll see on the right-hand panel all of the fields in that section, and the values assigned to those fields. This is where you can edit things. It's also possible to edit the names of the sections like eMERCHANT and eGUEST_JOB_000, by clicking on Table Info and changing the names, but be aware this will cause any reference to the old name to no longer work properly. It can be a useful thing to do in larger and more complex mods, to keep track of and reference data more easily, but for now we'll leave it alone.
To understand what each field does in the right-side panel, you can check the [File Structure](File Structure) section of the wiki, where many of the files are explained in greater depth. For now, assuming you have made the changes you want to make, it's time to look at another tool.

UnrealPakTool

Download Here

If you extract the contents of this program into your Output folder created by FModel, it will make the process of "packaging" your mod very easy. Once you've modded all the files you want to change, navigate to the Output folder of FModel, and you'll notice a folder there called Octopath_Traveler2, which contains the file structure of your modded uasset and uexp files.

How to package a mod

In order for a mod to be recognised by the engine and work properly, it has to be named and structured in a specific way. In the Output folder, you will need to create a folder with the _p or _P suffix. For example:

  MyFirstMod_p

Now you need to drag the folder named Octopath_Traveler2 into the folder you just created. Finally, you will need to drag the folder you just made and named onto Create-Pak.exe which you extracted from the UnrealPakTool bundle. This will open a command prompt dialogue box, which will package all of the modded folders and files into a single .pak file. This is your mod.

How to use a mod

Now you have your pak file, you'll need to put it into the game's paks folder, found in the Steam version here:

  C:\Steam\steamapps\common\Octopath_Traveler2\Octopath_Traveler2\Content\Paks

Now when you load the game, your mod will be in effect! To distribute it on nexusmods, you'll need to compress it into a .rar file, using WinRAR.

UAssetAPP

Download Here An alternative to UAssetGUI when editing .uasset files, is UAssetAPP by JeffVi. The number of files it can view and edit is limited, but it still has uses and specific advantages in certain situations. Be aware that when using this app you will need to "update" each page mnually before navigating away from it, as well as saving the file when you have finished making edits. Below, we will discuss the pros and cons of using UAssetAPP for each of the files it can edit.

AbilityData.uasset

While it looks really useful for editing this file, and it can be useful for purposes of familiarisation with the various fields and what can be entered into them, I would recommend using UAssetGUI as it is both faster and more versatile when making lots of edits. Most noticeably, the GUI for updating ailments can be quite clunky and laborious to use, where in UAssetGUI you can open multiple ailment sections and edit them in a more streamlined fashion.

EnemyDB.uasset

For this file, it can be very useful to use UAssetAPP, as it updates quickly, and many of the most important fields are visually available at once, and can be edited without any extra navigation. However, there is a bug that will cut the end off of equipment item strings (eg. ITM_EQP_SWD_100) in the Have Item ID and Steal Item ID when the page is updated. You can tell if it is going to do this, because the numeric part of the string will be missing when you first open the entry in the GUI. No data loss will occur until you press Update enemy at the top of the GUI. If this does happen, the file can be opened with UAssetGUI to add the data back in, but you'll need to know which item ID was linked to the enemy in the first place. Don't be discouraged from using the app however, as it can still be a great time-saving tool for editing EnemyDB, and has a nice UI, but it's something to bear in mind as you edit entries with this type of equipment in the item drop field. The last consideration is that, as with all compatible .uasset files, UAssetAPP will not show or allow editing of all of the possible fields in the file, so if something that you want to edit is missing, you'll need to use UAssetGUI for that.

JobData.uasset

For basic edits to this file, I would highly recommend using UAssetAPP. The GUI is perfect and presents the fields in a very accessible manner. It also speeds up the process of making multiple edits to JP costs and so on. The only consideration is that if you want to add a non-standard number of fields to things like skills, support skills, or JP costs, then you will need to switch to UAssetGUI, the same for adding new custom jobs, but for modding the existing fields, it is superior to UAssetGUI and has no known bugs.

GameText_EN

Here is where UAssetAPP really shines. It provides a multi-line text box and easy mouse-scroll functionality to the entry menu, making it several times faster than UAssetGUI. The reason it is faster is because UAssetGUI makes numerous checks to the file to preserve the integrity of the NameMap each time you make an edit, so when the file has 20,000 entries this takes up time. UAssetAPP doesn't have the functionality to change all of the fields in GameText_EN, but the most important field (the text string displayed in game) is editable. In summary, if you want to create new entries, or modify the names of entries, use UAssetGUI, and if you want to edit numerous existing entries quickly and efficiently, use UAssetAPP.

⚠️ **GitHub.com Fallback** ⚠️