PreciousStones - Back under the development of phaed

Discussion in 'Inactive/Unsupported Plugins' started by aPunch, Apr 20, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    aPunch

    Ryannober, Avous and kahlilnc like this.
  2. Offline

    GmK

    If you're updating to 4.2, and fail at running the sql query

    Code:
    alter table ps_fields change velocity float
    change it to

    Code:
    alter table ps_fields modify velocity float;
    as 'change' wasnt the correct syntax.

    Cheers!
     
  3. Offline

    phaed

    oooo thanks

    SQLite support should start working as soon as bug# 365 is fixed, and bukkit upgrades to the new version, from the trend it looks like they release every 4-5 months or so:

    http://www.avaje.org/bug.html

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

    Bill Warner

    started the upgrade to 4.x starting with latest 4.2. I've got the database created and I see the plugin generated the tables needed, but I'm getting the follow:

    Code:
    20:40:20 [INFO] [PreciousStones] version 4.2 loaded
    20:40:20 [INFO] [PreciousStones] world fields: 0
    20:40:20 [INFO] [PreciousStones] world unbreakables: 0
    20:40:20 [INFO] [PreciousStones] nether fields: 0
    20:40:20 [INFO] [PreciousStones] nether unbreakables: 0
    20:40:20 [INFO] [PreciousStones] wilderness fields: 0
    20:40:20 [INFO] [PreciousStones] wilderness unbreakables: 0
    20:40:20 [SEVERE] null loading PreciousStones v4.2 (Is it up to date?)
    java.lang.NullPointerException
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.TagManager.tagWorld(TagManager.java:139)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.TagManager.checkTaggedWorlds(TagManager.java:37)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.TagManager.<init>(TagManager.java:26)
            at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:104)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:336)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:270)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:396)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:381)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    Also is there a way to import the old fields? from 3.x versions?
     
  5. Offline

    DarKMaKa

    Same here
     
  6. Offline

    phaed

  7. Offline

    Bill Warner

    You are awesome!!

    What about importing 3.x txt files into the db? is that possible?
     
  8. Offline

    Maxis010

     
  9. Offline

    Bill Warner

    Hmm, both not able to read I guess and the import isn't working.

    doing some playing now hope I can get it working, have well over 1500 pstones i really don't want to have to replace.

    ok, brought a backup into place and ran it.

    Code:
    23:38:22 [SEVERE] Caused by: java.sql.SQLException: Field 'id' doesn't have a default value
    
    happens on every attempt to import.

    should this be set as an index field in the db?

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

    phaed

    Try this:

    http://dl.dropbox.com/u/1907324/PreciousStones-v4.2.1.zip
     
  11. Offline

    Bill Warner

    is that different than the 4.2.1 above? neither one worked.

    Code:
    2011-05-16 00:48:15 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-16 00:48:15 [INFO] Loading properties
    2011-05-16 00:48:15 [INFO] Starting Minecraft server on *:25565
    2011-05-16 00:48:15 [INFO] This server is running Craftbukkit version git-Bukkit
    -0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02)
    ......
    2011-05-16 00:48:52 [INFO] [PreciousStones] version 4.2.1 loaded
    2011-05-16 00:48:53 [SEVERE] javax.persistence.PersistenceException: ERROR executing DML bindLog[] error[Field 'id' doesn't have a default value]
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:116)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.insert(DmlBeanPersister.java:76)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeInsertBean(DefaultPersistExecute.java:91)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:527)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:557)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.insert(DefaultPersister.java:404)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaInsert(DefaultPersister.java:377)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaRecurse(DefaultPersister.java:361)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:308)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1577)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1567)
    2011-05-16 00:48:53 [SEVERE]    at net.sacredlabyrinth.Phaed.PreciousStones.managers.ForceFieldManager.saveField(ForceFieldManager.java:96)
    2011-05-16 00:48:53 [SEVERE]    at net.sacredlabyrinth.Phaed.PreciousStones.managers.StorageManager.loadFields(StorageManager.java:336)
    2011-05-16 00:48:53 [SEVERE]    at net.sacredlabyrinth.Phaed.PreciousStones.managers.StorageManager.<init>(StorageManager.java:45)
    2011-05-16 00:48:53 [SEVERE]    at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:103)
    2011-05-16 00:48:53 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-16 00:48:53 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    2011-05-16 00:48:53 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    2011-05-16 00:48:53 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    2011-05-16 00:48:53 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    2011-05-16 00:48:53 [SEVERE]    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    2011-05-16 00:48:53 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    2011-05-16 00:48:53 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    2011-05-16 00:48:53 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    2011-05-16 00:48:53 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-16 00:48:53 [SEVERE] Caused by: java.sql.SQLException: Field 'id' doesn't have a default value
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
    2011-05-16 00:48:53 [SEVERE]    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.lib.sql.ExtendedPreparedStatement.executeUpdate(ExtendedPreparedStatement.java:164)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.type.DataBind.executeUpdate(DataBind.java:74)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.InsertHandler.execute(InsertHandler.java:155)
    2011-05-16 00:48:53 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:105)
    2011-05-16 00:48:53 [SEVERE]    ... 25 more
    [code]
    repeated over and over.
     
  12. Offline

    phaed

  13. Offline

    Bill Warner

    That did it!! Can I say you rock?


    ...and need a tip jar.
     
  14. Offline

    Micze

    Phew, almost had a 3x hearth attack. forgot to update the database first.. had to reboot bukkit reload didnt cut it. ^^
    4.2.1 seem to work well so far.
     
  15. Offline

    Niff

    Ok, so I finally got around to trying out your plugin, but I cannot seem to get your landmines or shocker blocks to work.

    I set them down, check that the field exists on top of them, but my friend who is helping me test my server to get it ready to open never triggers it, and vice versa when we walk on them. The other ones I have tried so far work fine, (sky cannon, air, etc).

    I am sure I am overlooking something trivial, but think you could shed some light as to what?
     
  16. Offline

    phaed

    The people who place them, those allowed into the fields, or have admin bypass permissions, do not trigger mines or shockers.
     
  17. Offline

    Niff

    Yes yes, thank you, I actually found out in a fairly exciting show right before I read your post when a non admin logged into the server and died. Thanks for the response though, appreciate it.
     
  18. Offline

    Junrall

    Hi,
    Is there step-by-step guide on how to install this plugin?
    How and where do I enter the required items to my "groups" ?
    How do I create a MySql database on the host server?

    I am using Provision Host to host my minecraft server... are any of you familiar with their servers? And if so, am I able to use this plugin on their servers?

    There is a bukkit.yml file already in place, but it's contents already have this:

    settings:
    update-folder: update
    database:
    username: *****
    isolation: SERIALIZABLE
    driver: org.sqlite.JDBC
    password: *****
    url: jdbc:sqlite:{DIR}{NAME}.db

    I assume that if I change this to match this plugin's bukkit.yml... I'm going to run in to probelms... right?

    Ok... I know you're slapping your foreheads and saying "this dude is in over his head!"
    Well... yes I am! :)
    I'm doing this for fun and to learn something new!

    Any help and/or thoughts will be greatly appreciated.

    Thanks

    ~Greenhorn~
     
  19. Offline

    phaed

    A quick google told me that your host supports MySQL. http://www.minecraftforum.net/viewtopic.php?f=1027&t=74439

    Your bukkit.yml says yu are currently using sqlite (an inferior database than MySQL), so you may have a plugin using a sqlite for database. Figure out which plugin it is, cause once you switch to MySQL that plugins data will be reset. If you are ok with that plugin resetting its data, then reach out to your host and tell them you want to switch your bukit.yml to MySQL and you need them to fill out the url and credentials. Once they do this you can just drop in PreciousStones and it will work.
     
  20. Offline

    Junrall

    Thanks for the reply phaed,

    Yep, I did ask them to install this PreciousStones for me... after reading your post I saw that they had not put bukkit.yml into the PreciousStones folder... so I moved there myself.

    I think it is loaded now because in the log window I can see where it says: "Installing database for PreciousStones due to first time usage"

    Now when I type in any commands I get this: "/ps help - Displays PreciousStones commands" which I assume is another good sign. Since I do get this message with every command I enter does this mean that I need to insert the following into my groups?
    .benefit.* #can create precious stones (members) preciousstones.whitelist.* #can add others to their blocks (members) preciousstones.special.* #can use special features(veterans) preciousstones.bypass.* #can bypass all protection (mods) preciousstones.alert.* #in-game alert on notifys and warnings (mods) preciousstones.admin.* #admin tools (admins) preciousstones.override.* #these players will receive no warnings or notifications preciousstones.blacklist #these players will be backlisted, this overrides all other permissions

    What about this list? Where does it go?
    I'm using McMyAdmin... it looks like I need to install a Group Manager or Permissions plugin as well? I do have ops.txt as well.
    preciousstones.bypass.snitch #wont show up on any snitch lists preciousstones.bypass.mine #proximity mine preciousstones.bypass.lightning #proximity lightning fields preciousstones.alert.notify.place #alert for block placement notifys preciousstones.alert.notify.destroy #alert for block destroy notifys preciousstones.alert.notify.bypass-place #alert for block bypass-place notifys preciousstones.alert.notify.bypass-destroy#alert for block bypass-destroy notifys preciousstones.alert.warn.entry #alert for entry warnings preciousstones.alert.warn.fire #alert for fire warnings preciousstones.alert.warn.pvp #alert for pvp warnings preciousstones.alert.warn.place #alert for place warnings preciousstones.alert.warn.destroy #alert for destroy warnings preciousstones.alert.warn.noplace #alert for noplace warnings preciousstones.alert.warn.destroyarea #alert for destroy area warnings preciousstones.alert.warn.conflict #alert for conflict placement warnings preciousstones.alert.warn.unprotectable #alert for unprotectable related warnings preciousstones.admin.delete #use /ps delete preciousstones.admin.info #use /ps info preciousstones.admin.list #use /ps list preciousstones.admin.reload #use /ps reload preciousstones.admin.save #use /ps save preciousstones.admin.setowner #use /ps setowner preciousstones.admin.fields #use /ps fields preciousstones.admin.clean #use /ps clean preciousstones.admin.details #view all details with right-click preciousstones.admin.bypass.log #user does not show up in logs preciousstones.admin.isadmin #used internally to detect admins preciousstones.admin.viewconflicting #tells you locations of conflicting pstones when placing new field preciousstones.override.notify #users will not be shown any notifications preciousstones.override.warn #users will not be shown any warnings

    Thanks again

    EDIT: Ok, so I'm looking over the Permissions 2.7.3 (Phoenix) video and web page... I'm kinda getting the idea now... but still could use some guidance. Thanks again!
     
  21. Offline

    phaed

    bukkit.yml goes in the same folder that has craftbukkit....jar not in the PreciousStones folder. I mentioned this in the Persistence instructions on the OP.

    If you're getting "/ps help - Displays PreciousStones commands" for every command you type then something is wrong.

    I can't teach you how to set up permissions plugin, that is far outside the scope that i'm willing to help in, you're gonna have to do that on your own.
     
  22. Offline

    Ecnalyr

    I keep getting the following errors every few moments while my server is running -- Most of the time it seems harmless, but one time I logged onto my server and my preciousstones blocks were not functioning, perhaps the problem is shouting at me in the console:

    Code:
    The last packet  successfully received from the server was 60,002 milliseconds ago.  The  last packet sent successfully to the server was 0 milliseconds ago.
    	at sun.reflect.GeneratedConstructorAccessor44.newInstance(Unknown Source)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3082)
    	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2968)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3516)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
    	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
    	at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1474)
    	at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.testConnection(DataSourcePool.java:497)
    	at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.checkDataSource(DataSourcePool.java:356)
    	at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager.checkDataSource(DataSourceManager.java:228)
    	at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager.access$100(DataSourceManager.java:37)
    	at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager$Checker.run(DataSourceManager.java:240)
    	at com.avaje.ebeaninternal.server.lib.BackgroundThread$Runner.runJobs(BackgroundThread.java:208)
    	at com.avaje.ebeaninternal.server.lib.BackgroundThread$Runner.run(BackgroundThread.java:172)
    	at java.lang.Thread.run(Thread.java:662)
    Caused  by: java.io.EOFException: Can not read response from server. Expected  to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
    	at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2529)
    	at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2979)
    	... 15 more
    2011-05-16  23:39:24 [INFO] Reseting DataSourcePool [PreciousStones] min:2 max:20  free:1 busy:1 waiting:0 highWaterMark:3 waitCount:0 hitCount:3141
    2011-05-16  23:39:24 [INFO] PSTMT Statistics: name[PreciousStones.332]  startTime[1305607134133] pstmtHits[0] pstmtMiss[0] PreciousStones.332  size:0 max:20 totalHits:0 hitRatio:0 removes:0
    2011-05-16 23:39:24 [INFO] Closing Connection[PreciousStones.332] psReuse[0] psCreate[0] psSize[0]
    2011-05-16 23:39:24 [INFO] Busy Connections:
    name[PreciousStones.333] startTime[1305607164136] stmt[null] createdBy[null]
    
    2011-05-16 23:39:24 [INFO] Closing Connection[PreciousStones.333] psReuse[0] psCreate[0] psSize[0]
    2011-05-16 23:39:24 [SEVERE] Closing Connection[PreciousStones.333] that is already closed?
     2011-05-16 23:39:34 [SEVERE] RESOLVED FATAL: DataSourcePool [PreciousStones] is back up!
    2011-05-16  23:39:34 [INFO] Reseting DataSourcePool [PreciousStones] min:2 max:20  free:0 busy:0 waiting:0 highWaterMark:3 waitCount:0 hitCount:3142
    2011-05-16 23:39:34 [INFO] Busy Connections:
    
    2011-05-16 23:39:34 [INFO] DataSourcePool [PreciousStones] grow; id[PreciousStones.334] busy[1] max[20]
    2011-05-16 23:39:34 [INFO] Closing Connection[PreciousStones.334] psReuse[0] psCreate[0] psSize[0]
      2011-05-16 23:39:54 [INFO] DataSourcePool [PreciousStones] grow; id[PreciousStones.335] busy[1] max[20]
    
    Any clue what would be causing this?
     
  23. Offline

    phaed

    Never seen this before, but from the looks of it the connection to the MySQL server is timing out. Contact your host.
     
  24. Offline

    NEO

    @phaed

    I've given users the bounce and launch nodes but they still cant use the sky cannon or launch pad. Ive also tried adding users to a field manually and still nothing. Perhaps im overlooking something, or not understanding what these nodes do.

    PS 4.2.1 CB 766
     
  25. Offline

    Guvnors

    Any one help?
     
  26. Offline

    Maxis010

    Contact BroHoster and see if you do actually have a MySQL database, if you do then ask them for the access details and overwrite those in the bukkit.yml, I was with brohoster until just recently (moved to VPS) and I was never told about having a MySQL database available to me
     
  27. Offline

    phaed

    Code:
    database:
        username:MICH****
        isolation: SERIALIZABLE
        driver: com.mysql.jdbc.Driver
        password: *delete*
        url: jdbc:mysql://mysqlhost/TC64615875372210512388343
    
     
  28. Offline

    Meteo

    Sigh...... i wish this used SQL or something thats not MySql, to complicated and errors for me... i missed precious stones being without MySql... at least its a good plugin...
     
  29. Offline

    Guvnors

    MMm doesnt seem to be working, is there a way I can get the older version of PS now?
     
  30. Offline

    phaed

    You give up pretty easily... Paste your bukkit.yml through here, you probably have some formatting errors: http://yaml-online-parser.appspot.com/. If there is none then contact your host to get you set up.

    We no longer support the old versions. You're going to have to find them elsewhere.
     
  31. Offline

    IOn Vash

    say is it just me or does it no longer check for orphans on startup?
     
Thread Status:
Not open for further replies.

Share This Page