[Outdated] Vote Rewards

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
im getting this error in my log


04/07/18 21:41 [VoteRewards][error] [json.exception.parse_error.101] parse error at 56: syntax error - invalid literal; last read: '"myapikey removed for security", /'; expected string literal
04/07/18 21:41 [API][warning] Failed to load plugin - VoteRewards
Error code: 3765269347
Probably you got unlucky with an API key.. Try to generate another one.
 
For existing servers with large quantities of unclaimed votes, how will this be handled if we install the plugin today? The ark-servers website says the API can only be used to mark votes within the last 24 hours as claimed.

For example, I've got players who have voted every day this month, so they'll have a total of 8 unclaimed votes. When I install this, will it reward them 8 times and only mark the 8th vote as claimed, or does your internal system track the whole row so that you know which individual vote record has been handed out?
 
For existing servers with large quantities of unclaimed votes, how will this be handled if we install the plugin today? The ark-servers website says the API can only be used to mark votes within the last 24 hours as claimed.

For example, I've got players who have voted every day this month, so they'll have a total of 8 unclaimed votes. When I install this, will it reward them 8 times and only mark the 8th vote as claimed, or does your internal system track the whole row so that you know which individual vote record has been handed out?
Correct me if am wrong here @Michidu
This plugin doesn't use a db and doesn't read in all the votes, it only handles votes that have been voted after the plugin was added. So every vote that was done before the plugins were installed is not valid.
 
Im still having issues with my voterewards....


04/10/18 17:11 [API][info] Loaded plugin Ark Shop V2.3 (Shop, Currency & Kits)
04/10/18 17:11 [API][info] Loaded plugin Permissions V1.2 (Manage permissions groups)
04/10/18 17:11 [VoteRewards][error] [json.exception.parse_error.101] parse error at 56: syntax error - invalid literal; last read: '"API.KEY.REMOVED.SECURITY", /'; expected string literal
04/10/18 17:11 [API][warning] Failed to load plugin - VoteRewards
Error code: 3765269347
04/10/18 17:11 [API][info] Loaded all plugins

04/10/18 17:11 [API][info] UWorld::InitWorld was called
 
Im still having issues with my voterewards....


04/10/18 17:11 [API][info] Loaded plugin Ark Shop V2.3 (Shop, Currency & Kits)
04/10/18 17:11 [API][info] Loaded plugin Permissions V1.2 (Manage permissions groups)
04/10/18 17:11 [VoteRewards][error] [json.exception.parse_error.101] parse error at 56: syntax error - invalid literal; last read: '"API.KEY.REMOVED.SECURITY", /'; expected string literal
04/10/18 17:11 [API][warning] Failed to load plugin - VoteRewards
Error code: 3765269347
04/10/18 17:11 [API][info] Loaded all plugins

04/10/18 17:11 [API][info] UWorld::InitWorld was called
Looks like you don't have an API Key configured in the config file, have it ever worked or did it stop working for you?

//Foppa
 
Correct me if am wrong here @Michidu
This plugin doesn't use a db and doesn't read in all the votes, it only handles votes that have been voted after the plugin was added. So every vote that was done before the plugins were installed is not valid.

I can confirm that this is the case. Existing non-archived votes were completely ignored. Thanks!
 
Looks like you don't have an API Key configured in the config file, have it ever worked or did it stop working for you?

//Foppa

This has never worked for me i have even creeated a new API key
 
This has never worked for me i have even creeated a new API key
The problem is that you have a copy of the description of the plugin, Fill in the config file that is included when you download the plugin instead. You can't have those lines that have "// COMMENTS .." that brakes the parsing.

//Foppa
 
So, it looks like I may have spoken too early about my understanding of what was going on with the plugin. We have a number of players who don't play every day, but do vote every day. Prior to now, I had an Excel document that pulled the API data from Ark-Servers via a timed refresh, and we manually tracked handing out rewards as an input. The Excel doc summed up the votes as a total, and subtracted the reward grants from it, indicating how many rewards were still owed. Below are some vote records from the server, starting from the morning where I rebooted to install the API and vote rewards tracker.

