Botspawn remove command not working
JagsterWintermute
Is it just me or what?
I have a list of 2 customized bots with kits and all and they work like a charm. Really nice!

But when I tried to remove via chat command, the remove command doesn't work. The bots are still there.

I double checked the syntax and it's ok.

the command is

/botspawn remove [nameofthebot]​

but it doesn't remove the bot so I had to do it manually...

Is there something I am doing wrong here???

cosmodog
did you reload botspawn?
Philoludos
Or you can go into oxide/data/BotSpawn.json, find the custom profile, and change autospawn: true to autospawn: false

Either way, you'll still have to oxide.reload BotSpawn in console. 
JagsterWintermute
Original Poster
Yes, I have reloaded the plugin but got no effect.
And yes, now I doubt it so I will double check it now.... So thanks for pointing it out!

I tend to erase the chunk of code from the json file when I don't use the bots anymore. I know it's a matter of few bits but it's a way to save those few bits for something else. If I just turn the autospawn flag from true to false, I leave unused data to clog the server. If you know what I mean. I use the json validator to control if the final result is ok.

Guys, I come from an era when even a single bit was important! :-D
cosmodog
yea, fortunately we dont have to feed punch cards into the reader anymore.
JagsterWintermute
Original Poster
As a matter of fact, I have not resolved the issue...
Apart manually removing the chunk of code or flagging the bot as non spawnable, the /botspawn remove command it seems not to work and I wonder if it's only me or what. Do the command works properly for you all?
Philoludos
Are you deleting code from the json that would break the profile? 
JagsterWintermute
Original Poster
I show you here what I deleted. This is the BotSpawn.json that is located in the oxide/data/ folder:

BEFORE (the original BotSpawn.json):
{ "DataProfiles": { "AirfieldBoss": { "AutoSpawn": true, "Murderer": false, "Bots": 3, "BotHealth": 850, "Radius": 30, "Kit": [ "AirfieldBoss" ], "BotNamePrefix": "The Airfield Boss", "BotNames": [ "" ], "Bot_Accuracy": 9, "Bot_Damage": 1.0, "Disable_Radio": true, "Roam_Range": 100, "Peace_Keeper": false, "Peace_Keeper_Cool_Down": 1, "Weapon_Drop_Chance": 15, "Keep_Default_Loadout": false, "Wipe_Belt": false, "Wipe_Clothing": false, "Allow_Rust_Loot": true, "Suicide_Timer": 300, "Chute": false, "Respawn_Timer": 7200, "LocationX": 228.4, "LocationY": 17.5, "LocationZ": -352.0, "Parent_Monument": "", "Sci_Aggro_Range": 30, "Sci_DeAggro_Range": 40 }, "jacobspunishment": { "AutoSpawn": false, "Murderer": false, "Bots": 7, "BotHealth": 100, "Radius": 10, "Kit": [ "train" ], "BotNamePrefix": "Jacob's Punisher", "BotNames": [ "" ], "Bot_Accuracy": 9, "Bot_Damage": 9.4, "Disable_Radio": true, "Roam_Range": 40, "Peace_Keeper": true, "Peace_Keeper_Cool_Down": 5, "Weapon_Drop_Chance": 1, "Keep_Default_Loadout": false, "Wipe_Belt": true, "Wipe_Clothing": true, "Allow_Rust_Loot": true, "Suicide_Timer": 300, "Chute": false, "Respawn_Timer": 60, "LocationX": -721.2555, "LocationY": 0.211782634, "LocationZ": 787.591858, "Parent_Monument": "", "Sci_Aggro_Range": 30, "Sci_DeAggro_Range": 40 } }, "MigrationDataDoNotEdit": { "zombie": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 }, "guardian": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 }, "AirfieldBoss": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 }, "jacobspunishment": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 } }}​


AFTER (I removed the useless BOTs):

{ "DataProfiles": { "jacobspunishment": { "AutoSpawn": false, "Murderer": false, "Bots": 7, "BotHealth": 100, "Radius": 10, "Kit": [ "train" ], "BotNamePrefix": "Jacob's Punisher", "BotNames": [ "" ], "Bot_Accuracy": 9, "Bot_Damage": 9.4, "Disable_Radio": true, "Roam_Range": 40, "Peace_Keeper": true, "Peace_Keeper_Cool_Down": 5, "Weapon_Drop_Chance": 1, "Keep_Default_Loadout": false, "Wipe_Belt": true, "Wipe_Clothing": true, "Allow_Rust_Loot": true, "Suicide_Timer": 300, "Chute": false, "Respawn_Timer": 60, "LocationX": -721.2555, "LocationY": 0.211782634, "LocationZ": 787.591858, "Parent_Monument": "", "Sci_Aggro_Range": 30, "Sci_DeAggro_Range": 40 } }, "MigrationDataDoNotEdit": { "zombie": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 }, "guardian": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 }, "AirfieldBoss": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 }, "jacobspunishment": { "OldParentMonumentX": 0.0, "OldParentMonumentY": 0.0, "OldParentMonumentZ": 0.0, "ParentMonumentX": 0.0, "ParentMonumentY": 0.0, "ParentMonumentZ": 0.0, "oldRotation": 0.0, "worldRotation": 0.0 } }}

I think this should be fine. The code is legit.

I forgot to mention that "jacobspunishment" is the bot that I tried to remove with the command and that failed. I removed it manually.