Repository navigation
Adding Custom Translation
Prerelease: https://www.dropbox.com/scl/fi/uipzx2w36hg75eqaj5bfs/Disgaea-Tools-v1.0.9-alpha-prerelese.zip?rlkey=yyy0wuqfz3lmsyex039sx7amv&dl=0
It is possible to create a mod that translates the game strings into a different language, see example blow.
Warning
The game new UI does support a wide range of UTF-8 characters, but not realy a good position for all of them.
- If you are missing Dll's then you might need to also install Microsoft Visual C++ Redistributable 2022 (Many games install it in the background so you may have it already)
- You need both X64 and X86 of the 2015–2022 Version
- Run Mod Manager or Map Editor setup at least once
The translation system works by intercepting the function responsible for rendering text and replacing its text argument with a translated string. This allows every in-game string to be replaced dynamically.
Warning
Currently only the new UI can be replaced as its the only one that support UTF-8.
To create a new character you need to create a .zip file inside mod\CustomCharacters with the following file structure:
| Name | Description |
|---|---|
| mod.json | Declares your mod |
| translation | Folder with your translated .csv files (utf8 encoded) |
Note
Yes its a bit strange but it must be located in 'CustomCharacters' folder. Its the folder for all general mods.
The 'mod.json' file defines all resources and references to your translation CSV files. You can find a full example below.
| Field | Required | Description |
|---|---|---|
| id | Yes | A unique UUID. Please generate a new one!!! |
| name | Yes | Name of the character mod |
| author | Advised | Name of mod creator |
| description | Advised | Mod description |
| previewImage | Advised | Filename to png used as thumbnail, located inside "img" folder |
| translations | A list of CSV filenames located inside the "translation" folder |
You can have more then once CSV file for organizational purposes.
To generate the base translation file (containing all story-related strings), run the 'translationBase' ('tb') command from the F2 terminal. This will output a .csv file to the mod/CustomTranslation folder.
Warning
Ensure the 'mod/CustomTranslation' folder exists before running the command, otherwise, the file cannot be written.
Note that the base file will not include every string. To capture additional text, you can record on-screen strings using the 'translationRecord' ('tr') command. Type 'tr' to start recording, and type 'tr' again to stop and save the results.
Note
The recording will include all visible strings, including non-translatable elements like numbers.
Translation files must be UTF-8 encoded CSVs, using a semicolon (';') as a separator and containing four columns:
- Hash: Used to identifly the string for replacement
- Translated string: The string that will be displayed instead of the original
- Original string: The original string, but not all characters may be present
- Origin description: Short description from where the string originates from
Example:
39a7768ec09c7bf1d2197d8296678dee;Iniciar;Start;Main menu;
5e422c271d6d1e950e5b6b0f4bd57b97;Continuar;Continue;Main menu;
52e0c986db07c4936675a2f80915afe7;Configurações;Settings;Main menu;
aec95bec8bf6db33d94d93e0c1cb2ab8;Sair;Exit;Main menu;
36e4b51ee89dcf11cddc26ee909a231b;Por favor, selecione para onde você gostaria de ir.;Please select where you would like to go.;Talk Script 41 (2002011, 0, 0);
b5879f0d9d530c90a9e136fe52788d77;Uau.;Wow.;Talk Script 1244 (105, 0, 0);
219a7bdff52161cfaa22e07be929b19b;Este é um lugar bem bonito.;This is a pretty nice place.;Talk Script 1244 (105, 0, 0); {
"id": "c3e4a803-26d5-4050-9e6e-8f4f8fc9f2b2",
"name": "Translation Mod",
"author": "My Name",
"description": "Elum Epsum texto maxo",
"translations": ["translation.csv"]
}