Jump to content

Error after Wipe

Fixed 1.0.6 2.1.4

zeppelino
zeppelino

Posted

Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.VoteSystem+TopServeurCheckManager+<>c__DisplayClass4_0.<CheckRoutine>b__0 (System.Int32 code, System.String response) [0x00069] in <f6847d8c66e9478da291fe08ed705d2c>:0
  at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <beb2b64691c64e2b95b99491bd85442c>:0

 

Kaho

Posted

same here...

guess because of the playername and the :3 in it?
 

Web request callback raised an exception (DirectoryNotFoundException: Could not find a part of the path "D:\Gameserver\RUST\oxide\data\VoteSystem\playervote_toaster :3.json".)
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <467a840a914a47078e4ae9b0b1e8779e>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <467a840a914a47078e4ae9b0b1e8779e>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00055] in <467a840a914a47078e4ae9b0b1e8779e>:0
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <467a840a914a47078e4ae9b0b1e8779e>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00026] in <467a840a914a47078e4ae9b0b1e8779e>:0
  at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <beb2b64691c64e2b95b99491bd85442c>:0
  at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00036] in <beb2b64691c64e2b95b99491bd85442c>:0
  at Oxide.Plugins.VoteSystem+PlayerVoteData.Load (System.String playername) [0x00046] in <1c9b8ae9f94e4b59942d9c9ac96f3d0f>:0
  at Oxide.Plugins.VoteSystem+VoteSystemManager.GetOrCreateVotePlayer (System.String playerId) [0x00012] in <1c9b8ae9f94e4b59942d9c9ac96f3d0f>:0
  at Oxide.Plugins.VoteSystem+RustServersCheckManager.SetVotes (System.String playerName, System.Int32 votes, System.Int32 month) [0x0000a] in <1c9b8ae9f94e4b59942d9c9ac96f3d0f>:0
  at Oxide.Plugins.VoteSystem+RustServersCheckManager+<>c__DisplayClass3_0.<CheckRoutine>b__0 (System.Int32 code, System.String response) [0x000ac] in <1c9b8ae9f94e4b59942d9c9ac96f3d0f>:0

 

flutes

Posted

Hello, Thank you for your patience.

The two issues appear to be different.

@Farmer Elias It seems that the procedure for wiping is no longer present in the documentation (I will update it). After a wipe, you need to use the command "votesystem_wipe" (in your server's console). This might resolve your issue. If not, please let me know.

@Kaho Your issue seems to be different. It looks like the problem is with the player's nickname ('toaster :3'), likely due to special characters. If the problem persists, I can provide you with a temporary solution. I will update the plugin so that certain special characters no longer cause issues.

Best regards.

Kaho

Posted

19 hours ago, flutes said:

Hello, Thank you for your patience.

The two issues appear to be different.

@Farmer Elias It seems that the procedure for wiping is no longer present in the documentation (I will update it). After a wipe, you need to use the command "votesystem_wipe" (in your server's console). This might resolve your issue. If not, please let me know.

@Kaho Your issue seems to be different. It looks like the problem is with the player's nickname ('toaster :3'), likely due to special characters. If the problem persists, I can provide you with a temporary solution. I will update the plugin so that certain special characters no longer cause issues.

Best regards.

If you are going to fix it soon its fine for me. If you need more time, a temp fix would be good ❤️ 🙂

Kaho

Posted (edited)

On 8/8/2024 at 8:05 AM, Kaho said:

If you are going to fix it soon its fine for me. If you need more time, a temp fix would be good ❤️ 🙂

Any news on that @flutes ? 🙂

Edited by Kaho
flutes

Posted

Hi,

First of all, I'm sorry for the extremely late response, and thank you for the detailed report.

From what you described, the Rust-Servers API itself was responding, but Vote Reward apparently wasn't reaching the point where the vote was considered valid and the points were awarded. The fact that you didn't get the Added XX Points to player XX log would be consistent with that.

The plugin and the vote-site integrations have changed since this report, so I can't reliably diagnose the original issue from the information available now.

If you're still using Vote Reward and Rust-Servers is still not awarding points on the latest version, please send me:

  • Your current Vote Reward version
  • Whether you're using Oxide or Carbon
  • Your Rust-Servers configuration, with the API key/token removed
  • The API response you receive from Rust-Servers, with any sensitive information removed
  • Any relevant console logs when the vote check runs

With that, I can compare the response with what the plugin expects and determine whether the issue is in the provider response, the parsing, or the reward handling.

Since this report is quite old and I can't confirm that the original issue still exists in the current version, I'm going to close it for now. If you're still experiencing it, please reply/reopen the request or create a new one and I'll investigate it properly.

Again, sorry for the lack of support at the time.

flutes

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 2.1.4

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.1m
Total downloads
Customers
12.2k
Customers served
Files Sold
172.3k
Total sales
Payments
3.7m
Processed total
×
×
  • 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.