Repository navigation
Adding Custom Characters
You can define a new custom character or override the data of existing characters. This also makes it easy to create HD mods, see example blow.
Warning
It is strongly recommended to create a backup of your save files! As they are modified by my tool to contain extra metadata.
- Pretty-Prinny will crash the game
- 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
To create a new character you need to create a .zip file inside mod\CustomCharacters with the following file structure.
| Name | Description |
|---|---|
| character.json | Declares and defines custom characters |
| sprites | Folder with custom sprites (*.SH) |
| img | Folder with custom images, like portraits (*.TX2) |
The json file is where you declare all the resources and define new characters. 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 |
| namesspace | Must be unique!!! By default the name of your zip. No special characters or spaces. | |
| sprites | List of custom Sprites definitions | |
| ├── identifier | Yes | An unique identifier. Can be used to override original sprites. |
| └── file | Yes | Filename to sprite, located inside "sprites" folder |
| faces | List of custom portrait definitions | |
| ├── identifier | Yes | An unique identifier. Can be used to override original sprites. |
| ├── fileHD | Yes* | Filename to tx2, located inside "img" folder |
| └── fileSD | Yes* | Filename to tx2, located inside "img" folder |
| magic | List of custom magic definitions, values mirror 'MAGIC.DAT' | |
| ├── identifier | Yes | An unique identifier. |
| ├── name | Yes | Name for the skill/magic. Number of characters is limited |
| ├── description | Advised | Description for the skill/magic. Has special parsing to add icons! Number of characters is limited |
| ├── level | Min. weapon skill level. (Only if learned via weapon) | |
| ├── pow | Power-damage is based on this | |
| ├── sp | Base cost | |
| ├── wt | Weapon Type | |
| ├── e | Element | |
| ├── st | Spell Type | |
| ├── wt2 | Mirrors other WT, for some reason... | |
| ├── rg | Range | |
| ├── pat | Attack pattern (grid pattern) | |
| ├── up | Height | |
| ├── dn | Height | |
| ├── effect | Array of 5 numbers. What kind of effects will the skill/magic apply. | |
| └── effectPrams | Array of 5 numbers. Unsure what they do. | |
| characters | List of custom Character definitions. Most fields mirror CHAR_E.DAT. |
|
| ├── identifier | Yes | An unique identifier. |
| ├── spriteIdentifier | Yes | Reference to a defined sprite identifier. |
| ├── faceIdentifier | Yes | Reference to a defined face (portrait) identifier. |
| ├── deriveFrom | Can be defined to inherit settings from a previously defined character. Useful if you just want to change a few stats or color table. |
|
| ├── isRecruitable | Default true. Defines if character can be recruited in the dark assembly. | |
| ├── recruitGroupName | Used to group characters into a row in the dark assembly (variance). Characters with the same Group Name will share same row. |
|
| ├── name | Yes | The name of the character. Number of characters is limited |
| ├── title | Yes | The title/class of the character. Number of characters is limited |
| ├── type | Purpose of character. Should be 3 in most cases. | |
| ├── unknownValue0x3d | ||
| ├── unknownValue0x3e | ||
| ├── gender | The gender. | |
| ├── unknownValue0x40 | Special count. Doesn't need to be set. Use skills for that. | |
| ├── paletteIndex | Sprite color offset. | |
| ├── learnSpeed | How quickly specials are learned. | |
| ├── jumpPower | Jump height. | |
| ├── weaponMasteryBaseStats | List of 8 values. With the last one being always zero. | |
| ├── stats | The Aptitudes the character has. | |
| ├── immunity | Immunity (bitfield) | |
| ├── unknownValue0x58 | ||
| ├── unknownValue0x60 | ||
| ├── throwingRange | Throwing range | |
| ├── helpID | ID in CHARHELP.DAT, or 0. |
|
| ├── baseStats | Base stats of character. | |
| ├── experienceScale | Scales much experience the character needs to level up. | |
| ├── movement | Movement | |
| ├── movementType | Movement type (Normal, Fly, Warp) | |
| ├── unknownValue0x77 | ||
| ├── unknownValue0x79 | ||
| ├── unknownValue0x7b | ||
| ├── unknownValue0x7d | ||
| ├── unknownValue0x7f | ||
| ├── unknownValue0x81 | ||
| ├── unknownValue0x83 | ||
| ├── counter | Counter | |
| ├── skills | List of special skills/magic the character can have. | |
| ├── identifier | Yes | The identifier of the skill/magic. Can be custom one or one present in game. |
| └── level | Advised | The level when the skill/magic is learned. |
├── #skillIds
|
(DEPRECATED) IDs to special skills that the character can use. Found in MAGIC.DAT. Max 20. |
|
└── #skillLevels
|
(DEPRECATED) Level requirements when the skills are learned. Max 20. |
Warning
All file names are case sensitive! The name in the JSON and in zip must be fully identical!
The game uses numerical values as its identifier. The issue with those is that they are not particular unique, specifically if custom content is added. As then every content creator would need to coordinate between each other so they don't use the same numerical id. To solve this the modding tools implement a string-based identifier. These identifiers must not contain spaces or special characters.
This string based identifier consists out of two parts a namespace and the name, separated by a ::. By default, the namespace is the name of the mod’s .zip file, but it can be overridden in the mod’s JSON definition. Each mod should have a unique namespace to avoid conflicts.
The only time namespaces can overlap is when one mod is intentionally modifying another mod’s files. In that case, the modifying mod should load after the one it targets.
The default namespace of the game is disa. For example disa::1 is the identifier of Laharl's character and sprite.
In your own JSON definition you don't need to explicitly write the namespace, its implicitly added if not present.
Each mod also has a Mod ID, which is a unique UUID. This ID is used to track the mod in save files and load order.
Make sure to generate a new UUID for your mod and keep it consistent across compatible versions.
A list of new sprites that will be injected into the game. Can be used to override existing sprites.
If you just want to override existing sprites, to create an HD mod for example, then you can simply use the numerical game identifier disa::<id of sprite>. For example disa::2210 will override the Prinny sprite. The numerical id can be found inside ANM files.
The same also works with portraits (faces).
The portrait of the character that is be displayed in GUI. The game has two versions, one for SD and HD GUI setting.
Original portrait images can be found in FACE.DAT for SD and NEW_FACE.DAT for HD, located in SUBDATA.DAT > START.DAT
A list of new magic/skills that will be injected into the game. It can also be used to override existing magic or skills.
The possible values correspond to entries in the MAGIC.DAT table.
You can view the full Magic table on google spreadsheets as reference here: https://docs.google.com/spreadsheets/d/1OM2WmKw84I-K-2Qc_ZfbPTMB3ztPkOJUSRjiRgSFRS4/edit?gid=90961372#gid=90961372.
The description is special in a way, as it can contain icons. To display an icon, use tags enclosed in angle brackets: <tag>.
Possible tags are:
| Tag |
|---|
| fist |
| swort |
| spear |
| bow |
| pistol |
| axe |
| staff |
| special |
| poison |
| sleep |
| paralysis |
| questionmark |
| whirl |
| special2 |
Specifies which weapon type can use the skill or magic.
Possible known values are:
| Value | Description |
|---|---|
| 0 | None (Not tied any weapon) |
| 1 | Fist |
| 2 | Sword |
| 3 | Spear |
| 4 | Bow |
| 5 | Gun |
| 6 | Axe |
Note
The game stores the weapon type twice for some reason. You probably should set both.
Defines the elemental type of the skill or magic.
Possible known values are:
| Value | Element |
|---|---|
| 0 | None |
| 1 | Fire |
| 2 | Wind |
| 3 | Ice |
| 4 | Star |
Specifies which spell type the skill or magic has.
Possible known values are:
| Value | Element |
|---|---|
| 2 | Melee |
| 3 | Magic |
| 4 | Heal |
| 5 | Buff |
| 6 | Debuff |
Determines the attack or effect pattern (grid shape) of the skill or magic. Refer to the dedicated pattern list page for all available options.
Specifies up to five effects that the skill or magic can apply to its target or user. Each effect can be further customized using the Effect param field.
Note
Format:
n = parameter value (for example, stat amount or duration)
If not specified, the parameter usually represents the chance to hit (%)
Possible known values are:
| Value | Effect |
|---|---|
| 1 | Unknown |
| 2 | Unknown |
| 11 | Atk +n% |
| 12 | Def +n% |
| 13 | Res +n% |
| 14 | Int +n% |
| 21 | Poison |
| 22 | Sleep |
| 23 | Paralyze |
| 24 | Amnesia |
| 25 | Deprave |
| 101 | Cure ailments (n=?) |
| 102 | HP Drain |
| 104 | Kill self |
A list of new characters that will be injected into the game. It can also be used to override existing characters (not fully tested).
The possible values correspond to entries in the CHAR_E.DAT table.
You can view the full character table on google spreadsheets as reference here: https://docs.google.com/spreadsheets/d/1OM2WmKw84I-K-2Qc_ZfbPTMB3ztPkOJUSRjiRgSFRS4/edit?gid=1226424495#gid=1226424495
Custom characters can be made recruitable, similar to normal characters, by setting isRecruitable to true.
They will then appear in a new “Modded Characters” tab inside the Dark Assembly menu.
Alternatively it is possible to create custom scripts to give the player a new character, like when a map was finished. However that topic is not very researched.
You can also define a recruitGroupName to group multiple characters together in the same row within the Dark Assembly.
For testing purposes, you can also add characters directly through the modding tools’ terminal.
- Run the game in Windowed Mode.
- Press F2 to open the terminal window.
- Type the following command:
ac:<identifier>,<level>- The identifier of the character you defined including the namespace of your mod.
Example: ac:Test::Gaia,42 (Will add character Gaia with level 42)
Warning
Characters added this way may not have accurate stats compared to characters leveled normally.
Note
You can use the help command to list all available commands. But only use them when you know what you are doing!
Specifies what the character can do or is used for. Should be 3 in most cases.
Possible known values are:
| Value | Description |
|---|---|
| 0 | Static? (cutscene/geo) |
| 3 | Usable in-battle |
| 4 | Prinny |
| 6 | Prism Red (Doll) |
The base weapon mastery stats of the character: fists, sword, spears, bows, guns, axes, staves, zero
The last value is always zero.
Specifies the stats of the character via a JSON object:
{
"hp": 10,
"sp": 10,
"attack": 10,
"defence": 10,
"intelligence": 10,
"speed": 10,
"hit": 10,
"resistence": 10
}To give some insight how the game calculates a unit’s stats, let’s look at what happens when a character is loaded into a map.
The processes has two steps first the base stats are computed, then they are further modified in different ways.
Note
This topic is still partially unresearched.
Each stat (HP, SP, Atk, Def, Int, Spd, Hit, Res) is calculated using the following formula:
unsigned int stat = ((semiRandomeNumber % 7 + 47) * baseStat * (level + 1)) / 100For example, Laharl’s base HP value from CHAR_E.DAT is 18.
When Laharl is level 10, his initial HP (depending on the random number used) will fall within this range:
(([0-6] + 47) * 18 * (10 + 1)) / 100 = [93, 95, 97, 99, 100, 102, 104]Afterward, the HP (not the other stats) value is scaled with the character’s level, up to a maximum of 400%:
unsigned long long scaleHP = level <= 34 ? 3 * (level - 1) : (level + 65);
scaleHP = min(100 + scaleHP, 400); //max 400%
HP_out = (HP0 * scaleHP) / 100;Specifies the gender. In most cases 11, 12 and 13 should be used.
Possible known values are:
| Value | Description |
|---|---|
| 1 | Male |
| 2 | Female |
| 11 | Male (generic) |
| 12 | Female (generic) |
| 13 | Other (generic) |
Specifies how the character traverses the map.
Possible known values are:
| Value | Description |
|---|---|
| 0 | Normal |
| 1 | Flying |
| 2 | Warping/Teleport |
You can define up to 20 special skills the character can use by specifying skills JSON field. It can be one defined in magics or a default one from the game. For example disa::1011 would be Etna's "Prinny Raid" skill.
You also should define the level when the skill is learned.
By default skills will have no animation.
If you want to add custom animations or general scrips that technically possible too, but a bit more tricky. Mostly as the scripting language is not jet fully understood. Its better if you open a Issue ticket for that.
Be prepared to use a hex editor.
Save files with custom characters are modified by adding extra information (metadata) at the end. This metadata is used to convert the game's fixed number-based character IDs into more flexible string-based IDs. Since this data is just added to the end of the file, unmodded versions can load the savefile, however they will crash trying to reference the unknown numerical IDs. The Modded version should fallback to a Prinny when it fails to find a character.

