I put in some npcs edited them thru the commands and got them all working and saying what i wanted them to say then after server restart they are all gone. they are enabled and don't know what to do to fix them. thier data files all seem to be there and intact, they are just not spawning.
Disapear after restart
Post a copy of ya datafile most likley there is an error. When you o.reload HumanNPC do you see any errors?
no errors and he disappears after reload
{
"HumanNPCs": [
{
"userid": 7350571520,
"displayName": "Pit Boss Rygar",
"invulnerability": true,
"health": 50.0,
"respawn": true,
"respawnSeconds": 60.0,
"spawnInfo": {
"position": "-1134.461 31.20539 1187.628",
"rotation": "-0.4927848 0.2437192 -0.1460268 -0.8224599"
},
"waypoint": null,
"collisionRadius": 10.0,
"spawnkit": null,
"damageAmount": 10.0,
"damageDistance": 3.0,
"damageInterval": 2.0,
"attackDistance": 100.0,
"maxDistance": 200.0,
"hostile": false,
"speed": 3.0,
"stopandtalk": true,
"stopandtalkSeconds": 3.0,
"enable": true,
"lootable": true,
"hitchance": 0.75,
"reloadDuration": 0.0,
"needsAmmo": true,
"defend": true,
"evade": false,
"follow": true,
"evdist": 0.0,
"allowsit": false,
"musician": null,
"playTune": false,
"SoundOnEnter": false,
"SoundOnUse": false,
"band": 0.0,
"permission": "",
"Sound": "",
"message_hello": [
reset/ "Welcome to my casino"
],
"message_bye": [
"reset/ "Thanks for spending your scrap"
],
"message_use": [
"reset/ "Hope you brought a lot of scrap"
],
"message_hurt": null,
"message_kill": null,
"protections": {
"Generic": 0.0,
"Hunger": 0.0,
"Thirst": 0.0,
"Cold": 0.0,
"Drowned": 0.0,
"Heat": 0.0,
"Bleeding": 0.0,
"Poison": 0.0,
"Suicide": 0.0,
"Bullet": 0.0,
"Slash": 0.0,
"Blunt": 0.0,
"Fall": 0.0,
"Radiation": 0.0,
"Bite": 0.0,
"Stab": 0.0,
"Explosion": 0.0,
"RadiationExposure": 0.0,
"ColdExposure": 0.0,
"Decay": 0.0,
"ElectricShock": 0.0,
"Arrow": 0.0,
"AntiVehicle": 0.0,
"Collision": 0.0,
"Fun_Water": 0.0
}
}
]
}
these are wrong you can always use https://jsonlint.com/ to validate your datafile is correct
"message_hello": [
reset/ "Welcome to my casino"
],
"message_bye": [
"reset/ "Thanks for spending your scrap"
],
"message_use": [
"reset/ "Hope you brought a lot of scrap"
],
This is correct way to make a string
Correct
"message_hello": [
"Welcome to my casino"
],
"message_bye": [
"Thanks for spending your scrap"
],
"message_use": [
"Hope you brought a lot of scrap"
],