graywolf336 / CasinoSlots

Animated, customizable, block-based slot machines, including audio, inside of Minecraft!
http://dev.bukkit.org/server-mods/casino-slots/
GNU General Public License v2.0
23 stars 24 forks source link

Managed and Non-Managed Slots not paying out. #26

Closed LlmDl closed 11 years ago

LlmDl commented 11 years ago

Using CasinoSlots 2.4.5 and Bukkit 2265 (Last 1.2.5 Bukkit build), Vault, iConomy 5.01.

My slot machines appear fine, charge properly for their use, animate fine, even show 'Award Given' when 3 blocks in a row are found.

Config is 100% defaul, no /reload command has been used.

Diagonal winning is enabled in the config, but doesn't work

When players get 3 in a row horizontally they do not win any money and do not see the proper win message, instead they see the Award Given message.

Thanks for reading.

LlmDl commented 11 years ago

Updated to 2.4.9 hoping I might see an improvement but there are still no rewards given and the reward messages are still the generic Award Given message.

graywolf336 commented 11 years ago

No errors in the console?

LlmDl commented 11 years ago

Nothing, it's really weird. Players are charged 100 for using it, but get no winnings. I thought at first it could be a problem connecting to the iConomy 5.01 but creating, using and withdrawing/depositing from the slots all work.

graywolf336 commented 11 years ago

Can you post your config somewhere?

LlmDl commented 11 years ago

http://pastebin.com/HdX1ECRm

As far as I can recall I haven't changed anything. I was doing all the previous testing with the default-generated config.

graywolf336 commented 11 years ago

That appears to be fine and works for me... Are you using an updated or outdated version of Vault?

LlmDl commented 11 years ago

2012-08-19 13:29:14 [INFO] [Vault] Enabling Vault v1.2.16-b184 2012-08-19 13:29:14 [INFO] [Vault][Economy] iConomy 5 found: Waiting 2012-08-19 13:29:14 [INFO] [Vault][Permission] GroupManager found: Waiting 2012-08-19 13:29:14 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system. 2012-08-19 13:29:14 [INFO] [Vault][Chat] GroupManager found: Waiting 2012-08-19 13:29:14 [INFO] [Vault][Chat] Towny hooked. 2012-08-19 13:29:14 [INFO] [Vault][Chat] Towny found: Loaded 2012-08-19 13:29:14 [INFO] [Vault] Enabled Version 1.2.16-b184

From my startup. I have a feeling its not Vault, since the other eco-related functions of your plugin hook fine.

LlmDl commented 11 years ago

My only hunch on this, when a player does win they get the Award Given message instead of the Message set in the config. Searching through your code I did find the Award Given message here: https://github.com/graywolf336/CasinoSlots/blob/master/src/com/craftyn/casinoslots/slot/TypeData.java#L147

Maybe this is something?

LlmDl commented 11 years ago

Ok, I feel a bit dumb now. I restarted the server, this time was the first time that casinoslots wasn't creating a fresh install and instead loading the already created files and its working now.

A quick question: When I right click on a managed slot I created, what does the Funds Required: indicate? It was displaying 0.0 when the plugin wasn't working and now it's showing 750.0. I'm guessing this is the amount required in the bank to make the highest payout.

graywolf336 commented 11 years ago

That is correct, the plugin checks each time a slot machine is played and it is managed if the slot machine has enough money in it to pay back the highest money in it's awards.

LlmDl commented 11 years ago

Yeah, after getting to play around with it I figured it out. You might want to edit the plugin install instructions for now, adding in an extra reboot. Or if you're working on the /casino reload command then it probably all that's needed.

Fresh install looks to be the only problem I had.

graywolf336 commented 11 years ago

Yeah in the upcoming release the /casino reload works properly, the main reason it was disabled was because it wasn't actually doing anything...was just there acting like it did something.

graywolf336 commented 11 years ago

http://dev.bukkit.org/server-mods/casino-slots/files/14-casino-slots-2-5-0/ for if you want to download it before they approve it.

LlmDl commented 11 years ago

Thanks for the following-up on this with me. Going to close this issue:

If you experience the problem I described above do the following:

After installing casinoslots for the first time, do a second stop and start after your initial startup which generated the casinoslots config file.

or

Do a /casino reload after starting up casinoslots for the first time.