NullReferenceException at RunEventSolved
Hi, I got this error message when Automated Events automatically spawned a Bradley APC:
[AutomatedEvents] Spawning Bradley
Failed to run a 1800.00 timer in 'AutomatedEvents v0.1.10' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AutomatedEvents.RunEvent (Oxide.Plugins.AutomatedEvents+EventType type) [0x0018a] in <37a37da15f7a4ac68bbb3761d6a2fe34>:0 s                                                                              2kb/s in, 8kb/s out
  at Oxide.Plugins.AutomatedEvents+<StartEventTimer>c__AnonStorey0.<>m__0 () [0x00000] in <37a37da15f7a4ac68bbb3761d6a2fe34>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0​
I was peeking at the server's console when Automated Event spawned a Cargo Ship and immediately a LOT of scientist "died (Generic)". I will copy those errors from the console as soon as the server is empty because I would have to scroll up on the server's console to copy it and it usually results in a mass kicking for "Packet Flooding: Player Tick".

Merged post

[Event Randomizer] A Cargo Ship has been spawned.
5220745[3311940/5220745] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318309] (-1366.0, 23.7, 2701.5) (destroying)
Invalid Position: item_drop_backpack[3318314] (-1366.0, 23.7, 2701.5) (destroying)
8929933[3311861/8929933] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318318] (-1353.8, 7.1, 2700.1) (destroying)
Invalid Position: item_drop_backpack[3318324] (-1353.8, 7.0, 2700.1) (destroying)
7189324[3311847/7189324] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318328] (-1365.0, 10.2, 2700.7) (destroying)
Invalid Position: item_drop_backpack[3318335] (-1365.0, 10.2, 2700.7) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3318309]
9943010[3312030/9943010] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
956336[3311875/956336] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318339] (-1353.7, 4.1, 2700.5) (destroying)
Invalid Position: scientist_corpse[3318349] (-1366.2, 7.0, 2700.9) (destroying)
Invalid Position: item_drop_backpack[3318354] (-1353.7, 4.0, 2700.5) (destroying)
Invalid Position: item_drop_backpack[3318356] (-1366.2, 7.0, 2700.9) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3318318]
Calling kill - but already IsDestroyed!? scientist_corpse[3318328]
1442333[3311906/1442333] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318360] (-1364.8, 10.1, 2700.9) (destroying)
Invalid Position: item_drop_backpack[3318366] (-1364.8, 10.0, 2700.9) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3318339]
Calling kill - but already IsDestroyed!? scientist_corpse[3318349]
6343134[3312013/6343134] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318372] (-1377.1, 4.1, 2700.3) (destroying)
Invalid Position: item_drop_backpack[3318379] (-1377.1, 4.0, 2700.3) (destroying)
2272288[3311923/2272288] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
8305173[3311889/8305173] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Calling kill - but already IsDestroyed!? scientist_corpse[3318360]
Invalid Position: scientist_corpse[3318383] (-1363.9, 10.1, 2702.1) (destroying)
5372557[3311954/5372557] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318391] (-1376.7, 7.1, 2701.0) (destroying)
Invalid Position: scientist_corpse[3318403] (-1353.0, 28.0, 2700.2) (destroying)
Invalid Position: item_drop_backpack[3318399] (-1364.6, 10.2, 2703.4) (destroying)
Invalid Position: item_drop_backpack[3318411] (-1376.7, 7.0, 2701.0) (destroying)
Invalid Position: item_drop_backpack[3318413] (-1353.0, 27.9, 2700.2) (destroying)
5558907[3311982/5558907] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3318417] (-1365.7, 25.1, 2700.1) (destroying)
8324283[3311999/8324283] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: item_drop_backpack[3318427] (-1366.4, 24.8, 2701.4) (destroying)
Invalid Position: scientist_corpse[3318431] (-1373.5, 19.1, 2700.7) (destroying)
7894510[3311968/7894510] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: item_drop_backpack[3318438] (-1373.4, 18.9, 2700.4) (destroying)
Invalid Position: scientist_corpse[3318442] (-1377.2, 28.1, 2701.1) (destroying)
Invalid Position: item_drop_backpack[3318448] (-1377.2, 27.9, 2701.1) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3318372]
Calling kill - but already IsDestroyed!? scientist_corpse[3318383]
Calling kill - but already IsDestroyed!? scientist_corpse[3318391]
Calling kill - but already IsDestroyed!? scientist_corpse[3318403]
Calling kill - but already IsDestroyed!? scientist_corpse[3318417]
Calling kill - but already IsDestroyed!? scientist_corpse[3318431]
Calling kill - but already IsDestroyed!? scientist_corpse[3318442]


