Skip to content

Make an NPC pack

Write a pack folder with one manifest.json. Personnel loads it and spawns your NPC in the world.

You need: Personnel and S1API installed. See Install for MelonLoader, S1API and the mod DLL.

  1. Create the folder Schedule I/UserData/Personnel/Packs/MyPack/.
  2. Create manifest.json in that folder:
    {
    "name": "My Pack",
    "author": "you",
    "autoRegister": true,
    "npcs": [
    {
    "id": "mypack_pale",
    "name": "Pale",
    "appearance": { "skinColor": "#8899AA", "hairPath": "Avatar/Hair/Spiky/Spiky" },
    "spawn": { "x": -64.25, "y": 1.07, "z": 84.49, "rotationY": 325, "region": "Northtown", "physical": true }
    }
    ]
    }
  3. Set the spawn point. Stand where the NPC must appear. Enable the console in Settings, press the backtick key, and run personnel spawn. Paste the result into spawn.
  4. Optional: add a schedule. Walk to each stop and run personnel route 07:00. Then run personnel route show and paste the steps into "schedule": [ ... ].
  5. Restart the game. Pack changes need a restart.

To start from a working pack, set LoadExamplePack to true under [Personnel_01_Main] in UserData/MelonPreferences.cfg. Restart. Personnel writes UserData/Personnel/Packs/Examples/. An unedited older example pack is updated. An edited one is never touched.

To design the look in a live editor, use Personify. Export the pack and copy the Personnel/Packs/<name> folder into UserData/Personnel/Packs/.

MelonLoader/Latest.log lists each pack with its ids:

[Personnel] Pack 'MyPack' (My Pack): 1 NPC(s) [mypack_pale].

In game, the NPC stands at the spawn point.

If you do not set autoRegister, Personnel only loads the definitions. A mod must then spawn them through the API.