Inactive [FUN]Vault Slots v1.7 ~ Simple Slot Machines [1.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by SirTyler, Nov 1, 2011.

  1. Offline

    SirTyler

    New 1.6 Release
    Uses and Depends Vault

    + Added Debug Config Option
    + Added Logging Class
    + Added Wool Color / Potions / Durability Support
     
  2. Offline

    Laguna

    Since I installed the new version, it does not work the slot machines. I also installed the latest version of Vault.

    When I try to play on the machine tells me that I have enough money, and if I have.

    In the command I get this:

    Code:
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Check false
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking Inventory for:ItemStack{GOLD_INGOT x 2}
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Use econ?:false
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:cost SlotType:GarraPerrasData Got:266>0:2
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:cost SlotType:GarraPerrasEcon:false
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:jackpot SlotType:GarraPerrasData Got:266>0:50
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:jackpot SlotType:GarraPerrasEcon:false
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:payout SlotType:GarraPerrasData Got:266>0:20
    16.01 10:03:36 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:payout SlotType:GarraPerrasEcon:false
    With version 1.5 I was perfect, what can happen?
     
  3. Offline

    SirTyler

    Seems to be a bug where you have to have exactly the number of items in your inventory. So you need exactly 2 or it thinks you do not have enough. I will look into fixing this.
     
  4. Offline

    Laguna

    It is very rare, that before did not go with the version 1.5 I had no problems. See if there is any solution but to go to the previous version but can not put wool: S

    Thank you!
     
  5. Offline

    SirTyler

    Turns out it has something to do with a bug in bukkit (most current dev build has this bug where the inventory must have exactly the amount). I have made a work around and the bug is fixed in the newest version.

    New 1.6.2 Release
    Uses and Depends Vault
    +Fixed CraftBukkit[1772] Inventory Bug

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  6. Offline

    Laguna

    Many thanks, I'll download it now. Thanks for your help.

    Sorry to say that there is another problem. For example, I put a green wool machine, in theory the code would look like right?
    Code:
      LanaVerde:
        labels: A:B:C:D
        payout: '35.5:15'
        jackpot: '35.5:40'
        jackpotLabel: D
        cost: '266:1'
    It gives me error. With the other objects works perfectly, but with the ID that have this format "xx.xx" appears on the command line this error:
    Code:
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:534)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:96)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:598)
    16.01 19:53:44 [Server] INFO    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:272)
    16.01 19:53:44 [Server] INFO    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
    16.01 19:53:44 [Server] INFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:340)
    16.01 19:53:44 [Server] INFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    16.01 19:53:44 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:338)
    16.01 19:53:44 [Server] INFO    at me.sirtyler.VaultSlots.PlayerUse.onPlayerInteract(PlayerUse.java:79)
    16.01 19:53:44 [Server] INFO    at java.lang.Integer.parseInt(Integer.java:527)
    16.01 19:53:44 [Server] INFO    at java.lang.Integer.parseInt(Integer.java:492)
    16.01 19:53:44 [Server] INFO    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    16.01 19:53:44 [Server] INFO java.lang.NumberFormatException: For input string: "35.5"
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  7. Offline

    SirTyler

    Your config file is wrong, its not 35.5 its 35>5.
     
  8. Offline

    Laguna

    Nor let me, gives me the same error. I have put the following code:

    Code:
      LanaVerde:
        labels: A:B:C:D
        payout: '35>5:15'
        jackpot: '35>5:40'
        jackpotLabel: D
        cost: '266:1'
    I think there must be something else, because the default in the config file and see this code is correct:
    Code:
      default3:
        labels: A:B:C:D
        payout: 35.4:2
        jackpot: 35.4:4
        jackpotLabel: D
        cost: '35:1'
    35.4 there appears the ID corresponding to the wool yellow, and appears with "." and not ">". I do not understand it can be :S
     
  9. Offline

    SirTyler

    I forgot to change the default from 35.4 to 35>4. Use 35>4 and it should work.
     
  10. Offline

    Laguna

    It works. Now I have another thing. I have a means of payment as gold bullion, but users get to play and are not subtracted ingots why?. Even if you have 0 gold bullion in inventory can play: S.

    Is it a bug?
     
  11. Offline

    SirTyler

    What is this? Economy? Items? I'm confused.
     
  12. Offline

    Laguna

    I have the latest version of iConomy and Vault. I have a slot machine with this configuration:
    Code:
      LanaVer:
        labels: A:B:C:D
        payout: 35>5:15
        jackpot: 35>5:40
        jackpotLabel: D
        cost: '266:1'
    As you can see the payment is by gold bullion (ID: 266). The problem is that even if you have gold bars in my inventory, I can continue playing the slot machine infinitely. That did not happen before with version 1.5, when I was out of the bars could not continue playing.
     
  13. Offline

    SirTyler

    I will take a look at this, it most likely is stemming from the same problem that caused the first problem.

    New 1.6.3 Release
    Uses and Depends Vault
    +Fixed Inventory Checking Bug

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  14. Offline

    Laguna

    Thank you very much friend! I will try it now: D

    Still does not work mate = (. Now tell me: "Insufficient Founds" and not true, I have sufficient funds.

    In the command line I get the following error:

    Code:
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Check false
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking Inventory for:ItemStack{GOLD_INGOT x 2}
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Use econ?:false
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:cost SlotType:GarraPerrasData Got:266>0:2
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:cost SlotType:GarraPerrasEcon:false
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:jackpot SlotType:GarraPerrasData Got:266>0:50
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:jackpot SlotType:GarraPerrasEcon:false
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:payout SlotType:GarraPerrasData Got:266>0:20
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:payout SlotType:GarraPerrasEcon:false
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Check true
    18.01 15:28:10 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking Permission
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Check false
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking Inventory for:ItemStack{GOLD_INGOT x 2}
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Use econ?:false
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:cost SlotType:GarraPerrasData Got:266>0:2
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:cost SlotType:GarraPerrasEcon:false
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:jackpot SlotType:GarraPerrasData Got:266>0:50
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:jackpot SlotType:GarraPerrasEcon:false
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:payout SlotType:GarraPerrasData Got:266>0:20
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking:payout SlotType:GarraPerrasEcon:false
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Check true
    18.01 15:28:08 [Server] INFO [VaultSlots]Debug:Sign User:dragonl Checking Permission
    Please check it out. Besides I downloaded the latest version of Vault 1.2.5.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  15. Offline

    SirTyler

    It is saying that your Permission for it is false. Meaning you do not have permission to use the slot machine.
     
  16. Offline

    Laguna

    I do not think permissions. I have GroupManager Essentials, there I have the correct permissions. In version 1.5 I VaultSlots worked perfect. Have you tried? Do you work? = S is very rare.

    I put back the version 1.5 that is working properly but I can not put wool.
     
  17. Offline

    SirTyler

    I dont know, maybe a bug with GM Essentials. I am using bPermissions and its working perfectly fine.
     
  18. Offline

    b3thanie

    Im having the same Issue.
    Code:
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Check false
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking Inventory for:ItemStack{IRON_INGOT x 2}
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Use econ?:false
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking:cost SlotType:defaultData Got:265>0:2
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking:cost SlotType:defaultEcon:false
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking:jackpot SlotType:defaultData Got:266>0:16
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking:jackpot SlotType:defaultEcon:false
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking:payout SlotType:defaultData Got:266>0:8
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking:payout SlotType:defaultEcon:false
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Check true
    19.01 11:53:10 [Server] INFO [VaultSlots]Debug:Sign User:b3thanie Checking Permission
    i have the items on hand.. and plenty of them but i keep getting an error saying i dont have funds.
     
  19. Offline

    SirTyler

    Does "checking permissions" get a "check false"under it? Cause it looks like it does.
     
  20. Offline

    b3thanie

    check true.
    Read it from the bottom to the top.
    Im using multicraft.. so new lines appear above older lines.
     
  21. Offline

    SirTyler

    Have you tried without it being in your hand?
     
  22. Offline

    b3thanie

    Just did.. still not working.

    ok.. i got it to work.. but only when you have just the right amount. if you have anymore in your inv. it wont work.. pretty inconvenient

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  23. Offline

    SirTyler

    god damn it... I thought I fixed this bug. Alright so for now (Until RB) I will not be doing any more updates except for the bleeding edge builds on my git(source).
     
  24. Offline

    chris534711

    can you make it so you can edit the chance of the winnings? like 20% for jackpot...
     
  25. Offline

    SirTyler

    The chance of jackpot is based on how many labels there are.
     
  26. Offline

    Rofl Disney

    I used the default slot machine right after installing it and Vault. It says the funds won't work, I am using iron ignots. Please help.
     
  27. Offline

    SirTyler

    There is a bug in checking inventory, expect it fixed in the next version (1.7) coming soon.
     
  28. Offline

    SirTyler

    New 1.7 Release
    Uses and Depends Vault

    + Custom Inventory Check workaround
    + Start for Poker Support
    + Fixed Wool Color / Potion / Durability Support
     
  29. Offline

    Rofl Disney

    I put this exact config in the folder. I might have messed it up... There is no cost to play. Please fix the config for me if it is wrong.

    Code:
    debug: false
    type:
      Iron:
        labels: A:B:C:D
        payout: '19:2'
        jackpot: '19:4'
        jackpotLabel: D
        cost: '19:1'
      Gold:
        labels: A:B:C:D
        payout: '19:3'
        jackpot: '19:5'
        jackpotLabel: D
        cost: '19:5'
      Diamond:
        labels: A:B:C:D
        payout: '19:5'
        jackpot: '19:7'
        jackpotLabel: D
        cost: '19:10'
      default:
        labels: A:B:C:D
        payout: '266:8'
        jackpot: '266:16'
        jackpotLabel: D
        cost: '265:2'
     
  30. Offline

    SirTyler

    New 1.7.2 Release
    Uses and Depends Vault

    + Inventory Bug Fix


    All release from now on will be heavily tested before being put out, however I will put out bleeding edge builds that have the latest things I am working on for them.
     

Share This Page