Skip to content

Pref File โ€‹

Sometimes the default rendering settings for your sprites may not be ideal. Customize them by creating a .pref file.

It can be used to fine-tune sprites, shadows, small NPC avatar icons on the resident board, icons in the adventure ranking, and more.

To create a .pref file, simply create a .txt file and change the filename to id.pref (changing the extension from .txt to .pref, where id represents your character or item sprite ID). Open it with Notepad or any text editor.

TIP

.pref files are hot-loaded. This means you can preview the effect in real time after modifying values, without restarting the game.

Therefore, you can create a .pref file first, and continuously test values by checking the display effect in the game.

File Content โ€‹

The complete file is as follows, but you may omit any unused fields.

It uses INI format, and values must be integers. ; comments can also be used.

ini
x = 0
y = 0
z = 0
pivotX = 0
pivotY = 0
shadow = 0
shadowX = 0
shadowY = 0
shadowRX = 0
shadowRY = 0
shadowBX = 0
shadowBY = 0
shadowBRX = 0
shadowBRY = 0
height = 0
heightFix = 0
scaleIcon = -40
liquidMod = 0
liquidModMax = 0
hatY = 0
equipX = 0
equipY = 0
stackX = 0

For the explanation of each line, please refer to the detailed explanation section below.

Detailed Explanation โ€‹

  • x, y, z position offset
  • pivotX,pivotY pivot offset, used on small sprites such as resident board avatar
  • shadow ShadowData id (see section below)
  • shadowX, shadowY shadow position offset
  • shadowRX, shadowRY shadow reverse
  • shadowBX, shadowBY shadow back
  • shadowBRX, shadowBRY shadow back reverse
  • height tile height modifier
  • heightFix text component height offset (floating little widgets)
  • scaleIcon icon size scaling
  • liquidMod tile liquid level modifier; can be negative
  • liquidModMax tile liquid level max
  • hatY hat renderer y position offset
  • equipX, equipY held position offset
  • stackX tile stacking x position offset

Shadow Data ID โ€‹

idname
0default
1no shadow
17pillar
18altar
19cabinet
20bed
21counter
22gacha
23tree
24screen
25safe
26vendor
27straw
28grave
29thin
30tree0
31tree1
32tree2
33tree3
34tree4
35tree5
36tree6
37pillar
38big table
39big table2
40counter2
41door
42thin2
43square
44boss1
45boss2
47corner
48ceil
49big
50bridge
51long
52long2

Example Mods โ€‹

Modify Shadow โ€‹

This mod uses shadow in the .pref file to modify the shadow.

Small Icons โ€‹

This mod modifies the display of the character's icon on the resident board and the adventure ranking. It uses pivotX and pivotY in the .pref file.

Before modifying the character icon:

Left is the resident board, right is the adventure ranking

After modifying the character icon using the .pref file:

Left is the resident board, right is the adventure ranking

The pref values used for this character in this mod:

ini
pivotX=0
pivotY=-37

Note:

  • The .pref filename, the sprite filename, and the id column in the modโ€™s Excel must all match exactly.
  • pivotX and pivotY affect both the resident board and the adventure ranking simultaneously; therefore, you should take both into account when testing values.
  • Due to the hot-loaded nature of .pref files, you do not need to restart the game; you can preview the effect in real time, allowing for fine-tuning.

This project is an unofficial documentation site and is not affiliated with, endorsed by, or associated with Elin or Lafrontier / Noa. All trademarks are the property of their respective owners.