[INACTIVE][ECON] Cookies! v0.5 - Economic System w/ API [424]

Discussion in 'Inactive/Unsupported Plugins' started by Coelho, Feb 21, 2011.

  1. Offline

    ShadowDrakken

    as long as you're taking suggestions... iMonster seems to have stopped being updated and no longer works... perhaps you could look at and add some of its features down the road when the other things are more stable? :D
     
  2. Offline

    themagicalcake

    why the (c) instead of c
     
  3. Offline

    Coelho

    Means you can type /c <cmd> instead of /cookies <cmd> if you want.
    --- merged: Feb 24, 2011 1:26 AM ---
    Maybe!
     
  4. Offline

    Plyz

    If this goes 0.4 i be upgrading for sure ! :)

    Bye bye unconomy
     
  5. Offline

    ShadowDrakken

    No luck with SQLite under 0.35 :\
    Where does Cookies need the sqlite-jdbc.jar to be located? Right now I have it in Bukkit's root folder because that's where my other plugins want it...
    Code:
    2011-02-23 19:25:21 [SEVERE] java.lang.ClassNotFoundException: org.sqlite.JDBC
    2011-02-23 19:25:21 [SEVERE]     at java.net.URLClassLoader$1.run(Unknown Source)
    2011-02-23 19:25:21 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    2011-02-23 19:25:21 [SEVERE]     at java.net.URLClassLoader.findClass(Unknown Source)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    2011-02-23 19:25:21 [SEVERE]     at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-02-23 19:25:21 [SEVERE]     at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-02-23 19:25:21 [SEVERE]     at java.lang.Class.forName0(Native Method)
    2011-02-23 19:25:21 [SEVERE]     at java.lang.Class.forName(Unknown Source)
    2011-02-23 19:25:21 [SEVERE]     at com.pi.coelho.Cookies.net.cDatabase.<init>(cDatabase.java:16)
    2011-02-23 19:25:21 [SEVERE]     at com.pi.coelho.Cookies.Cookies.onEnable(Cookies.java:104)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-23 19:25:21 [SEVERE] java.lang.NullPointerException
    2011-02-23 19:25:21 [SEVERE]     at com.pi.coelho.Cookies.Cookies.onDisable(Cookies.java:141)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    2011-02-23 19:25:21 [SEVERE]     at com.pi.coelho.Cookies.Cookies.onEnable(Cookies.java:116)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    2011-02-23 19:25:21 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    2011-02-23 19:25:21 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  6. Offline

    Coelho

    Works for me on my test server :S
    1. Make sure you updated Cookies properly
    2. Make sure "sqlite-jdbc.jar" is in the correct directory
    3. Open Cookies with an archiver and make sure the META-INF has "../sqlite-jdbc.jar" inside it.
     
  7. Offline

    ShadowDrakken

    that's why I'm trying to confirm where to put the sqlite jar :)
     
  8. Offline

    Coelho

    Main craftbukkit directory
     
  9. Offline

    Plyz

    Coelho, u gonna get this 0.4 soon ? :)
     
  10. Offline

    Coelho

    Maybe! :D
     
  11. Offline

    ShadowDrakken

    Aha, there's the problem... do I just insert it manually?
    --- merged: Feb 24, 2011 1:38 AM ---
    yay! I r has Cookies.sqlite now! XD
     
  12. Offline

    Plyz

    or just ship me an update where i can change currency, then i switch right away ^^
     
  13. Offline

    liskl

    missing Cookies.sqlite and get the above error also Cookies folder gets created with a .properties file inside with 0 bytes

    Code:
    2011-02-23 20:41:17 [INFO] [COOKIES] Please change the properties for Cookies if not default.
    2011-02-23 20:41:17 [SEVERE] java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    2011-02-23 20:41:17 [SEVERE]    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2011-02-23 20:41:17 [SEVERE]    at java.security.AccessController.doPrivileged(Native Method)
    2011-02-23 20:41:17 [SEVERE]    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    2011-02-23 20:41:17 [SEVERE]    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    2011-02-23 20:41:17 [SEVERE]    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    2011-02-23 20:41:17 [SEVERE]    at java.lang.Class.forName0(Native Method)
    2011-02-23 20:41:17 [SEVERE]    at java.lang.Class.forName(Class.java:169)
    2011-02-23 20:41:17 [SEVERE]    at com.pi.coelho.Cookies.net.cDatabase.<init>(cDatabase.java:19)
    2011-02-23 20:41:17 [SEVERE]    at com.pi.coelho.Cookies.Cookies.onEnable(Cookies.java:104)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:195)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:189)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-23 20:41:17 [SEVERE] java.lang.NullPointerException
    2011-02-23 20:41:17 [SEVERE]    at com.pi.coelho.Cookies.Cookies.onDisable(Cookies.java:141)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    2011-02-23 20:41:17 [SEVERE]    at com.pi.coelho.Cookies.Cookies.onEnable(Cookies.java:116)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:195)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:189)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    2011-02-23 20:41:17 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    2011-02-23 20:41:17 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-23 20:41:17 [INFO] [COOKIES] Failed to save list into database.
    2011-02-23 20:41:17 [INFO] [COOKIES] Script has stored cookies in a safe spot for later use.
    2011-02-23 20:41:17 [INFO] [COOKIES] Failed to retrieve list from database.
    2011-02-23 20:41:17 [WARNING] Plugin 'Cookies' (ver 0.35) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
    2011-02-23 20:41:17 [WARNING] Plugin 'Cookies' (ver 0.35) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
     
  14. Offline

    ShadowDrakken

    @liskl deja vu ;)
    --- merged: Feb 24, 2011 1:47 AM ---
    /c admin grant is working as /c admin set :\
    --- merged: Feb 24, 2011 1:49 AM ---
    perhaps make Cookies respect the Bukkit "save-all" server console command as well as its own auto-save? Not sure if this one is possible...
     
  15. Offline

    Coelho

    Looking into fixing this in 0.4
    --- merged: Feb 24, 2011 1:53 AM ---
    Doing it.
     
  16. Offline

    ShadowDrakken

    /c admin is not reporting the new grant or status commands in the help text
    --- merged: Feb 24, 2011 1:55 AM ---
    sorry for so many posts, reporting bugs as I find them... you're gonna be busy if you try to keep up with me XD
     
  17. Offline

    KingPin

    when running cookies it only makes a 0 kb file called .properties in the cookies folder. can you give me an example of the file? thank you.

    OS : linux
    bukkit : git-Bukkit-0.0.0-450-gd3c1ba4 (git tip)
     
  18. Offline

    ShadowDrakken

    here's the default it generated for me

    Code:
    #Please change the properties for Cookies if not default.
    #Wed Feb 23 18:23:49 CST 2011
    sql-password=
    sql-database=minecraft
    interest-max=5
    sql-port=3306
    death-drop=2
    initial-money=50
    sql-username=root
    monster-drop-avail=yes
    monster-drop=1
    sql-lite=no
    sql-table=cookies_data
    sql-hostname=localhost
    interest-avail=yes
    death-drop-avail=yes
    
     
  19. Offline

    Coelho

    After huge requests 0.4 has been released.
    • Can now choose currency name!
    • Auto-save Configuration
    • Admin command "save-all"
    • Properties generation bug-fix
    • Developers API method "getCurrency()"
    Wrapper can NOT be updated to support getCurrency().
     
  20. Offline

    ShadowDrakken

    haha, not exactly what I meant, but not a bad idea either XD
    MC/Bukkit itself has a console command "save-all" that forces the entire server to save... I don't know if it fires an event or not, but if it does, it'd be nice to hook it that way it plays nice with autosave and with manual server-wide save-all :)
     
  21. Offline

    Coelho

    Lol it's /c admin save-all :D
     
  22. Offline

    KingPin

    thanx that worked.
     
  23. Offline

    ShadowDrakken

    0.40 the SQLite errors came back... opened the Jar and dropped the sqlite jar into META-INF but it's still throwing the errors this time
     
  24. Offline

    KingPin

    coehlo for mysql i suggest adding an ID column and making it the primary key for the table.
     
  25. Offline

    Coelho

    Question is, what error.
    --- merged: Feb 24, 2011 2:18 AM ---
    It is not nessessary the way I am feeding information into it.
     
  26. Offline

    ShadowDrakken

    Code:
    2011-02-23 20:17:48 [SEVERE] java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    2011-02-23 20:17:48 [SEVERE]     at java.net.URLClassLoader$1.run(Unknown Source)
    2011-02-23 20:17:48 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    2011-02-23 20:17:48 [SEVERE]     at java.net.URLClassLoader.findClass(Unknown Source)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    2011-02-23 20:17:48 [SEVERE]     at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-02-23 20:17:48 [SEVERE]     at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-02-23 20:17:48 [SEVERE]     at java.lang.Class.forName0(Native Method)
    2011-02-23 20:17:48 [SEVERE]     at java.lang.Class.forName(Unknown Source)
    2011-02-23 20:17:48 [SEVERE]     at com.pi.coelho.Cookies.net.cDatabase.<init>(cDatabase.java:19)
    2011-02-23 20:17:48 [SEVERE]     at com.pi.coelho.Cookies.Cookies.onEnable(Cookies.java:114)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-23 20:17:48 [SEVERE] java.lang.NullPointerException
    2011-02-23 20:17:48 [SEVERE]     at com.pi.coelho.Cookies.Cookies.onDisable(Cookies.java:160)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:142)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:441)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:199)
    2011-02-23 20:17:48 [SEVERE]     at com.pi.coelho.Cookies.Cookies.onEnable(Cookies.java:126)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
    2011-02-23 20:17:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    2011-02-23 20:17:48 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  27. Offline

    Coelho

    You forgot to tick sql-lite in your properties :D
     
  28. Offline

    ShadowDrakken

    nope, here's my current .properties
    Code:
    #Please change the properties for Cookies if not default.
    #Wed Feb 23 18:23:49 CST 2011
    sql-password=
    sql-database=cookies
    interest-max=5
    sql-port=3306
    death-drop=2
    initial-money=50
    sql-username=root
    monster-drop-avail=yes
    monster-drop=1
    sql-lite=yes
    sql-table=cookies_data
    sql-hostname=localhost
    interest-avail=no
    death-drop-avail=yes
    
     
  29. Offline

    Coelho

    Back up your properties and have the script regenerate them (required for 0.4). Then feed your properties back into it.
     
  30. Offline

    ShadowDrakken

    that did it, thanks... sounds like more graceful handling of missing connectors and reformatted properties might be needed as the project grows ;)
     

Share This Page