{
"id": "c38a0f9c-f1fa-4e09-b620-41dbb0708f9c",
"name": "My Amazing Character Mod",
"author": "My Name",
"description": "Elum Epsum texto maxo",
"sprites": [
{
"identifier": "gaiaSprite",
"file": "GAIA.SH"
}
],
"faces": [
{
"identifier": "gaiaFace",
"fileSD": "GAIAFace_SD.TX2",
"fileHD": "GAIAFace_HD.TX2"
}
],
"magic": [
{
"identifier": "gaiaSpell01",
"name": "My Spell",
"description": "<staff>My special spell.",
"level": 0,
"pow": 50,
"sp": 40,
"wt": 0,
"e": 0,
"st": 3,
"wt2": 0,
"rg": 0,
"pat": 60,
"up": 12,
"dn": 12,
"effect": [
1,
25,
0,
0,
0
],
"effectPrams": [
2,
5,
0,
0,
0,
0
]
}
],
"characters": [
{
"identifier": "gaia",
"spriteIdentifier": "gaiaSprite",
"faceIdentifier": "gaiaFace",
"recruitGroupName": "gaia",
"name": "Gaia",
"title": "Lovebringer",
"type": 3,
"unknownValue0x3d": 1,
"gender": 2,
"unknownValue0x40": 3,
"paletteIndex": 0,
"learnSpeed": 12,
"jumpPower": 20,
"weaponMasteryBaseStats": [
15,
15,
20,
15,
10,
20,
15,
0
],
"stats": {
"hp": 10,
"sp": 10,
"attack": 10,
"defence": 10,
"intelligence": 10,
"speed": 10,
"hit": 10,
"resistence": 10
},
"immunity": 0,
"unknownValue0x58": 100,
"unknownValue0x60": 20,
"throwingRange": 5,
"helpID": 2,
"baseStats": {
"hp": 16,
"sp": 10,
"attack": 11,
"defence": 7,
"intelligence": 10,
"speed": 12,
"hit": 11,
"resistence": 10
},
"movement": 6,
"movementType": 0,
"experienceScale": 5,
"unknownValue0x77": 1,
"unknownValue0x79": 10,
"unknownValue0x7b": 10,
"unknownValue0x7d": 10,
"unknownValue0x7f": 0,
"unknownValue0x81": 0,
"unknownValue0x83": 10,
"counter": 1,
"skills": [
{
"identifier": "Disa::1012",
"level": 10
},
{
"identifier": "gaiaSpell01",
"level": 20
}
]
},
{
"identifier": "gaia2",
"deriveFrom": "gaia",
"spriteIdentifier": "gaiaSprite",
"faceIdentifier": "gaiaFace",
"recruitGroupName": "gaia",
"name": "Gaia 2",
"paletteIndex": 1
}
]
}{
"id": "665634ea-ccd3-4fea-9714-d4ff68d030ef",
"name": "HD Sprites",
"author": "My Name",
"description": "HD Sprites",
"sprites": [
{ "identifier": "disa::1", "file": "0001_LAHARL.SH" },
{ "identifier": "disa::2", "file": "0002_ETNA.SH" },
{ "identifier": "disa::3", "file": "0003_FLONNE.SH" },
{ "identifier": "disa::1010", "file": "1010_BRAWLER_MALE.SH" },
{ "identifier": "disa::1020", "file": "1020_BRAWLER_FEMALE.SH" },
{ "identifier": "disa::1030", "file": "1030_WARRIOR_MALE.SH" },
{ "identifier": "disa::1040", "file": "1040_WARRIOR_FEMALE.SH" },
{ "identifier": "disa::1050", "file": "1050_MAJIN.SH" },
{ "identifier": "disa::1060", "file": "1060_NINJA.SH" },
{ "identifier": "disa::1070", "file": "1070_RONIN.SH" },
{ "identifier": "disa::1080", "file": "1080_KNIGHT.SH" },
{ "identifier": "disa::1090", "file": "1090_ARCHER.SH" },
{ "identifier": "disa::1100", "file": "1100_SKULL.SH" },
{ "identifier": "disa::1110", "file": "1110_MAGE.SH" },
{ "identifier": "disa::1120", "file": "1120_CLERIC_MALE.SH" },
{ "identifier": "disa::1130", "file": "1130_CLERIC_FEMALE.SH" },
{ "identifier": "disa::1140", "file": "1140_SCOUT.SH" },
{ "identifier": "disa::1150", "file": "1150_RECRUIT.SH" },
{ "identifier": "disa::1160", "file": "1160_ANGEL.SH" },
{ "identifier": "disa::1170", "file": "1170_ROGUE.SH" },
{ "identifier": "disa::2000", "file": "2000_HOBBIT.SH" },
{ "identifier": "disa::2010", "file": "2010_GHOST.SH" },
{ "identifier": "disa::2020", "file": "2020_GOLEM.SH" },
{ "identifier": "disa::2030", "file": "2030_MANEATER.SH" },
{ "identifier": "disa::2040", "file": "2040_IMP.SH" },
{ "identifier": "disa::2050", "file": "2050_KILLERARMOR.SH" },
{ "identifier": "disa::2060", "file": "2060_PUMPKIN.SH" },
{ "identifier": "disa::2070", "file": "2070_GARGOYLE.SH" },
{ "identifier": "disa::2080", "file": "2080_NIGHTMARE.SH" },
{ "identifier": "disa::2090", "file": "2090_SERPENT.SH" },
{ "identifier": "disa::2100", "file": "2100_CYCLOPS.SH" },
{ "identifier": "disa::2110", "file": "2110_DRAGON.SH" },
{ "identifier": "disa::2120", "file": "2120_ZOMBIE.SH" },
{ "identifier": "disa::2130", "file": "2130_BRUTE.SH" },
{ "identifier": "disa::2150", "file": "2150_MANTICORE.SH" },
{ "identifier": "disa::2160", "file": "2160_EMPUSA.SH" },
{ "identifier": "disa::2170", "file": "2170_NEKOMATA.SH" },
{ "identifier": "disa::2180", "file": "2180_VAMPIRE.SH" },
{ "identifier": "disa::2190", "file": "2190_EFREET.SH" },
{ "identifier": "disa::2210", "file": "2210_PRINNY.SH" },
{ "identifier": "disa::3600", "file": "3600_FILE.SH" }
]
}