Jump to content

Critical Bug - PVE Bypass due to NullReferenceException in OnEntityTakeDamage

Pending 1.2.14

rustfoxgaming
rustfoxgaming

Posted

Hi, I’m having issues with the plugin. About 50% of the time, the PVE protection fails and turns into PVP, allowing players to kill each other. Then, 2 minutes later, the PVE starts working again. The Gemini AI analyzed my logs and told me to send you this technical report regarding a NullReferenceException in the 'OnEntityTakeDamage' hook. Thank you for your time.

I'm experiencing a major issue with SimplePVE v1.2.14. The PVE protection fails intermittently (PVP becomes active randomly) because the plugin's main hook crashes.

The Problem: When a player takes damage, the console throws a NullReferenceException on the OnEntityTakeDamage hook. Because of this crash, the code execution stops before it can block the damage, which results in the PVE being bypassed.

Error Log: Failed to call hook 'OnEntityTakeDamage' on plugin 'SimplePVE v1.2.14' (NullReferenceException: Object reference not set to an instance of an object)

Probable causes in the code:

A missing null check in the CheckIncludes method (Clans/Friends/Teams logic).

The new Deep Sea or Auto Claim logic trying to access an entity property that is null at the moment of impact.

Could you please add safety null checks in the OnEntityTakeDamage flow to ensure the PVE protection remains active even if an entity property is missing?
 

By gemini.

Iftebinjan

Posted

Hey Please send me your config file and rulesdata file from oxide/data/simplepve folder.

rustfoxgaming

Posted

On 3/9/2026 at 8:47 PM, Fruster said:

Hey! Please attach your config file, I will check it

 

19 hours ago, Fruster said:

It looks like it needs to be configured like this, then it will work fine:

"Calculate the time until the next event only after the previous one has finished": true

 

I also recommend doing this:

"Will autoturrets attack NPCs": false,
 "Will flameturrets and guntraps attack NPCs": false,

After testing, please let me know the results.

 

5 hours ago, Iftebinjan said:

Hey Please send me your config file and rulesdata file from oxide/data/simplepve folder.

RulesData.jsonSimplePVE.json

2.3m

Downloads

Total number of downloads.

10.6k

Customers

Total customers served.

153.1k

Files Sold

Total number of files sold.

3.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.