Jump to content

Reward Points didn't wipe automatically on Wipe

Gremlins 1.1.2 1.1.3

Reward Points didn't wipe automatically on Wipe, I did perform a full server wipe, and that was at last forced wipe from facepunch.

These are my configs:

{
  "Options": {
    "Reset ServerRewards player RP on wipe": true,
    "Backup player RP before wiping": true
  },
  "Version": {
    "Major": 1,
    "Minor": 1,
    "Patch": 2
  }
}

Any idea of what happened?
Thank you in advance

Share this comment


Link to comment

Are you able to supply your log from that server startup or day ?

It worked fine for me, but another person also said it didn't work but I can't see why.

Share this comment


Link to comment

Unfortunately I haven't yet set up a log file for my servers, so I won't be able to provide it to you.

Do you think that users who might have had installed DisablingSandbox.cs plugin could be facing the issue?

I don't have it installed since you released the update for ServerRewardsWipe plugin,
but I am not 100% sure it was enough to simply remove DisablingSandbox.cs to " restore " the Sandbox

I have, while typing to you, set up a server log file for all my servers, so I will be able to provide it if will still be required in the future.

Let me know if you need me to do some tests to help investigate the issue.

Thank you in advance

Edited by Rahd

Share this comment


Link to comment

Oxide logs to file automatically, just look in oxide/logs directory for the one with that days date on it

 

Nothing to do with DisableSandbox

Share this comment


Link to comment

Hi, thanks for providing this. For some reason when your Server Rewards unloaded there was an error which I think caused the issue:

06:13 [Info] [Server Rewards Wipe] INFO: Wipe detected, wiping ServerRewards player RP...
06:13 [Info] [Server Rewards Wipe] INFO: Unloading ServerRewards plugin...
06:13 [Error] Failed to call hook 'Unload' on plugin 'ServerRewards v0.4.74' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ServerRewards.SaveRP () [0x00000] in <84522799d22d4e0b851f52322b1091a5>:0 
  at Oxide.Plugins.ServerRewards.Unload () [0x00069] in <84522799d22d4e0b851f52322b1091a5>:0 
  at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x017a0] in <84522799d22d4e0b851f52322b1091a5>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <ccbecb1690ac40048b5b01f4ad263c1c>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
06:13 [Info] Unloaded plugin Server Rewards v0.4.74 by k1lly0u
06:13 [Info] [Server Rewards Wipe] ERROR: ServerRewards RP data not wiped, RP data was null.
06:13 [Info] [Server Rewards Wipe] INFO: RP data wiped, reloading ServerRewards...

There seems to be two issues here, firstly seems there is some kind of issue with your Server Rewards setup, because when it was unloaded it threw that error. It could be an error in your data file? Not sure, but the error was thrown when ServerRewards tried to SaveRP when it was unloaded. This error has nothing to do with my plugin. Then there is another issue where my plugin has tried to retrieve your player RP from the SR data files, but this has returned null, meaning it didn't receive any data. By default it looks for this in the oxide/data/ServerRewards/player_data.json file. Have you by any chance changed the directory structure format? Or using default SR settings for this?

Share this comment


Link to comment

Sorry for late reply.

"By default it looks for this in the oxide/data/ServerRewards/player_data.json file. Have you by any chance changed the directory structure format? Or using default SR settings for this?"
- I haven't changed directory structure format. But my oxide folder is not located directly in the main server folder if that could make any difference ( I have no issue with any other plugin )

This is my ServerRewards path: oxide\data\ServerRewards\player_data.json

Attached you can find my config for both plugins, ( both plugins updated to the last version )

ServerRewards.json ServerRewardsWipe.json

Share this comment


Link to comment

I have just typed in console the command clearrpdata and RP points have been successfully wiped ( I have disabled the Backup function this time from the config file )  :

[Server Rewards Wipe] INFO: Unloading ServerRewards plugin...
Unloaded plugin Server Rewards v0.4.74 by k1lly0u
[Server Rewards Wipe] INFO: RP data wiped, reloading ServerRewards...
[Server Rewards] All UI elements have been successfully generated!
Calling 'OnServerInitialized' on 'ServerRewards v0.4.74' took 149ms
Loaded plugin Server Rewards v0.4.74 by k1lly0u

It just didn't work when the server wiped somehow, what do you think might have caused the issue at this stage? Maybe the server wasn't fully loaded when it initiated the RP wipe?

Edited by Rahd
  • Like 1

Share this comment


Link to comment

I will look further to see if I can work it out, but for now I need sleep after a long day at work. Hopefully release an update tomorrow.

Edited by ZEODE

Share this comment


Link to comment

I have looked over my plugin again and can't see any error. The only error was seen in your Oxide log, where ServerRewards threw an error while it was being unloaded. This suggests that there was an error with the Data file while ServerRewards was reading/writing to it to save on unload (such as a missing/corrupt entry). I don't see how this error could be caused by my plugin. Also, the fact that the clearrpdata command worked for you also suggest the plugin is working correctly as it uses the same method.

I have performed several wipes on my test server and all have worked flawlessly. Do you have a test server which you could test a wipe on with all your current plugins loaded etc?

