Inactive [FUN/ECON] AnCasino v2.0 - Real slot machines for your server [1.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Darazo, Dec 16, 2011.

  1. Offline

    Darazo

    [​IMG]
    AnCasino
    version: v2.0

    More information and downloads on the BukkitDev page

    This plugin depends on Vault. Get Vault here if you do not already have it.

    Description:
    In all my time of playing Minecraft I have seen a great many things. But I have never seen any proper slot machines. Troubled at this fact, I set out to put together the definite plugin for all your gambling needs, all in the comfort of your own Minecraft server.
    AnCasino allows you to easily set up interactive and proper block-based slot machines anywhere in your world. Nearly every aspect of these slot machines can be customized to your needs, including block types, costs and prizes, winning chances and more. The slot machines are compact and elegant, designed to give you large amounts of freedom to sculpt them any way you'd like.

    Features:
    • Animated, block-based slot machines, including audio
    • Highly customizable
    • Tracks statistics
    • Costs and prizes supported through practically all economy plugins
    • Configurable custom prizes and actions upon winning
    • Permissions (superperms)


    Screenshots (open)
    [​IMG]
    [​IMG]
     
    JoneKone, RaydarScan and DrAgonmoray like this.
  2. Offline

    Darazo

    You need some form of economy, yes. It will notify you of this in the server console if that is the case, and then disable the plugin.
    This topic is for discussion of my plugin AnCasino. Kindly take it to the appropriate forum if you have questions regarding other plugins.
    I see. Which version of AnCasino are you running? Which other plugins? Changed anything in the config files?
     
  3. Offline

    Andejak

    Ok :( - I tried in a time to find a good economy, i can find alot of 'chestshops' and 'showcase' etc. but never just something with only economy - Can u send a link to 1? :S
     
  4. Offline

    HippieBeak

    Try iConomy.
     
  5. Offline

    Andejak

    If i search on it, there will still come things up like ChestShops etc. Can u not just give a link? :-(
     
  6. Offline

    HippieBeak

    Um, I have the newest version. I have a lot of plugins. CraftBook, Essentials, Group Manager, iConomy, NoCheat, Permissions, MineBackup,Vault, SuperLog, Essentials extra, Worldedit, Minequery, Worldguard, AnCasino, and LWC are my plugins.
     
  7. Offline

    Andejak

    Ty cuz u said LWC! :p - That i also need installed :D - But can u pls help me with iConomy - i mean link :)
     
  8. Offline

    HippieBeak

  9. Offline

    Andejak

    Ty :) Can u link LWC? :S
     
  10. Offline

    HippieBeak

  11. Offline

    Andejak

    Now i got the iConomy plugin, but it still dont work? :(
     
  12. Offline

    Darazo

    Beta or release version was the information I was looking for :p
    Again, I need more information to help you out. What exactly is malfunctioning? Getting any errors?
     
  13. Offline

    Andejak

    No, when i write /Casino it dont gonna say, that the command doesnt exist - its just dont gonna write the thing i can, like remove, add, etc. - Want to know more? =P
     
  14. Offline

    HippieBeak

    I am not getting any errors. I don't know what version I got, I just went to the BukkitDev page and clicked the download button on top :). I click the button and it takes the money and says lets spin. When I try to click it again it says its already in use.
     
  15. Im having an error, please help! I have vault, iconomy

    Code:
    [SEVERE] Error occurred while enabling AnCasino v1.2 (Is it up to date?): while parsing a block mapping; expected <block end>, but found Scalar
    while parsing a block mapping
     in "<string>", line 44, column 7:
              insufficient-funds: You can't af ...
              ^
    expected <block end>, but found Scalar
     in "<string>", line 47, column 53:
         ...  removed from your account. Let's roll!'
                                             ^
    
    	at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
    	at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    	at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
    	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    	at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    	at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    	at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    	at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:59)
    	at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    	at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
    	at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:235)
    	at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:131)
    	at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:125)
    	at me.darazo.ancasino.AnCasino.loadConfig(AnCasino.java:116)
    	at me.darazo.ancasino.AnCasino.onEnable(AnCasino.java:63)
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    	at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
    	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
    	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
    And these are my configs:

    Code:
    # AnCasino v1.2
    # @author: Darazo <[email protected]>
    # @license: GPLv3
    #
    # Instructions for this configuration file can be found at the BukkitDev page:
    # http://dev.bukkit.org/server-mods/ancasino/
    options:
      track-statistics: true
    types:
      default:
        cost: 200
        permission: 0
        reel:
        - 42,50
        - 41,30
        - 57,15
        - 103,12
        - 49,4
        - 46,6
        rewards:
          '42':
            message: Winner - 3 iron blocks! 150e awarded.
            money: 150.0
          '41':
            message: Winner - 3 gold blocks! 250e awarded.
            money: 250.0
          '57':
            message: Winner - 3 diamond blocks! 500e awarded.
            money: 500.0
          '103':
            action:
            - give 103 64
            message: Winner - 3 ..melons? Nom.
            money: 0.0
          '49':
            message: Jackpot - 3 obsidian blocks! 600e awarded.
            money: 600.0
          '46':
            action:
            - kill
            message: Winne- BAD LUCK!
            money: 0.0
        messages:
          insufficient-funds: You can't afford to use this.
          in-use: This slot machine is already in use.
          no-win: No luck this time.
          start: '[cost] removed from your account. Let's roll!'
          help:
          - 'Instructions:'
          - Get 3 in a row in order to win. Costs 200e per spin.
          - '3 iron blocks: 150e'
          - '3 gold blocks: 250e'
          - '3 diamond blocks: 500e'
          - '3 obsidian: 600e'
          - The rest are surprises
    
     
  16. Offline

    CIA99

    If you see those times that it is saying errors for you probably have them indented wrong. This happens to a few of my other plugins configs.
     
  17. the proplem is: I only changed PRICES of rewarded... WTF??? my economy is EURO / EUROS / € ... i thought first it would not recognize € mark but it gives the same error with "e" ...
    I have no idea how to fix this lol
     
  18. Offline

    Darazo

    @Semirotta
    Code:
    start: '[cost] removed from your account. Let's roll!'
    I believe this is your problem. In the default config, it should be formatted as so:
    Code:
    start: '[cost] removed from your account. Let''s roll!'
    Note the escaped apostrophe. If that doesn't help, run your config through this online yaml parser and look for any issues.
    I have looked over the code of the old v1.2, and believe I have resolved all problems people are having with it. An update will be up at BukkitDev as soon as it is approved, or you can just download it here.

    Alternatively you could give the beta build a spin, which is probably more stable than the official release at this point. Either way, let me know if you experience any more issues.
     

  19. downloaded all completely and deleted old stuff, i remade config still errors and when i shut down for reset -> config was back to normal. FUCK THIS! :D
     
  20. Offline

    Darazo

    Shut down your server before you do any of that, as the old files will be saved to disk again upon server shutdown.
     
  21. Offline

    HippieBeak

    Still doesn't work :(.
     
  22. yeh well it still gave the errors.
     
  23. Offline

    Darazo

    Like I said, use the site I linked above to check the config file for any errors.
     
  24. Offline

    budpup67

    Now i just need a blackjack and roulette plugin =D
     
  25. Offline

    Andejak

    Could u help me? :( - I got iConomy now :S! - But still, when i try to say /casino it doesnt say the type ''help'' for help or something! - So it knows, its a command, but it cant load it, if u understand what i mean??
     
  26. Offline

    Darazo

    Restart the server and see what messages you get from AnCasino in the console when it starts back up.
     
  27. Offline

    HippieBeak

    I tried it again, and it still doesn't work :(.
     
  28. Offline

    Darazo

    Stop your server, delete everything you have relating to the plugin, and download the new update over on BukkitDev. Describe everything you do if you are still experiencing issues.
     
  29. Offline

    HippieBeak

    Ok, I stopped my server, deleted everything having to do with it, when to BukkitDev, downloaded the newest one, started the server back up, did /casino add test created the casino, clicked the button and it said that $100 has been taken, and "lets spin!" Nothing happened, so i clicked it again and it said that it was in use.
     
  30. Offline

    Darazo

    That is quite odd, really. I'm doing the exact same thing, and it is working as it should. And there are no error messages? In any case, try giving <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 11, 2016
  31. Offline

    HippieBeak

     
    Last edited by a moderator: Nov 11, 2016

Share This Page