Merged post

[AutomatedEvents] Spawning Chinook
9539046[3260774/9539046] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274851] (-2169.9, 23.7, -2701.0) (destroying)
Invalid Position: item_drop_backpack[3274858] (-2169.9, 23.7, -2701.0) (destroying)
5836195[3260678/5836195] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274862] (-2170.4, 9.5, -2700.1) (destroying)
Invalid Position: item_drop_backpack[3274868] (-2170.4, 9.5, -2700.1) (destroying)
6602888[3260695/6602888] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274872] (-2169.0, 6.9, -2700.6) (destroying)
Invalid Position: item_drop_backpack[3274879] (-2169.0, 6.9, -2700.6) (destroying)
1906400[3260844/1906400] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274883] (-2156.0, 4.1, -2700.0) (destroying)
Invalid Position: item_drop_backpack[3274890] (-2156.0, 4.0, -2700.0) (destroying)
2704883[3260709/2704883] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274910] (-2157.3, 6.9, -2700.2) (destroying)
Invalid Position: item_drop_backpack[3274914] (-2157.3, 6.9, -2700.2) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3274851]
Calling kill - but already IsDestroyed!? scientist_corpse[3274862]
Calling kill - but already IsDestroyed!? scientist_corpse[3274872]
Calling kill - but already IsDestroyed!? scientist_corpse[3274883]
4622890[3260743/4622890] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274968] (-2172.8, 9.9, -2700.1) (destroying)
Invalid Position: item_drop_backpack[3274975] (-2172.9, 9.8, -2700.1) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3274910]
1369430[3260726/1369430] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274979] (-2156.5, 7.0, -2700.1) (destroying)
Invalid Position: item_drop_backpack[3274983] (-2156.5, 6.9, -2700.1) (destroying)
6939358[3260858/6939358] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3274987] (-2182.9, 4.1, -2700.4) (destroying)
2951388[3260802/2951388] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: item_drop_backpack[3274994] (-2182.9, 4.0, -2700.4) (destroying)
Invalid Position: scientist_corpse[3274998] (-2155.8, 28.1, -2700.1) (destroying)
Invalid Position: item_drop_backpack[3275030] (-2155.8, 28.1, -2700.1) (destroying)
6400152[3260757/6400152] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3275034] (-2168.8, 10.0, -2700.2) (destroying)
Invalid Position: item_drop_backpack[3275041] (-2168.8, 9.9, -2700.2) (destroying)
8905751[3260816/8905751] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Calling kill - but already IsDestroyed!? scientist_corpse[3274968]
4478408[3260830/4478408] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3275045] (-2168.9, 25.3, -2700.4) (destroying)
Invalid Position: item_drop_backpack[3275061] (-2169.0, 25.3, -2700.4) (destroying)
Invalid Position: scientist_corpse[3275055] (-2171.7, 19.0, -2700.3) (destroying)
Invalid Position: item_drop_backpack[3275063] (-2171.5, 18.9, -2700.1) (destroying)
4384986[3260788/4384986] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3275067] (-2183.4, 28.2, -2700.4) (destroying)
Invalid Position: item_drop_backpack[3275073] (-2183.4, 28.1, -2700.5) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3274979]
Invalid Position: rhib[3260665] (-2170.2, 9.2, -2700.1) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3274987]
Calling kill - but already IsDestroyed!? scientist_corpse[3274998]
Calling kill - but already IsDestroyed!? scientist_corpse[3275034]
Calling kill - but already IsDestroyed!? scientist_corpse[3275045]
Calling kill - but already IsDestroyed!? scientist_corpse[3275055]
Calling kill - but already IsDestroyed!? scientist_corpse[3275067]
6591549[3274517/6591549] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
4155321[3274525/4155321] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3276559] (1516.6, 92.9, -2700.8) (destroying)
9420915[3274533/9420915] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
7564467[3274541/7564467] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3276579] (1517.6, 92.9, -2702.2) (destroying)
Invalid Position: item_drop_backpack[3276575] (1516.6, 92.8, -2700.8) (destroying)
Invalid Position: scientist_corpse[3276588] (1522.1, 92.8, -2700.4) (destroying)
Invalid Position: item_drop_backpack[3276595] (1517.6, 92.8, -2702.2) (destroying)
Invalid Position: item_drop_backpack[3276597] (1522.1, 92.7, -2700.4) (destroying)
4191708[3274549/4191708] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
Invalid Position: scientist_corpse[3276602] (1516.7, 95.2, -2702.2) (destroying)
Invalid Position: item_drop_backpack[3276608] (1516.7, 95.1, -2702.2) (destroying)
Calling kill - but already IsDestroyed!? scientist_corpse[3276559]
Calling kill - but already IsDestroyed!? scientist_corpse[3276579]
Calling kill - but already IsDestroyed!? scientist_corpse[3276588]
Calling kill - but already IsDestroyed!? scientist_corpse[3276602]


