Skip to content

Adding Custom Characters

ProgSys edited this page Oct 10, 2025 · 87 revisions

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.

Known-Problems

  • Pretty-Prinny will crash the game

Requirements

  • Run Mod Manager or Map Editor setup at least once

Adding a new character

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
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
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
characters List of custom Character definitions
├── 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 for 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
├── skillIds IDs to special skills that the character can use. Found in MAGIC.DAT.
├── skillLevels Level requirements when the skills are learned.
└── ... The other values mirror the data table CHAR_E.DAT.

Warning

All file names are case sensitive! The name in the json and in zip must be fully identical!

Override original sprite

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).

Recruitment

Custom characters can be recruited like normal character in a new sub menu inside the Dark Assembly, if isRecruitable is true. 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.

Savefiles

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.

Custom Scripts

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.

Example Json

Example new 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",
			"fileHD" : "GAIAFace.tx2"
		}
	],
	
	"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,
			"skillIds": [1011, 1012],
			"skillLevels": [10, 12]
		},
		{
			"identifier" : "gaia2",
			"deriveFrom": "gaia",
			"spriteIdentifier": "gaiaSprite",
			"faceIdentifier": "gaiaFace",
			"recruitGroupName": "gaia",
			
			"name": "Gaia 2",
			"paletteIndex": 1
		}
	
	]
}

Example HD mod

{
        "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" }
	  ]
}

Clone this wiki locally