:shipit: SeriousVote 4.8.4 ―Your one stop Votifier Listener API 5/6/7


#141

Oh man... so many replies from me

On my config I have the following (minus the added numbers per section of course, its just to show how the numbers add up):

"1054", "Nothing", "tellraw {player} {\"text\":\":( You didn't get an item this time.\", \"color\":\"gray\"}",
"25", "Thunder stone", "give {player} pixelmon:thunder_stone 1",
"25", "Leaf stone", "give {player} pixelmon:leaf_stone 1",
"25", "Water stone", "give {player} pixelmon:water_stone 1",
"25", "Fire stone", "give {player} pixelmon:fire_stone 1",
"25", "Sun stone", "give {player} pixelmon:sun_stone 1",
"25", "Moon stone", "give {player} pixelmon:moon_stone 1",
"25", "Dawn stone", "give {player} pixelmon:dawn_stone 1",
"25", "Dusk stone", "give {player} pixelmon:dusk_stone 1",
"25", "Shiny stone", "give {player} pixelmon:shiny_stone 1",
225
"250", "Thunder stone shards", "give {player} pixelmon:thunder_stone_shard 2",
"250", "Leaf stone shards", "give {player} pixelmon:leaf_stone_shard 2",
"250", "Water stone shards", "give {player} pixelmon:water_stone_shard 2",
"250", "Fire stone shards", "give {player} pixelmon:fire_stone_shard 2",
"250", "Sun stone shards", "give {player} pixelmon:sun_stone_shard 2",
"250", "Moon stone shards", "give {player} pixelmon:moon_stone_shard 2",
"250", "Dawn stone shards", "give {player} pixelmon:dawn_stone_shard 2",
"250", "Dusk stone shards", "give {player} pixelmon:dusk_stone_shard 2",
"250", "Shiny stone shards", "give {player} pixelmon:shiny_stone_shard 2",
2250
"200", "a Revive", "give {player} pixelmon:revive 1",
"100", "Rare candy", "give {player} pixelmon:rare_candy 1",
300
"300", "Super Potions", "give {player} pixelmon:super_potion 2",
"300", "a Hyper potion", "give {player} pixelmon:hyper_potion 1",
"300", "Premier Balls", "give {player} pixelmon:premier_ball 6",
"200", "Great balls", "give {player} pixelmon:great_ball 4",
"100", "Ultra balls", "give {player} pixelmon:ultra_ball 2",
"100", "Timer balls", "give {player} pixelmon:timer_ball 2",
"100", "Heavy balls", "give {player} pixelmon:heavy_ball 2",
1400
"50", "Movement plate", "give {player} pixelmon:movement_plate 1",
"300", "Books", "give {player} minecraft:book 3",
"100", "Slime ball", "give {player} minecraft:slime_ball 2",
"300", "Blaze rod", "give {player} minecraft:blaze_rod 2",
750
"5", "Thunder stone pickaxe", "give {player} pixelmon:thunder_stone_pickaxe 1 0 {ench:[{id:34,lvl:2}]}",
"5", "Thunder stone axe", "give {player} pixelmon:thunder_stone_axe 1 0 {ench:[{id:34,lvl:2}]}",
"20", "Diamond pickaxe", "give {player} minecraft:diamond_pickaxe 1 0 {ench:[{id:32,lvl:2}]}",
"20", "Diamond axe", "give {player} minecraft:diamond_axe 1 0 {ench:[{id:32,lvl:2}]}",
50
"100", "Obsidian", "give {player} minecraft:obsidian 1",
"100", "Diamond", "give {player} minecraft:diamond 1",
"200", "Iron ingot", "give {player} minecraft:iron_ingot 4",
400
"250", "Fossil 0", "give {player} pixelmon:covered_fossil_0 1",
"250", "Fossil 1", "give {player} pixelmon:covered_fossil_1 1",
"250", "Fossil 2", "give {player} pixelmon:covered_fossil_2 1",
"250", "Fossil 3", "give {player} pixelmon:covered_fossil_3 1",
"250", "Fossil 4", "give {player} pixelmon:covered_fossil_4 1",
"250", "Fossil 5", "give {player} pixelmon:covered_fossil_5 1",
"250", "Fossil 6", "give {player} pixelmon:covered_fossil_6 1",
"250", "Fossil 7", "give {player} pixelmon:covered_fossil_7 1",
"250", "Fossil 8", "give {player} pixelmon:covered_fossil_8 1",
2250
"200", "Exp. share", "give {player} pixelmon:exp_share 1",
"250", "Amulet Coin", "give {player} pixelmon:amulet_coin 1",                  
"250", "a Skeleton skull", "give {player} minecraft:skull 1 0",
"250", "a Zombie skull", "give {player} minecraft:skull 1 2",
"250", "a Creeper skull", "give {player} minecraft:skull 1 4",
"75", "a Player skull", "give {player} skull 1 3 {SkullOwner:\"{player}\"}",
1275
"1", "Orb", "give {player} pixelmon:orb 1",
"1", "Master ball", "give {player} pixelmon:master_ball 1",
"2", "HM02:Fly", "give {player} pixelmon:hm2 1",
"3", "HM03:Surf", "give {player} pixelmon:hm3 1",
"1", "Burnt Magikarp ticket", "give {player} pixelmon:red_card 1 0 {ench:[{id:48,lvl:100}],display:{Name:\"Burnt Magikarp Ticket\",Lore:[\"Give this to an admin to\", \"exchange for a burnt magikarp!\"]}}"
"5", "Any Pokemon ticket", "give {player} pixelmon:red_card 1 0 {ench:[{id:48,lvl:100}],display:{Name:\"Any Pokemon* Ticket\",Lore:[\"Give this to an admin to\", \"exchange for any Pokemon!, \"*Shinies/Legendaries excluded.\"\"]}}",
13
"3", "Uxie", "pokegive {player} uxie",
"3", "Mesprit", "pokegive {player} mesprite",
"3", "Azelf", "pokegive {player} azelf",
"3", "Raikou", "pokegive {player} raikou",
"3", "Entei", "pokegive {player} entei",
"3", "Suicune", "pokegive {player} suicune",
"3", "Regirock", "pokegive {player} regirock",
"3", "Regice", "pokegive {player} regice",
"3", "Registeel", "pokegive {player} registeel",
"3", "Latias", "pokegive {player} latias",
"3", "Latios", "pokegive {player} latios",
33

