BotSpawn can't be loaded the same time as AlphaLoot
JasonFCP
I have an odd issue, randomly my server has decided that I can't have botspawn and AlphaLoot loaded at the sametime or it will just keep crashing and restarting itself. Not sure if its an issue with BotSpawn or Alpha Loot. But they don't want to play well with each other. I know Alpha Loot is a premium plugin you have no control over but just letting you know in case the problem is on BotSpawns end, I also have told the creator of the AlphaLoot Plugin. I used the default values of the Latest Versions of Kits, BotsSpawn and AlphaLoot, nothing is customized. I can have One or the other, but not both, its really weird, and I don't know why its happening. Having just those 3 plugins loaded (BotSpawn, AlphaLoot, Kits) causes the server to crash and restart its self. They were working fine together on the last patch and at the beginning of the month, but last night decided they they don't like eachother. And this is the only way I can get the server working is to disable one of the 2 mentiond plugins (BotSpawn or AlphaLoot). Any help would be appreciated.  I've update my post with a log file, I can't seem to get it to be a small code box or anything very sorry I tried. So here is a big dump.

16:54 [Info] Listing 5 plugins:
01 "BotSpawn" (1.8.7) by Steenamaroo (5.12s) - BotSpawn.cs
02 "Death Notes" (6.2.0) by LaserHydra (0.01s) - DeathNotes.cs
03 "Godmode" (4.1.1) by Wulf/lukespragg (0.01s) - Godmode.cs
04 "Kits" (3.2.93) by Reneb (0.07s) - Kits.cs
05 AlphaLoot - Unloaded
16:54 [Info] AlphaLoot was compiled successfully in 2754ms
16:54 [Info] Loaded plugin AlphaLoot v2.4.17 by FuJiKuRa
16:54 [Info] [AlphaLoot] Lootdata loaded for 27 LootContainer.
16:54 [Info] [AlphaLoot] Removed 7 stacked LootContainer.
16:54 [Info] [AlphaLoot] SkinCache filled with '1509' skins
16:54 [Info] [AlphaLoot] Populated '2761' LootContainer with custom Loot.
16:54 [Info] [AlphaLoot]
AlphaLoot extended status | extendedStatus (True)
'enableBradleyLoadOut' (False) | using LootTables.json for 'bradley_crate'
'enableHeliLoadOut' (False) | using LootTables.json for 'heli_crate'
'enableFancyDropLoot' (False) | using LootTables.json for 'supply_drop'
For easy edit of these data-files, this is highly recommended > http://jsoneditoronline.org/ <
Use 'NamesList.json' (read-only) for item lookup | or use 'al.searchitems'
Find All main-config variables & commands | Srv: 'find alphaloot' | Cl: 'sv find alphaloot'
16:54 [Info] Listing 5 plugins:
01 "BotSpawn" (1.8.7) by Steenamaroo (5.20s) - BotSpawn.cs
02 "Death Notes" (6.2.0) by LaserHydra (0.01s) - DeathNotes.cs
03 "Godmode" (4.1.1) by Wulf/lukespragg (0.01s) - Godmode.cs
04 "Kits" (3.2.93) by Reneb (0.07s) - Kits.cs
05 "AlphaLoot" (2.4.17) by FuJiKuRa (0.01s) - AlphaLoot.cs
16:55 [Info] Loading Oxide Core v2.0.3867...
16:55 [Info] Loading extensions...
16:55 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
16:55 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
16:55 [Info] Loaded extension CSharp v2.0.4000 by Oxide and Contributors
16:55 [Info] Loaded extension MySql v2.0.3755 by Oxide and Contributors
16:55 [Info] Loaded extension Rust v2.0.4178 by Oxide and Contributors
16:55 [Info] Loaded extension SQLite v2.0.3754 by Oxide and Contributors
16:55 [Info] Loaded extension Unity v2.0.3756 by Oxide and Contributors
16:55 [Info] Using Covalence provider for game 'Rust'
16:55 [Info] Loading plugins...
16:55 [Info] Loaded plugin Rust v2.0.4178 by Oxide and Contributors
16:55 [Info] Loaded plugin Unity v2.0.3756 by Oxide and Contributors
16:55 [Info] AlphaLoot, BotSpawn, DeathNotes, Godmode and Kits were compiled successfully in 2070ms
16:55 [Info] Loaded plugin AlphaLoot v2.4.17 by FuJiKuRa
16:55 [Info] Loaded plugin BotSpawn v1.8.7 by Steenamaroo
16:55 [Info] Loaded plugin Death Notes v6.2.0 by LaserHydra
16:55 [Info] Loaded plugin Godmode v4.1.1 by Wulf/lukespragg
16:55 [Info] Loaded plugin Kits v3.2.93 by Reneb
16:56 [Info] Loading Oxide Core v2.0.3867...
16:56 [Info] Loading extensions...
16:56 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
16:56 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
16:56 [Info] Loaded extension CSharp v2.0.4000 by Oxide and Contributors
16:56 [Info] Loaded extension MySql v2.0.3755 by Oxide and Contributors
16:56 [Info] Loaded extension Rust v2.0.4178 by Oxide and Contributors
16:56 [Info] Loaded extension SQLite v2.0.3754 by Oxide and Contributors
16:56 [Info] Loaded extension Unity v2.0.3756 by Oxide and Contributors
16:56 [Info] Using Covalence provider for game 'Rust'
16:56 [Info] Loading plugins...
16:56 [Info] Loaded plugin Rust v2.0.4178 by Oxide and Contributors
16:56 [Info] Loaded plugin Unity v2.0.3756 by Oxide and Contributors
16:56 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
16:56 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
16:56 [Warning] Ignored unnecessary '// Reference: Rust.Workshop' in plugin 'InstantCraft'
16:56 [Info] Added '// Reference: System.Drawing' in plugin 'SignArtist'
16:56 [Info] AbsolutGifts, AntiOfflineRaid, BGrade, Backpacks, BotSpawn, ClanTags, Clans, DeathNotes, EnhancedHammer, FauxClip, Friends, Godmode, HitIcon, HomeRecycler, ImageLibrary, InfoPanel, InstantCraft, Jail, Kits, NTeleportation, NoDecay, NoDeployablePenalty, NoFuelRequirements, PermissionsManager, QuickSmelt, RemoveDefaultRadiation, RemoverTool, SignArtist, SkipNightUI, Spawns, UberTool, ZLevelsRemastered and ZoneManager were compiled successfully in 2402ms
16:56 [Info] Loaded plugin AbsolutGifts v1.5.1 by Absolut
16:56 [Info] Loaded plugin AntiOfflineRaid v0.3.5 by Calytic
16:56 [Info] Loaded plugin BGrade v1.0.49 by Ryan
16:56 [Info] Loaded plugin Backpacks v2.1.8 by LaserHydra
16:56 [Info] Loaded plugin BotSpawn v1.8.7 by Steenamaroo
16:56 [Info] Loaded plugin Clan Tags v0.8.0 by GreenArrow
16:56 [Info] Loaded plugin Clans v0.1.51 by k1lly0u
16:56 [Info] Loaded plugin Death Notes v6.2.0 by LaserHydra
16:56 [Info] Loaded plugin Enhanced Hammer v1.3.4 by Fuji/Visa
16:56 [Info] Loaded plugin FauxClip v1.3.8 by Colon Blow
16:56 [Info] Loaded plugin Friends v2.2.5 by Nogrod
16:56 [Info] Loaded plugin Godmode v4.1.1 by Wulf/lukespragg
16:56 [Info] Loaded plugin HitIcon v1.5.9 by serezhadelaet
16:56 [Info] Loaded plugin HomeRecycler v1.4.2 by wazzzup
16:56 [Info] Loaded plugin Image Library v2.0.45 by Absolut & K1lly0u
16:56 [Info] Loaded plugin InfoPanel v0.9.9 by Ghosst / Nogrod
16:56 [Info] Loaded plugin InstantCraft v1.2.3 by Vlad-00003
16:56 [Info] Loaded plugin Jail v4.0.0 by Reneb / k1lly0u
16:56 [Info] Loaded plugin Kits v3.2.93 by Reneb
16:56 [Info] Loaded plugin NTeleportation v1.0.30 by RFC1920
16:56 [Info] Loaded plugin NoDecay v1.0.32 by Diesel_42o
16:56 [Info] Loaded plugin No Deployable Penalty v1.0.0 by Orange
16:56 [Info] Loaded plugin NoFuelRequirements v1.3.6 by k1lly0u
16:56 [Info] Loaded plugin PermissionsManager v0.0.9 by Steenamaroo
16:56 [Info] Loaded plugin QuickSmelt v4.0.5 by Wulf/Jake-Rich
16:56 [Info] Loaded plugin RemoveDefaultRadiation v0.1.0 by k1lly0u
16:56 [Info] Loaded plugin RemoverTool v4.2.10 by Reneb/Fuji
16:56 [Info] Loaded plugin Sign Artist v1.1.2 by Mughisi
16:56 [Info] Loaded plugin SkipNightUI v0.1.2 by k1lly0u
16:56 [Info] Loaded plugin Spawns v2.0.35 by Reneb / k1lly0u
16:56 [Info] Loaded plugin UberTool v1.3.16 by FuJiCuRa
16:56 [Info] Loaded plugin ZLevelsRemastered v2.9.5 by FuJiCuRa
16:56 [Info] [ZoneManager] Loaded 5 Zone definitions
16:56 [Info] Loaded plugin ZoneManager v2.5.10 by Reneb / Nogrod
16:56 [Info] [InstantCraft] Pulled 1675 skins.
16:59 [Warning] Calling 'OnEntityKill' on 'BotSpawn v1.8.7' took average 1964ms
16:59 [Info] IP address from command-line: 144.217.10.216
16:59 [Error] Failed to call hook 'LoadImageList' on plugin 'ImageLibrary v2.0.45' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ImageLibrary.HasImage (System.String imageName, System.UInt64 imageId) [0x00000] in <af26f15f9947494387657bc13d3d3146>:0