Share this comment


Link to comment

oxide_2023-03-14.txt"I have performed several wipes on my test server and all have worked flawlessly. Do you have a test server which you could test a wipe on with all your current plugins loaded etc?"
- I have made it. What do you want me to try?

I did wipe it again with only 8 plugins and the problem persists :

[Server Rewards Wipe] ERROR: ServerRewards RP data not wiped, RP data was null.
[Server Rewards Wipe] INFO: RP data wiped, reloading ServerRewards...
Setting breakpad minidump AppID = 252490
SteamServer Initialized

Edited by Rahd

Share this comment


Link to comment

When you get a minute, try this one and let me know how that goes. If not, please copy and paste the whole output relating to the plugin, or send the log file. I hope to get to the bottom of it for you.

  • Like 1

Share this comment


Link to comment

Thank you, I appreciate your support, I am determined as you to find the cause/solution for this.

I did wipe it once again while using the plugin you sent, same results unfortunately. 

Attached you will find the full log

oxide_2023-03-14.txt

Share this comment


Link to comment
09:48 [Info] [Server Rewards Wipe] INFO: Wipe detected, wiping ServerRewards player RP...
09:48 [Info] [Server Rewards Wipe] INFO: Unloading ServerRewards plugin...
09:48 [Error] Failed to call hook 'Unload' on plugin 'ServerRewards v0.4.74' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ServerRewards.SaveRP () [0x00000] in <ae7b6f16e969464b87547481333ef538>:0 
  at Oxide.Plugins.ServerRewards.Unload () [0x00069] in <ae7b6f16e969464b87547481333ef538>:0 
  at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x017a0] in <ae7b6f16e969464b87547481333ef538>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d431e37658ba4727b7490299d12dfc44>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
09:48 [Info] Unloaded plugin Server Rewards v0.4.74 by k1lly0u
09:48 [Info] [Server Rewards Wipe] ERROR: ServerRewards RP data not wiped, RP data was null.
09:48 [Info] [Server Rewards Wipe] INFO: Finished, reloading ServerRewards.

I can see you are getting the same error on ServerRewards unload again, this seems to be interfering with the wipe process. We need to identify what is causing that error when SR unloads. From the error, it suggests it's trying to Save something which doesn't exist.

Do you have any other plugins which interact with ServerRewards. What 8 plugins were loaded at the time?

Edited by ZEODE

Share this comment


Link to comment

This is the list of the 8 plugins I had running when testing it:

Discord Wipe v2.3.1 by MJSU
Image Library v2.0.60 by Absolut & K1lly0u
MapVoter v1.3.58 by Kaysharp
Placeholder API v2.2.1 by misticos
Rust Map Api v1.3.2 by MJSU
Server Rewards v0.4.74 by k1lly0u
Server Rewards Wipe v1.1.2 by ZEODE
Wipe Info Api v1.1.0 by MJSU

" Do you have any other plugins which interact with ServerRewards. What 8 plugins were loaded at the time? "
- While regularly running my server yes, I have multiple plugins that interact with Server Rewards, but when I did the test it I removed all of them and left just the the 8 listed, I also cleaned all the data folder

Share this comment


Link to comment

Hi, server rewards are still not automatically wiping on server wipe, even with the version 1.1.3

there are my configs:

{
  "Options": {
    "Reset ServerRewards player RP on wipe": true,
    "Backup player RP before wiping": true,
    "Wipe delay (seconds) after server startup. Try increasing if RP wipe fails on startup": 49.0
  },
  "Version": {
    "Major": 1,
    "Minor": 1,
    "Patch": 3
  }
}

and this is the error I am getting in console:

04:27 [Info] [Server Rewards Wipe] INFO: Wipe detected, ServerRewards player RP reset in 49 seconds...
04:27 [Info] [Server Rewards Wipe] INFO: Unloading ServerRewards plugin...
04:27 [Error] Failed to call hook 'Unload' on plugin 'ServerRewards v0.4.74' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ServerRewards.SaveRP () [0x00000] in <954e268686f343379e77dfe888e326b1>:0 
  at Oxide.Plugins.ServerRewards.Unload () [0x00069] in <954e268686f343379e77dfe888e326b1>:0 
  at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x017a0] in <954e268686f343379e77dfe888e326b1>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
04:27 [Info] Unloaded plugin Server Rewards v0.4.74 by k1lly0u

Edited by Rahd

Share this comment


Link to comment

That error message doesn't help me at all. To see what happened I need to see the server log from boot up to a minute or so after that error. If you could send it to me in PM maybe I might be able to shed some light on it. Honestly, at this point I don't know what else to tell you. It works fine on all my tests, the only way I could reproduce your error was if there was a heavy load during startup and it meant Server Rewards was slow initialising. So maybe you have a huge number of plugins? Maybe your server isn't very powerful? You could try increasing the startup delay more and see if that helps.

Share this comment


Link to comment

It's ok, at this point this is becoming too much frustrating, I will find other ways to automate RP points wipes.

Thank you for your time.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.7k

Files Sold

Total number of files sold.

1.6m

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.