Data File Returning Odd ValuesSolved
{ "players": { "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -25.0, "76561############": 570.0, "76561############": 10890.0, "76561############": -50.0, "76561############": 104280.0, "76561############": 31980.0, "76561############": 4200.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": 6840.0, "76561############": -50.0, "76561############": -50.0, "76561############": 130620.0, "76561############": -50.0, "76561############": 5130.0, "76561############": -50.0, "76561############": 26220.0, "76561############": 13860.0, "76561############": -50.0, "76561############": 12540.0, "76561############": 7470.0, "76561############": 6450.0, "76561############": -50.0, "76561############": 11640.0, "76561############": 21540.0, "76561############": 78240.0, "76561############": -50.0, "76561############": 27200.09138917923, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0, "76561############": -50.0 },​


My Data file has some really odd -50 times for players, PlaytimeTracker looks solid though. I also seem to get an error with some players bases when they are supposed to take damage:

13/12 09:55:22 | Failed to call hook 'OnEntityTakeDamage' on plugin 'AntiNoobRaid v1.9.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.AntiNoobRaid.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo, BasePlayer player) [0x004a7] in <7a925bf3f1054596940330676af53f10>:0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005d3] in <7a925bf3f1054596940330676af53f10>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0​

I'm assuming these may be related, but I honestly can't tell beyond them being consistent in my server currently.

Neighigh

I'm assuming these may be related, but I honestly can't tell beyond them being consistent in my server currently.

 

-50 is used when the player has lost there noob protection due the following: damaged another players (non team if enabled) structure, clan lost protection, inactive or team has lost protection. do you have logs enabled? it will tell you why players have lost protection. the error isn't related to the times in the data file but most likey one of options in the config. i'll have a look at it and see whats the problem is but could you post your config and any other info that could help like is it when player user the MLRS, are in a team (attacker/defender), etc.

Copy! The -50 makes a lot more sense now!

{
  "Allow clan members to destroy each others entities (Rust:IO Clans)": true,
  "Allow team members to destroy each others entities": true,
  "Allow twig to be destroyed even when owner is noob": true,
  "Ignore twig when calculating base ownership (prevents exploiting)": true,
  "Check full ownership of the base instead of only one block": true,
  "Kill fireballs when someone tries to raid protected player with fire (prevents lag)": true,
  "Time (seconds) after which noob will lose protection (in-game time)": 21600,
  "Days of inactivity after which player will be raidable": 1.0,
  "Notify player on first connection with protection time": true,
  "Use game tips to send first connection message to players": true,
  "Show message for not being able to raid": true,
  "Show time until raidable": true,
  "Prevent new players from raiding": true,
  "Remove protection from all team members when a member tries to raid": true,
  "Remove protection from all clan members when a member tries to raid": false,
  "Remove noob status of a raider on raid attempt": true,
  "Remove noob status of a raider who is manually marked as a noob on raid attempt": true,
  "Refund explosives": true,
  "Refunds before player starts losing explosives": 4,
  "List of entities that can be destroyed even if owner is a noob, true = destroyable everywhere (not inside of owners TC range)": {
    "Placeholder1": true,
    "Placeholder2": true,
    "Placeholder3": true,
    "Placeholder4": true,
    "Placeholder5": true
  },
  "User data refresh interval (seconds)": 30,
  "Show structure has no owner in console": false,
  "Enable Logs (logs can be found in /oxide/logs/antinoobraid)": true
}

 



Merged post

Oh and it does appear this is directly related to non-player entities hitting bases. Patrol/MLRS/Scientists
Neighigh

Copy! The -50 makes a lot more sense now!

{
  "Allow clan members to destroy each others entities (Rust:IO Clans)": true,
  "Allow team members to destroy each others entities": true,
  "Allow twig to be destroyed even when owner is noob": true,
  "Ignore twig when calculating base ownership (prevents exploiting)": true,
  "Check full ownership of the base instead of only one block": true,
  "Kill fireballs when someone tries to raid protected player with fire (prevents lag)": true,
  "Time (seconds) after which noob will lose protection (in-game time)": 21600,
  "Days of inactivity after which player will be raidable": 1.0,
  "Notify player on first connection with protection time": true,
  "Use game tips to send first connection message to players": true,
  "Show message for not being able to raid": true,
  "Show time until raidable": true,
  "Prevent new players from raiding": true,
  "Remove protection from all team members when a member tries to raid": true,
  "Remove protection from all clan members when a member tries to raid": false,
  "Remove noob status of a raider on raid attempt": true,
  "Remove noob status of a raider who is manually marked as a noob on raid attempt": true,
  "Refund explosives": true,
  "Refunds before player starts losing explosives": 4,
  "List of entities that can be destroyed even if owner is a noob, true = destroyable everywhere (not inside of owners TC range)": {
    "Placeholder1": true,
    "Placeholder2": true,
    "Placeholder3": true,
    "Placeholder4": true,
    "Placeholder5": true
  },
  "User data refresh interval (seconds)": 30,
  "Show structure has no owner in console": false,
  "Enable Logs (logs can be found in /oxide/logs/antinoobraid)": true
}

 



Merged post

Oh and it does appear this is directly related to non-player entities hitting bases. Patrol/MLRS/Scientists

There shouldn't be any more NullReferenceException anymore in the latest update

I see that! Very nice work! Updating now, big thanks!

Failed to call hook 'OnEntityTakeDamage' on plugin 'AntiNoobRaid v1.9.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.AntiNoobRaid.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x0073a] in <7d72e0f8aa184821b41db47102806718>:0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005d3] in <7d72e0f8aa184821b41db47102806718>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

Yes I stilll get the same Fail, although it is much much less now! I imagine there are a few entities still triggering the issue? I'll keep an eye out to what those could be.

bqcamw7GwR4S9iA.jpg Neighigh

Yes I stilll get the same Fail, although it is much much less now! I imagine there are a few entities still triggering the issue? I'll keep an eye out to what those could be.

seems to be the basic rockets causing it I think. I booted up my test server and got one of my server staff to shoot one at a base and the console blew up. I than commented out the latest update I did in the current version to test and the errors from the rockets where gone. to me it didnt make sense so I reverted it and then load it back in. but the wierd thing was that the errors didn't come back from the rockets. From that I feel like maybe a reload after server restart may prevent the issue and could be a temporary fix but I may have a fix and in the middle of testing.

Copy! Thanks for testing. Can confirm, not getting Fails from rockets here, and we have restarted since the update.

My initial thought was that some of my NPCs may be causing the Fail to trigger, possibly ricochet damage. Testing that now!



Merged post

No errors from NPCs or turrets hitting structures on my end. I'm at a loss myself lol 
XvzziW3OUm3N3NT.jpg Neighigh

Copy! Thanks for testing. Can confirm, not getting Fails from rockets here, and we have restarted since the update.

My initial thought was that some of my NPCs may be causing the Fail to trigger, possibly ricochet damage. Testing that now!



Merged post

No errors from NPCs or turrets hitting structures on my end. I'm at a loss myself lol 
shoyqn
Failed to call hook 'OnEntityTakeDamage' on plugin 'AntiNoobRaid v1.9.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.AntiNoobRaid.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x0073a] in <7d72e0f8aa184821b41db47102806718>:0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005d3] in <7d72e0f8aa184821b41db47102806718>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

I may have a potential fix to the issue and have uploaded a beta version to my github. Hopefully it does the trick let me know so i can push it as the official release. jkole4/AntiNoobRaid at jkole4-AntiNoobRaid-V1.9.4-Beta (github.com)

Alrighty, so I actually just happened to be having a spam of the flag going off right when I uploaded this, cleared up instantly! Thanks for the diligent work Rustyspoon! Seems to be working solid so far. I'll keep an eye on consol over the day to be 100% sure.

Merged post

So far not a single instance of the Fail being flagged in console, I think you've solved it!

2ELCSmRLsxSq86R.jpg Neighigh

Alrighty, so I actually just happened to be having a spam of the flag going off right when I uploaded this, cleared up instantly! Thanks for the diligent work Rustyspoon! Seems to be working solid so far. I'll keep an eye on consol over the day to be 100% sure.

Merged post

So far not a single instance of the Fail being flagged in console, I think you've solved it!

I have posted a 2nd beta on my github and really think I got it this time and shouldn't be any problems. Shoyqn was still getting them after the fisrt beta so I joined his server and we figured out that it was the fire from incendiary ammo, rockets, really anything that left fire hitting doors and sam turrets. 

Nice catch, that's awesome! I've loaded into mine and will continue to monitor on my end too. Thanks so much!

Locked automatically