at Oxide.Plugins.ImageLibrary.LoadImageList (System.String title, System.Collections.Generic.List`1[T] imageList, System.Action callback) [0x00029] in <af26f15f9947494387657bc13d3d3146>:0

at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <af26f15f9947494387657bc13d3d3146>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

16:59 [Warning] Calling 'OnServerInitialized' on 'BotSpawn v1.8.7' took 2514ms [GARBAGE COLLECT]
16:59 [Warning] [HitIcon] Plugin Friends work with HitIcon
16:59 [Warning] [HitIcon] Plugin Clans work with HitIcon
16:59 [Warning] Calling 'OnServerInitialized' on 'HomeRecycler v1.4.2' took 238ms
16:59 [Warning] Calling 'OnServerInitialized' on 'ImageLibrary v2.0.45' took 662ms
16:59 [Warning] Calling 'OnServerInitialized' on 'InfoPanel v0.9.9' took 1005ms
16:59 [Warning] Calling 'OnServerInitialized' on 'NoDeployablePenalty v1.0.0' took 249ms
16:59 [Warning] [RemoveDefaultRadiation] All radiation elements destroyed, reloading plugins that use radiation
16:59 [Warning] Calling 'OnServerInitialized' on 'RemoveDefaultRadiation v0.1.0' took 253ms
16:59 [Info] [RemoverTool] RemoverTool: Rust:IO is not present. You need to install Rust:IO first in order to use the RustIO option!
16:59 [Warning] Calling 'OnServerInitialized' on 'RemoverTool v4.2.10' took 110ms
16:59 [Warning] [SkipNightUI] Waiting for ImageLibrary to finish image processing!
16:59 [Info] [ZLevelsRemastered] Stats can be reset by > zl.reset <
16:59 [Warning] Calling 'OnServerInitialized' on 'ZLevelsRemastered v2.9.5' took 276ms
16:59 [Info] Unloaded plugin HitIcon v1.5.9 by serezhadelaet
16:59 [Info] [Image Library] Starting order AbsolutGifts
16:59 [Info] [Image Library] Starting order HomeRecycler
16:59 [Info] ZoneManager was compiled successfully in 1959ms
16:59 [Info] Unloaded plugin ZoneManager v2.5.10 by Reneb / Nogrod
16:59 [Info] [ZoneManager] Loaded 5 Zone definitions
16:59 [Info] Loaded plugin ZoneManager v2.5.10 by Reneb / Nogrod
16:59 [Warning] Calling 'OnNpcPlayerTarget' on 'BotSpawn v1.8.7' took average 2534ms
Steenamaroo

The only error in those logs is coming from ImageLibrary.
How do you get on with it unloaded?

Merged post

There were logs...
JasonFCP
Original Poster
In response to Steenamaroo ():
The only error in those logs is coming from ImageLibrary.
How do you get on with it unloaded?
Very sorry about deleting the logs and updating my post, I was tryign to make it look nice.
Steenamaroo

Ah, looks much nicer. ;)
Yeah, that's the only error I see there : NullReferenceException from ImageLibrary.
I'd load everything but that and see what happens.
JasonFCP
Original Poster

Basically I was hotloading the plugins while the server was running, I started with Just Botspawn and Kits, everythign seemed to work fine, then I decided to add Godmode, then a few bot configs, then Alphaloot and a few minor plugins like stacksize controller (I eventually just hotloaded all the plugins except for alphaloot). They won't auto load when I put them in the plugins folder so I would load them in RCON with the command "oxide.load <plugin name>". Yesterday I was runnign everything but BotSpawn, today I tried just BotSpawn then was goign to load the plugins one by one until something happened, I imideatly found out the combination of AlphaLoot and BotSpawn would cause the server to restart its self, not sure why there isn't anything in the log that could help.

I had the server running without AlphaLoot For a bit, I've just switched it so it now has AlphaLoot Running instead of BotSpawn. I have a friend who found this in yesterdays log file, if it helps at all.

Failed to run a 2.00 timer in 'BotSpawn v1.8.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BotSpawn.GiveKit (NPCPlayerApex botapex, Oxide.Plugins.BotSpawn+DataProfile zone, System.Int32 kitRnd) [0x00047] in <bc8cacfbeabd4b85a31d70ad80636023>:0
at Oxide.Plugins.BotSpawn.SpawnBots (System.String name, Oxide.Plugins.BotSpawn+DataProfile zone, System.String type, System.String group, UnityEngine.Vector3 location) [0x002ba] in <bc8cacfbeabd4b85a31d70ad80636023>:0
at Oxide.Plugins.BotSpawn+<GenerateSpawnPoints>cAnonStorey0+<GenerateSpawnPoints>cAnonStorey1.<>m__0 () [0x00052] in <bc8cacfbeabd4b85a31d70ad80636023>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0
Steenamaroo

Someone else reported that last week.
I need to add a few null checks there. In his case it was coming from a Compound options plugin which, I think, was destroying npcs as they were spawned.
Unrelated to your issue, though.

If the server crashes, or restarts, with only BotSpawn and AlphaLoot installed, please attach logs for that.

Merged post

Also, do you know why plugs wont hotload?
Is that a symptom of some other problem?
Wulf
uMod Admin
Usually if plugins are not automatically loading when changed/placed in oxide/plugins, that means that the PluginWatchers setting in oxide.config.json is set to false.
JasonFCP
Original Poster
Well your not going to believe this, I set it up with ONLY Deafult AlphaLoot installed (no other plugins) and the server is crashing, so I don't think its an issue on your end anymore. But thanks for helping me look into this. Honestly this just raises more questions, but at lest I know its not BotSpawn now. IDK why its now misbehaving by its self when it was working "fine-ish" yesterday
Steenamaroo

Good to know. :P

You need to get the logfile immediately after the server crashes to figure out what's going on.
Best of luck!
JasonFCP
Original Poster
I'm going to post this here incase anyone stumbles across the same issue as me and is curious, but this is from the log file with just alpha loot installed. It doesn't show much and it doesn't get very far. Not really sure if I'm looking at the wrong log file or what.

21:08 [Info] Loading Oxide Core v2.0.3867...
21:08 [Info] Loading extensions...
21:08 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:08 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:08 [Info] Loaded extension CSharp v2.0.4000 by Oxide and Contributors
21:08 [Info] Loaded extension MySql v2.0.3755 by Oxide and Contributors
21:08 [Info] Loaded extension Rust v2.0.4178 by Oxide and Contributors
21:08 [Info] Loaded extension SQLite v2.0.3754 by Oxide and Contributors
21:08 [Info] Loaded extension Unity v2.0.3756 by Oxide and Contributors
21:08 [Info] Using Covalence provider for game 'Rust'
21:08 [Info] Loading plugins...
21:08 [Info] Loaded plugin Rust v2.0.4178 by Oxide and Contributors
21:08 [Info] Loaded plugin Unity v2.0.3756 by Oxide and Contributors
21:08 [Info] AlphaLoot was compiled successfully in 1884ms
21:08 [Info] Loaded plugin AlphaLoot v2.4.17 by FuJiKuRa
21:11 [Info] IP address from command-line: 144.217.10.216
21:11 [Info] [AlphaLoot] Exported 471 items to 'NamesList' for protocol '2155'
21:11 [Info] [AlphaLoot] Lootdata generated for 25 LootContainer.
21:11 [Warning] [AlphaLoot] Plugin running in passive mode. Activate by command 'al.enable'
21:12 [Info] Loading Oxide Core v2.0.3867...
21:12 [Info] Loading extensions...
21:12 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:12 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:12 [Info] Loaded extension CSharp v2.0.4000 by Oxide and Contributors
21:12 [Info] Loaded extension MySql v2.0.3755 by Oxide and Contributors
21:12 [Info] Loaded extension Rust v2.0.4178 by Oxide and Contributors
21:12 [Info] Loaded extension SQLite v2.0.3754 by Oxide and Contributors
21:12 [Info] Loaded extension Unity v2.0.3756 by Oxide and Contributors
21:12 [Info] Using Covalence provider for game 'Rust'
21:12 [Info] Loading plugins...
21:12 [Info] Loaded plugin Rust v2.0.4178 by Oxide and Contributors
21:12 [Info] Loaded plugin Unity v2.0.3756 by Oxide and Contributors
21:12 [Info] AlphaLoot was compiled successfully in 1955ms
21:12 [Info] Loaded plugin AlphaLoot v2.4.17 by FuJiKuRa
21:15 [Info] IP address from command-line: 144.217.10.216
21:15 [Info] [AlphaLoot] Lootdata loaded for 25 LootContainer.
21:15 [Warning] [AlphaLoot] Plugin running in passive mode. Activate by command 'al.enable'
21:16 [Info] Loading Oxide Core v2.0.3867...
21:16 [Info] Loading extensions...
21:16 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:16 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:16 [Info] Loaded extension CSharp v2.0.4000 by Oxide and Contributors
21:16 [Info] Loaded extension MySql v2.0.3755 by Oxide and Contributors
21:16 [Info] Loaded extension Rust v2.0.4178 by Oxide and Contributors
21:16 [Info] Loaded extension SQLite v2.0.3754 by Oxide and Contributors
21:16 [Info] Loaded extension Unity v2.0.3756 by Oxide and Contributors
21:16 [Info] Using Covalence provider for game 'Rust'
21:16 [Info] Loading plugins...
21:16 [Info] Loaded plugin Rust v2.0.4178 by Oxide and Contributors
21:16 [Info] Loaded plugin Unity v2.0.3756 by Oxide and Contributors
21:16 [Info] AlphaLoot was compiled successfully in 1889ms
21:16 [Info] Loaded plugin AlphaLoot v2.4.17 by FuJiKuRa
21:19 [Info] IP address from command-line: 144.217.10.216
21:19 [Info] [AlphaLoot] Lootdata loaded for 25 LootContainer.
21:19 [Warning] [AlphaLoot] Plugin running in passive mode. Activate by command 'al.enable'
Steenamaroo

Is that oxide's log?
If you add -logfile Name to your server startup script, you should get a full server log.
If there's a crash happening, hopefully that'll give you some info on it.