no.

Discussion in 'Inactive/Unsupported Plugins' started by Crash, Mar 13, 2011.

  1. Offline

    Crash

    Attached Files:

    Flipp, Phaedrus, Loart and 4 others like this.
  2. Offline

    Kahl

    No, actually the same thing happens to me. And I edit the rolls.txt before even starting the server.

    When you do /slots save it should erase the file then add the settings. Also, even when I edit the rolls.txt before starting the server, it still pays out the default amounts - which is WAY too easy to make money on.
     
  3. Offline

    Crash

    Did you make sure to save the file ?

    EDIT : Found the bug you guys were telling me about. It seems I forgot to clear a few lists before the loading part so it would duplicate things and then they would show up multiple times in the save files when you save.
     
  4. Offline

    Andreas Brisner

    If that is true you have a BIG BIG flaw in this plugin!

    Also, about money going to /from an account, can you include this? I dont want my users making alot of money on it.
     
  5. Offline

    Crash

    Here is how it works :
    1. When it is enabled it loads the settings from the file.
    2. You do whatever ingame and change values.
    3. You stop the server.
    4. It saves the values that it loaded from when you started the server(which could be default).

    If you want to change the settings you can do 1 of 3 things :
    1. Change the values in the files before starting the server.
    2. Change the values you want ingame using /slots set (limited to changing a few things)
    3. Change the values in the files while the server is up, then reload them using /slots load.

    Also note, I found and fixed the bug you were talking about which would mean you were probably doing one of those three things up there.

    About the to / from part, I just added that in in v0.4
     
  6. Offline

    Andreas Brisner

    Could you please make a wget friendly link?
    Im tired of having to SCP it from my machine to the server :p
     
  7. Offline

    crakdmirror

    Just FYI everyone -- if you keep all the default roles, then the chances favor the player, not the "house". (In a big way, actually) To find out what payout is required to make chance favor no one, use the following equation:

    100/(((<chance>)^3) * 100)

    So for a 1/8 chance, which is the default for jackpot, we get

    100/(((1/8)^3) *100) = 512

    So for my 1/8 chance rolls, I put the payout to 500, so it favors the house a little bit.
     
  8. Offline

    Crash

    That's what is so great about allowing people to change the chances :)

    By the way this was added to the craftbukkit up to date plugin.
     
  9. Offline

    HungryBagel

    Brilliant! Please continue with this.

    By any chance, does this have support for multiple worlds?
     
  10. Offline

    Crash

    I'm pretty I've made it work for multiple worlds, you can test it if you'd like.
     
  11. I have a big problem, so i did the slots.jar into the plugins folder, restartet my server
    and it generated the files. i made a sign like this
    [Slots]
    25

    MoneyMoney

    use the command /slots create, an left clicked it no error but then i rightclicked it and it crashed my server
    the first 30min all worked out but yeah now not more i deleted all and made all again and again but no goal ^^

    Bukkit 556jnks
     
  12. Offline

    Crash

    I haven't tested on 556 yet, I'll test and see if mine has problems too.
    EDIT : It seems to work completely fine for me.
     
  13. Thank you so much
     
  14. Offline

    Crash

    There were no problems for me. Which plugins were you using and were there any exceptions ?
     
  15. Code:
    18:49:27 [INFO] [Permissions] version [2.5.4] (Phoenix) was Initialized.
    18:49:27 [INFO] WorldGuard loaded.
    18:49:27 [INFO] [MCStats] Loading MCStats
    18:49:27 [INFO] [MCStats] Restoring player statistics.
    18:49:27 [INFO] Loaded Essentials build 2.0.295 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    18:49:27 [INFO] Loaded EssentialsSpawn build 2.0.295 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    18:49:27 [INFO] Nether v1.1 enabled
    18:49:27 [INFO] Elevators version 1.3.1 is enabled!
    18:49:27 [INFO] [Permissions] version [2.5.4] (Phoenix)  loaded
    18:49:27 [INFO] iSee is using permissions!
    18:49:27 [INFO] iSee version 0.2 is enabled!
    18:49:27 [INFO] A simple demo plugin as proof for showing other people's inventories.
    
    18:49:27 [INFO] Minecart Mania Core version 1.04a is enabled!
    18:49:27 [INFO] WorldEdit 4.2 enabled.
    18:49:27 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    18:49:27 [INFO] CraftBookCircuits 3.0-alpha1 enabled.
    18:49:27 [INFO] Minecart Mania Automations version 1.01 is enabled!
    18:49:27 [INFO] Permissions detected by CraftIRC.
    18:49:27 [INFO] CraftIRC v2.0 Preview 10b loading.
    18:49:27 [INFO] CraftIRC - Connecting to irc.sapphira.org:6667
    18:49:27 [INFO] CraftIRC - Connected
    18:49:27 [INFO] CraftIRC Enabled.
    18:49:27 [INFO] CraftIRC - Joined channel: #minecraft
    18:49:27 [INFO] CraftIRC DEBUG [OFF]
    18:49:27 [INFO] [MusicCraft] Enabling! Version: 1.3.4 by bekvon
    18:49:27 [INFO] [MusicCraft] Found Permissions Plugin!
    18:49:27 [INFO] Minecart Mania Chest Control version 1.04 is enabled!
    18:49:27 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    18:49:27 [INFO] WorldGuard: Single session is enforced.
    18:49:27 [INFO] WorldGuard: TNT ignition is PERMITTED.
    18:49:27 [INFO] WorldGuard: Lighters are PERMITTED.
    18:49:27 [INFO] WorldGuard: Lava fire is blocked.
    18:49:27 [INFO] WorldGuard: Fire spread is UNRESTRICTED.
    18:49:27 [INFO] Loaded world: SapphiraCraft
    18:49:27 [INFO] WorldGuard 4.0-alpha1 enabled.
    18:49:27 [INFO] [Citizens]: Permissions enabled.
    18:49:27 [INFO] [Citizens]: version [1.06] (Helpers) loaded
    18:49:27 [INFO] CraftBookCommon 3.0-alpha1 enabled.
    18:49:27 [INFO] Loading map 'org.dynmap.flat.FlatMap'...
    18:49:27 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    18:49:27 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    18:49:27 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    18:49:27 [INFO] Activated world 'SapphiraCraft' in Dynmap.
    18:49:27 [INFO] Loading map 'org.dynmap.flat.FlatMap'...
    18:49:27 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    18:49:27 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    18:49:27 [INFO] Activated world 'netherworld' in Dynmap.
    18:49:27 [INFO] Dynmap WebServer started on null:8123
    18:49:27 [INFO] [Prefixer] v1.1 has been enabled.
    18:49:27 [INFO] [HeroicDeath] 1.4.4.140 enabled.
    18:49:27 [INFO] Vanish 1.5 loaded.
    18:49:27 [INFO] CraftBookMechanisms 3.0-alpha1 enabled.
    18:49:27 [INFO] [Slots] Using Permissions plugin for permissions.
    18:49:27 [INFO] [Slots] Slots v0.4 enabled, by Crash
    18:49:27 [INFO] MobileAdmin: Starting server...
    18:49:27 [INFO] MobileAdminBukkit version 2.4 is enabled!
    18:49:27 [INFO] CraftBookVehicles 3.0-alpha1 enabled.
    18:49:27 [INFO] MobileAdmin: Server listening on *:5839
    18:49:27 [INFO] LocalShops: Permissions found.
    18:49:27 [INFO] LocalShops: Loading shop Blumenladen
    18:49:27 [INFO] LocalShops: Loading shop Juwelier
    18:49:27 [INFO] LocalShops: Loading shop Baeckerei
    18:49:27 [INFO] LocalShops: Loading shop McDonalds
    18:49:27 [INFO] LocalShops: Loading shop Dekoladen
    18:49:27 [INFO] LocalShops: Loading shop Waffenladen
    18:49:27 [INFO] LocalShops: Loading shop Ruestungsladen
    18:49:27 [INFO] LocalShops: Loaded 7 shop(s).
    18:49:27 [INFO] LocalShops: version 1.15b is enabled!
    18:49:27 [INFO] Memory max: 3211001856 bytes
    18:49:27 [INFO] Memory total: 3211001856 bytes
    18:49:27 [INFO] Remote Toolkit Plugin V0.31b enabled!
    18:49:27 [INFO] [iConomy] Logging is currently disabled.
    18:49:27 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    18:49:27 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    18:49:27 [INFO] LocalShops: Attached to iConomy.
    18:49:27 [INFO] [iConomy] hooked into Permissions.
    18:49:27 [INFO] [MCStats] Enabling MCStats
    18:49:27 [INFO] *** 1
    18:49:27 [INFO] [MCStats] Starting internal web server.
    18:49:27 [INFO] [MCStats] Server stats available at http://[hostname]:8125/mcstats.xml, mcstats.json, mcstats.js, and mcstats.html
    18:49:27 [INFO] Reloaded all plugins.
    
    Thats what im using but yeah dont know because it worked for like 9 times playing
     
  16. Offline

    Crash

    So it doesn't work sometimes but does work other times ?
    And also, what do you mean by crashed the server ?
     
  17. Ok it was like this i setted all up and it worked for like 9 Turns
    but then i tried it again and it saied something not found in a File with a red text message
    this message cam 3 time and then the Server crashed, i had to restart the whole minecraft server
     
  18. Offline

    Crash

    Ok it's probably one of these :
    I think it's the 2nd one, if it was then show me your rolls.txt file because that's probably the reason.
     
  19. Code:
    name=Jackpot
    symbol=J
    pay=10000
    chance=1/80
    color=13
    
    name=Red 7
    symbol=7
    pay=3000
    chance=1/25
    color=12
    
    name=Cherry
    symbol=C
    pay=1000
    chance=1/12
    color=4
    
    name=Heart
    symbol=H
    pay=500
    chance=1/8
    color=11
    
    name=Bar
    symbol=B
    pay=100
    chance=1/5
    color=10
    
    
    
    and yes its this
    There was no roll to match the random value.

    it comes 3 times and boom all crashed
     
  20. Offline

    Crash

    That is because they don't all add up to 1, you need to change your chances to get them to add up to 1 exactly.
    As for the crashing, I didn't know it did that for 3 wrong in a row caused it to crash.
     
  21. and how i have to do that? what exactly is now my work what i have to do?
     
  22. Offline

    Crash

    Change the chances on whatever rolls you want, make sure they add up to 1.
    For example :
    Code:
    name=roll1
    symbol=1
    pay=1
    chance=1/4
    color=1
    
    name=roll2
    symbol=2
    pay=2
    chance=1/4
    color=2
    
    
    name=roll3
    symbol=3
    pay=3
    chance=1/4
    color=3
    
    name=roll4
    symbol=4
    pay=4
    chance=1/4
    color=4
    1/4 + 1/4 + 1/4 + 1/4 = 1
    25% chance of getting each one, although they don't need to be equal chances.
     
  23. thank you so much i try it out

    Code:
    name=Jackpot
    symbol=J
    pay=1000
    chance=1/4
    color=13
    
    name=Red 7
    symbol=7
    pay=800
    chance=1/4
    color=12
    
    name=Cherry
    symbol=C
    pay=400
    chance=1/4
    color=4
    
    name=Heart
    symbol=H
    pay=200
    chance=1/4
    color=11
    
    name=Bar
    symbol=B
    pay=100
    chance=1/4
    color=10
    
    thats now my rolls.txt but i have a wierd problem i got with 7 | 7 | 7 80.000 payout. i find that wierd or is it with my settings normal

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

    City Builder

    is there an issue with iconomy chests? When I try to use slots it seems okay but when i come back later all my slot signs are just dead and none are registered as slots, I can just delete them as normal signs

    Thanks,
     
  25. I have that same problem
     
  26. Offline

    kyxoan

    when trying to click the sign after setting it up as described I get this

    2011-03-21 11:39:01 [SEVERE] Could not pass event BLOCK_DAMAGED to Slots
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at us.Crash.Slots.BListener.onBlockDamage(Slots.java:781)
    at org.bukkit.plugin.java.JavaPluginLoader$22.execute(JavaPluginLoader.java:269)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:358)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  27. Offline

    Crash

    I haven't looked at compatibility much with other plugins. I'll take a look at iConomyChestShops to see what might be the problem. Try to use /slots info and left click on the sign to see if anything comes up. I don't know if it's iConomyChestShop doing that

    That is still wrong, I said the total of all your chances added up should equal 1 and 1/4 + 1/4 + 1/4 + 1/4 + 1/4 = 1.25
    Also, was your cost per roll on the sign .1 ?

    Are you using iConomy 4.4.X or 4.5.X ?
     
  28. Offline

    Novemberman

    is there a way to tie the sign to a redtorch so that it lights up when theres a winner ?
     
  29. Offline

    Kahl

    I have the same problem, and I do not have that chest shop plugin.

    My slots.txt remains empty, so I'm not even sure if they are ever getting saved?
     
  30. Offline

    Kevin Forte

    So I'm not entirely sure about how to use this... If I use combos, do I delete the rolls? How do the rolls work? Is the Jackpot roll 3 Js across or just 1 J?
     
  31. Offline

    Crash

    I have no idea what is causing this weird occurrence which I don't think is the chest shop plugin anymore. How long were you away for before the slots broke ? It is saving definitely as long as you are correctly shutting down your server or using /slots save

    To win normally, you get 3 in a row of the same roll.
    A roll is basically like a side on a die. Every time you roll the die you have a chance of getting each side, although it is equal chance for all rolls(which with this plugin you can make it so that lower paying rolls a more common).
    Combos aren't necessary, they're just if you want a way to get extra money even if you didn't get 3 in a row. For example you roll a Bar, then a Heart, then a Heart, if that specific combo is defined in combos.txt then it will give the player the reward for getting the combo(defined in combos.txt) even though they didn't get 3 in a row.
     

Share This Page