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.
- Create the folder
Schedule I/UserData/Personnel/Packs/MyPack/. - Create
manifest.jsonin 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 }}]} - 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 intospawn. - Optional: add a
schedule. Walk to each stop and runpersonnel route 07:00. Then runpersonnel route showand paste the steps into"schedule": [ ... ]. - 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/.
Check it works
Section titled “Check it works”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.