Merged post

Please delete post #3, and this one.
What map size and seed I will try to reproduce this.  These were manually spawned, or via config.  If via config please share it as well.

Thanks for reporting this, and sorry it is playing up for you.
Map size 1800, seed 34341.
I was using the default config, they were automatically spawned by the plugin.
You realize you are running Automated Events and https://umod.org/plugins/event-randomizer ?

That is most likely the cause as they would conflict.  Try running one of the other and see if you get errors.
No, that's why I asked to delete post #3. I tried Event Randomizer AFTER disabling Automated Events.
It's running in my test box while I am at work, I will check the log tonight for any errors.  Are you running vote day or any other plugin that alters the click?
I'm running TimeOfDay to freeze the time at [12:00].
I am seeing some null exceptions but not on execution, so it might be when events end, or another plugin.  I am going to disable it and see if the nulls continue.  Sample from my log:
[AutomatedEvents] Spawning CargoShip
standingdriver[43518] changed its network group to null
smallboatpassenger[43519] changed its network group to null
smallboatpassenger[43520] changed its network group to null
smallboatpassenger[43521] changed its network group to null
smallboatpassenger[43522] changed its network group to null
smallboatpassenger[43523] changed its network group to null
rhib_storage[43524] changed its network group to null
fuel_storage[43526] changed its network group to null
[AutomatedEvents] Spawning Helicopter
[AutomatedEvents] Spawning Cargo Plane
Saved 6,795 ents, cache(0.00), write(0.01), disk(0.00).
Saving complete​


Merged post

Running it over night it seems to be occuring when scientists die, I suspect it is some interaction with another plugin (my test box runs 100+):
AutomatedEvents] Spawning CargoShip
standingdriver[269448] changed its network group to null
smallboatpassenger[269449] changed its network group to null
smallboatpassenger[269450] changed its network group to null
smallboatpassenger[269451] changed its network group to null
smallboatpassenger[269452] changed its network group to null
smallboatpassenger[269453] changed its network group to null
rhib_storage[269454] changed its network group to null
fuel_storage[269456] changed its network group to null
[Manifest] URI IS "https://api.facepunch.com/api/public/manifest/?public_key=j0VF6sNnzn9rwt9qTZtI02zTYK8PRdN1"
:D[268553/6006539] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
:([268545/9876520] died (Generic)
NullReferenceException: Object reference not set to an instance of an object
​

Do you get no null exceptions with the plugin unloaded?



Merged post

It has been running all day same null when an npc dies.  So I am not certain what I can do for you as I can't reproduce the error.  I suspect it might be some plug in interaction generating that first error.  As to the other: 
NullReferenceException: Object reference not set to an instance of an object​
Since they removed logging that would be challenging to narrow down.
Locked automatically