Date - Nickname - Claimed

April 10th, 2018 11:03 PM EST - Player A - 1
April 10th, 2018 10:21 PM EST - Player B - 0
April 10th, 2018 08:51 PM EST - Player C - 1
April 10th, 2018 07:09 PM EST - Player D - 0
April 10th, 2018 07:00 PM EST - Player A - 0
April 9th, 2018 04:27 PM EST - Player H - 1
April 9th, 2018 10:52 AM EST - Player C - 0
April 9th, 2018 08:46 AM EST - Player J - 0

My concern is around the fact that the plugin only seems to acknowledge a player's most recent vote. Take a look at Player C; he voted the first morning while he was out of town, voted again when he signed on the following day, and was immediately shown how to use /votereward to claim his reward. It only gave him a single quantity of reward item, and only marked the most recent vote as claimed.

I am aware of the limitation of the Ark-Servers Claim API, which is that you can only mark votes as claimed if they occur within the last 24 hours. To that end, I was curious if the API would hand out all votes within the valid time period. Above, Player C voted early one day and late the next, so marking the old vote as claimed is impossible. As a result, I tested it by voting twice within one full 24 hour period in two different ways.

April 10th, 2018 11:03 PM EST - Player A - 1
April 10th, 2018 10:21 PM EST - Player B - 0
April 10th, 2018 08:51 PM EST - Player C - 1
April 10th, 2018 07:09 PM EST - Player D - 0

In this test, I was Player D. I voted one evening and didn't claim it. The next morning, I signed in, claimed the reward, and immediately voted again, and claimed again. Two rewards, one per claim, exactly as expected. Both votes were marked properly.


Date Nickname Claimed
April 11th, 2018 07:36 AM EST - Player D - 1
April 10th, 2018 11:03 PM EST - Player A - 1
April 10th, 2018 10:21 PM EST - Player B - 0
April 10th, 2018 08:51 PM EST - Player C - 1
April 10th, 2018 07:09 PM EST - Player D - 1

I also had Player B vote as well. However, he voted yesterday, and again this morning, and only claimed his reward after the second vote. He received one reward only, and could not redeem again to get the second one from yesterday, even though it was within 24 hours. We end with a vote record like this:

April 11th, 2018 07:55 AM EST - Player B - 1
April 11th, 2018 07:36 AM EST - Player D - 1
April 10th, 2018 11:03 PM EST - Player A - 1
April 10th, 2018 10:21 PM EST - Player B - 0
April 10th, 2018 08:51 PM EST - Player C - 1
April 10th, 2018 07:09 PM EST - Player D - 1

I take it that the API is just reaching out, finding the most recent vote for that player, and either detecting it as acknowledged, or marking it as such and granting the reward. It doesn't do any deeper dives to see if there are other votes within the valid time period, or prior votes that it may not be able to acknowledge, but also won't grant votes for. In reality, it is what it is, but it should probably be made clear in the description that it only hands out the most recent vote reward.

I was hoping that the plugin would keep in regular contact with the Ark-Server database, acknowledge each new vote as claimed, while maintaining a local repository of the recorded votes plus what has been claimed, handing out the necessary reward amount automatically. For example, if I vote every day for three days, when I finally sign on the server on the 3rd day, I get 3 rewards. Obviously this would require some sort of tracker internally to both acknowledge votes remotely, and to record whether they've been claimed by the users or not, which will need to reside on the server somewhere.
 
any info mate?
Don't you get a crashstack or dump file in the save directory?
Info should be in the save directory: e.g. D:\Servers\ARK\The Island\ShooterGame\Saved\SavedArks
 
Tebex
Monetize your ARK server
Tempest Dedicated Servers
Rogue Vikings Discord Server - Rogue Vikings Gaming Servers - Minecraft Prison Servers - Minecraft Creative Servers
Back
Top