TOTAL: 10 000

[10:48:03] [Server thread/INFO] [nucleus]: Tridaak ran the command: /givevote Tridaak
[10:48:03] [Server thread/INFO] [seriousvote]: Choosing a random reward.
[10:48:03] [Server thread/INFO] [seriousvote]: Chose Reward from Table1054
[10:48:03] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":":( You didn't get an item this time.", "color":"gray"}
[10:48:03] [Server thread/INFO] [nucleus]: Server ran the command: /econ add Tridaak 250
[10:48:03] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":"Thank you for voting, you got 250 PokeDollars and possibly an item!", "color":"green"}
[10:48:03] [pool-2-thread-3/INFO]: Successfully added currency to the balance of Tridaak!
[10:48:03] [Server thread/INFO] [nucleus]: Tridaak ran the command: /givevote Tridaak
[10:48:03] [Server thread/INFO] [seriousvote]: Choosing a random reward.
[10:48:03] [Server thread/INFO] [seriousvote]: Chose Reward from Table1054
[10:48:03] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":":( You didn't get an item this time.", "color":"gray"}
[10:48:03] [Server thread/INFO] [nucleus]: Server ran the command: /econ add Tridaak 250
[10:48:03] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":"Thank you for voting, you got 250 PokeDollars and possibly an item!", "color":"green"}
[10:48:03] [pool-2-thread-6/INFO]: Successfully added currency to the balance of Tridaak!
[10:48:04] [Server thread/INFO] [nucleus]: Tridaak ran the command: /givevote Tridaak
[10:48:04] [Server thread/INFO] [seriousvote]: Choosing a random reward.
[10:48:04] [Server thread/INFO] [seriousvote]: Chose Reward from Table1054
[10:48:04] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":":( You didn't get an item this time.", "color":"gray"}
[10:48:04] [Server thread/INFO] [nucleus]: Server ran the command: /econ add Tridaak 250
[10:48:04] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":"Thank you for voting, you got 250 PokeDollars and possibly an item!", "color":"green"}
[10:48:04] [pool-2-thread-3/INFO]: Successfully added currency to the balance of Tridaak!
[10:48:05] [Server thread/INFO] [nucleus]: Tridaak ran the command: /givevote Tridaak
[10:48:05] [Server thread/INFO] [seriousvote]: Choosing a random reward.
[10:48:05] [Server thread/INFO] [seriousvote]: Chose Reward from Table1054
[10:48:05] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":":( You didn't get an item this time.", "color":"gray"}
[10:48:05] [Server thread/INFO] [nucleus]: Server ran the command: /econ add Tridaak 250
[10:48:05] [Server thread/INFO] [nucleus]: Server ran the command: /tellraw Tridaak {"text":"Thank you for voting, you got 250 PokeDollars and possibly an item!", "color":"green"}
[10:48:05] [pool-2-thread-7/INFO]: Successfully added currency to the balance of Tridaak!

Even though giving no reward has a ~10% chance, it tends to happen about 40%-50% of the time.


#142

I remember a similar bug in something a while back. I believe it was processing each as it went down the list rather than forming a pool and calculating it that way.


#143

This bug has only been reported by pixelmon servers, the work around I attempted could not fix it. For the time being there is nothing I can do.


#144

it doesn't have a 10% chance it's chance is almost half.

The sums does not include the duplicates.

If I added correctly the total table sum of yours is 1,281 + 1054 (the nothing reward)
which means you'll get it 1054/2335 which is about 45% of the time.

I'm going to make a graphic to explain this better.


#145

#146

On running /vote:

Error occurred while executing command: null

Same for /givevote and /svreload


#147

sounds like the config might be busted, make sure it's correct.


#148

http://pastebin.com/hmEabzHR

Anything standing out as incorrect?

the use of pixelmon:items ?


#149

no it doesn't care about what items you use, what version of sponge forge are you using. And does the console give an error?


#150

SpongeForge 1.10.2 2171 5.1.0 B 2068
MinecraftForge 1.10.2 12.18.3.2202

Stacktrace:
Removed for space


#151

what version of the plugin are you using?
and what is the error the other two commands give?


#152

SeriousVote 2.9.5

svreload

23.01 09:46:12 [Server] Server thread/ERROR [seriousvote]: There was an error while reloading your configs
23.01 09:46:12 [Server] Server thread/ERROR [seriousvote]: java.io.IOException: configurate.typesafe.config.ConfigException$Parse: Reader: 2: Expecting close brace } or a comma, got ':' (if you intended ':' to be part of a key or string value, try enclosing the key or value in double quotes)
23.01 09:46:12 [Server] Server thread/ERROR [Sponge]: Error occurred while executing command 'svreload' for source EntityPlayerMP['AsyDRabbit'/8085, l='world', x=2527.50, y=71.00, z=2378.50]: null
23.01 09:46:12 [Server] INFO java.lang.NullPointerException
23.01 09:46:12 [Server] INFO at net.adamsanchez.seriousvote.SeriousVote.getPublicMessage(SeriousVote.java:334) ~[SeriousVote.class:?]
23.01 09:46:12 [Server] INFO at net.adamsanchez.seriousvote.SeriousVote.reloadConfigs(SeriousVote.java:296) ~[SeriousVote.class:?]
23.01 09:46:12 [Server] INFO at net.adamsanchez.seriousvote.SeriousVote$SVoteReload.execute(SeriousVote.java:248) ~[SeriousVote$SVoteReload.class:?]
23.01 09:46:12 [Server] INFO at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:351) ~[CommandSpec.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:46:12 [Server] INFO at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:333) ~[SimpleDispatcher.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:46:12 [Server] INFO at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:295) [SpongeCommandManager.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:46:12 [Server] INFO at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:83) [bd.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:913) [me.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:892) [me.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [im.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [im.class:?]
23.01 09:46:12 [Server] INFO at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:156) [PacketUtil.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:46:12 [Server] INFO at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjc000(SourceFile:39) [fl$1.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?]
23.01 09:46:12 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
23.01 09:46:12 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
23.01 09:46:12 [Server] INFO at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
23.01 09:46:12 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
23.01 09:46:12 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]

vote

23.01 09:47:25 [Server] Server thread/ERROR [Sponge]: Error occurred while executing command 'vote' for source EntityPlayerMP['AsyDRabbit'/8085, l='world', x=2527.50, y=71.00, z=2378.50]: null
23.01 09:47:25 [Server] INFO java.lang.NullPointerException
23.01 09:47:25 [Server] INFO at net.adamsanchez.seriousvote.SeriousVote.getVoteSites(SeriousVote.java:328) ~[SeriousVote.class:?]
23.01 09:47:25 [Server] INFO at net.adamsanchez.seriousvote.SeriousVote.access$100(SeriousVote.java:73) ~[SeriousVote.class:?]
23.01 09:47:25 [Server] INFO at net.adamsanchez.seriousvote.SeriousVote$SVoteVote.execute(SeriousVote.java:272) ~[SeriousVote$SVoteVote.class:?]
23.01 09:47:25 [Server] INFO at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:351) ~[CommandSpec.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:47:25 [Server] INFO at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:333) ~[SimpleDispatcher.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:47:25 [Server] INFO at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:295) [SpongeCommandManager.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:47:25 [Server] INFO at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:83) [bd.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:913) [me.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:892) [me.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [im.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [im.class:?]
23.01 09:47:25 [Server] INFO at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:156) [PacketUtil.class:1.10.2-2202-5.1.0-BETA-2068]
23.01 09:47:25 [Server] INFO at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjc000(SourceFile:39) [fl$1.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?]
23.01 09:47:25 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
23.01 09:47:25 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
23.01 09:47:25 [Server] INFO at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
23.01 09:47:25 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
23.01 09:47:25 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]


#153

There seems to be en error, loading the vote sites. Try clearing all the vote sites in your list and then doing svreload


#154

Identical stacktrace using the command.
Will run a hard-reset and see if that alters it.

EDIT:
No difference.


#155

this is really unusual, other people including my self are running the build without these issues


#156

I'll delete the config and jar, then do a fresh download from the pinned link in the chat.

Default with no editing of anything /vote should generate the example list I'm guessing?


#157

hold up on that.


#158

https://github.com/curscascis/SeriousVote/blob/master/build/libs/seriousvote-2.9.7-Dev.jar
Try this build out let me know the results.


#159

Still errored on /vote


#160

I will have to look into this further. I can say that it is functioning properly on all my servers.