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

    phaed

    Well there goes any chance of getting any help from me. BTW If you take a look at ownblock's source code you will soon realize that their idea of a database is a hashmap serialized into a single binary file holding all the block data. This is bad. Good luck recovering your saves when this file becomes corrupted (it will). Performance-wise it doesn't take a genius to figure out that polling one hashmap that contains all 4 million of your blocks on every block break isn't the best of ideas. All-in-all OwnBlocks is a good try at imitating the unbreakable blocks functionality of PS, unfortunately it doesn't even come close. With the size of your block collection, 4mil, you will get even worse results from OwnBlocks. Good luck with that.

    P.S. Pstones is free, and is a work in progress, I put hundreds upon hundreds of my own time into it, you're not paying me and no one else is. Now unless you are willing to pay me ($35/h, $47.5/h-ot as per my day job) stop being an ungrateful fuck bad mouthing me and mine when you don't get your way when and how you want it. I owe absolutely nothing to you.

    For everyone else: I am working on an upgrade that will selectively load the block DB data into the ram collection as they are needed. What it would do is it would only pull the pstone data from the db for the currently loaded chunks, then on every chunk load it would add more to the ram collection, on chunk unloads it would add that chunk''s pstones to the remove list. Every 30 minutes or so a scheduled job will garbage collect those pstones and remove them from ram.

    Pstones will use far less ram and servers with millions of pstones will be able to run much more efficiently.
     
    aPunch likes this.
  3. Offline

    spunkiie

    ungrateful ? WTF ?

    Put a fuckin' server online and present your players with a 3 days downtime due to a plugin that simple doesn't work.
    You are absolutely right when you say you dont owe me nothing. I was just giving people information/HOPE that there's an alternative to your non-paid (then not efficient) work.

    BTW: I'm cross posting this on OwnBlocks thread, perhaps developers have another opinion about it.
     
  4. Offline

    phaed

    Non paid then non efficient? Before I retired I was one of the most efficient plugin devs around. I came out of retirement to bring precious stones into a stable state. PStones works for mostly eveyone out there. You are an edge case who decided to stress the system and put cobble and stone or whatever you did to come up with a 4 million unbreakable count. Things have limits.

    Nothing in your post just now refutes the fact that you are an ungrateful ass. You used my plugin, benefited from my help, then when I'm not around to fix things you come and start spewing hatred all over this thread. You did a fine job of deleting all those posts, but if you look back you can still see where some people quoted you. Regardless you are the worst kind of user, the ones who take the benefits you give them for granted and only come to you to harass you when that "free" thing you gave them doesn't work exactly as they want it to.

    P.S. Cross post all you want. There is nothing I said that is not factual about OwnBlocks.
     
  5. Offline

    aPunch

    I've looked back at some of your posts in this thread, and it's obvious that you don't like PreciousStones. But, please, keep your terrible attitude and poor language out of here. This is a Bukkit plugin thread, not a bar fight.
     
    MacVaultDweller likes this.
  6. Offline

    Haekon

    KK..so everything's gravy so far.

    I did get an error.

    Code:
    [Lnet.minecraft.server.Statistic;@375212bc
    146 recipes
    [Lnet.minecraft.server.Statistic;@375212bc
    16 achievements
    21:11:11 [INFO] Starting minecraft server version Beta 1.5_02
    21:11:11 [INFO] Loading properties
    21:11:11 [INFO] Starting Minecraft server on 127.0.0.1:22222
    21:11:11 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02)
    21:11:11 [INFO] Preparing level "terminus"
    21:11:11 [INFO] Preparing start region
    [B]21:11:12 [SEVERE] ebean.properties not found[/B]
    21:11:13 [INFO] DataSourcePool [PreciousStones] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    21:11:13 [INFO] DatabasePlatform name:PreciousStones platform:mysql
    21:11:13 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    21:11:13 [INFO] Entities enhanced[0] subclassed[6]
    21:11:14 [INFO] creaturebox version 0.7.3 is enabled!
    21:11:14 [INFO] [TeslaCoil] version 1.3.5 by [Darklust] Loaded
    21:11:14 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    21:11:14 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    21:11:14 [INFO] Fake Permissions version 2.5.1 is enabled!
    21:11:14 [INFO] [VoxelSniper] Config loaded
    21:11:14 [INFO] VoxelSniper version 4.683 is enabled! Snipe away.
    21:11:14 [INFO] [PreciousStones] version [4.0.1] loaded
    21:11:14 [INFO] [PreciousStones] terminus fields: 0
    21:11:14 [INFO] [PreciousStones] terminus unbreakables: 0
    21:11:15 [INFO] [PreciousStones] nether fields: 0
    21:11:15 [INFO] [PreciousStones] nether unbreakables: 0
    21:11:15 [INFO] Loaded Essentials build 2.2.15 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    21:11:15 [INFO] Loaded EssentialsProtect build 2.2.15 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    21:11:15 [INFO] [MagicCarpet] MagicCarpet version 1.5.5 is enabled!
    21:11:15 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    21:11:15 [INFO] [MagicCarpet] Using Permissions.
    21:11:15 [INFO] [ItemDetector] Permission plugin found, Adding these
    21:11:15 [INFO] ItemDetector version 1.0 is enabled!
    21:11:15 [INFO] Loaded EssentialsSpawn build 2.2.15 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    21:11:15 [INFO] Loaded EssentialsChat build 2.2.15 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    21:11:15 [INFO] Done (0.385s)! For help, type "help" or "?"
    >
    
    I'm guessing is this happened:

    I went to follow the instructions, where it said
    • Place the bukkit.yml in the same folder that contains the craftbukkit-0.0.1-SNAPSHOT.jar
    But...there was already one there. Renamed it BAKbukkit.yml, and copied the file from the pstones zip in its place.

    Got the error, but everything seems to be gravy so far. After I ran the server the first time, and pstones ran its script for creating tables, then
    Code:
    settings:
        update-folder: update
    
    ...got added alongside the database entry.

    The old one had this:
    Code:
    settings:
        update-folder: update
    database:
        username: bukkit
        isolation: SERIALIZABLE
        driver: org.sqlite.JDBC
        password: walrus
        url: jdbc:sqlite:{DIR}{NAME}.db
    ...and wasn't kicking any errors before I added pstones. Again...it's just an error in the log. It hasn't spat anything besides that, YET.
    I just want to make sure this isn't something that's going to bite me in the ass later.

    Sry for Wall O'Text.
     
  7. Offline

    phaed

    Ah, you have nothing to worry about, everyone gets that, its a side effect of ebeans the persistence system bukkit uses. This error comes up to everyone using ebeans, disregard.
     
  8. Offline

    Haekon

    Cool. Thanks, Phaed.
     
  9. Offline

    NEO

    I have nothing in any of my mysql tables, ive created several pstones and on restart they seem to no longer work.

    CB 740, PS 4.0.2
     
  10. Offline

    phaed

    The tables get created but never get populated? Try to place a few pstones and type /ps save. Do they show up on your tables then?
     
  11. Offline

    NEO

    Correct, after placing several pstones then using /ps save they still dont show up in the tables.
     
  12. Offline

    phaed

    Happens to both fields and unbreakables? Using MySQL not sqlite yes? Does can you verify that your db's user has insert permissions?
     
  13. Offline

    NEO

    Yes both force fields and unbreakables. Im using mysql not sqlite. I use mysql for allot of plugins, im positive i have the appropriate permissions.
     
  14. Offline

    Micze

    Have ran 4.0.1 for a while now, an immense improvement from 3x i have overall lower cpu usages now. I only use area protect blocks (message, -fire, -protect, -destroy ) though the other functions i have no ideea about ^^


    also spunkiie should put a sock in it.
     
  15. Offline

    MacVaultDweller

    PS was the reason I abandoned my old server wrapper and came to use craftbukkit
    It is the cornerstone of my server and has been the most useful and creative plugin that I have
    Unfortunately I am unable to upgrade to version 4.0.2 to to my ignorance and inability to get my
    bukkit.yml configured correctly so that craftbukkit can access and utilize it. I am using
    Mac OS X 10.6.7 and MAMP cb 740

    I'm not alone in my troubles other mac users are in the same boat and we simple need a little help.
    Not insults. Sorry if I was not born with the inherent knowledge to keep up with bukkit and plugin changes.
    So I say forgive me for my ignorance I simple need a little help to continue using craftbukkit plugins that are switching over to mysql data bases

    UPDATE!
    I just got it to work thank you phaed for the indirect assistance the trail of bread crumbs in your posts were best source of assistance.
     
  16. Offline

    Nananea

    Having so many problems getting this working with Brohoster. I know it's not your fault Phaed and I wouldn't be going through all these tickets if I didn't really want it working but ugh what a nightmare :(
     
  17. Offline

    Don Redhorse

    one question about using persistence... who will it interact with bukkit persistance? As I can only use one database with bukkit persistance all data (that of preciousstones and any other bukkit stuff) will go into the same database.

    Did you use a good table naming standard?

    I don't want to find out later that preciousstones clashes with bukkit or other plugins.
     
  18. Offline

    phaed

    Yes basically all use the same db these are the table names:

    [​IMG]
     
  19. Offline

    DarKMaKa

    So how wre add somone in the DB?
     
  20. Offline

    Maxis010

    All I was say to prevent any possible clash is to prefix those with ps_
    Not a major issue, just a notion
     
  21. Offline

    Nananea

    Having this same problem after getting it configured. Server is throwing this after a restart as well

    2011-05-11 18:16:25 [INFO] Can not test connection as heartbeatsql is not set
    2011-05-11 18:16:25 [INFO] Closing Connection[PreciousStones.1] psReuse[0] psCreate[3] psSize[3]

    Could be a Brohoster issue, not sure. I know nothing about MySQL.
     
  22. Offline

    phaed

    Sounds like its not detecting your db. Make sure that the url in the bukkit.yml is pointing to the mysql server. If I were you I would send them an email. They host Minecraft servers they should know how to configure bukkit's persistence and provide support. If they don't do this yet, there's not better time to start.
     
  23. Offline

    piousminion

    A few questions.

    Will it import the old non-mysql saved pstones?
    Why "bukkit.yml" instead of "pstones.yml"?
    and why in the root folder instead of "/plugins/PreciousStones"?

    Other than these few simple questions I should have no trouble adapting. :)
     
  24. Offline

    phaed

    1) Yes it will import your old safe file.
    2) Because i'm using bukkit's persistence system, ebeans.
    3) read 2

    PreciousStones 4.1pre

    Huge performance improvement.

    A single obsidian block is placed at the bottom corner (under bedrock) of chunks that contain pstones . This marker is then used to restrict the chunks polled when events are fired, ignoring entire sections of the world, basically giving a thousand fold improvement in CPU usage.

    Download

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

    DarKMaKa

    I'm using 4.1 and I've got:

     
  26. Offline

    phaed

  27. Offline

    DarKMaKa

    Ok, Thanks!

    Ok, now when somone log on the server, I've got an error that never stop until there is no one on the server:
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  28. Offline

    phaed

    This is a common error that happens when you remove or change a field's block id in the config file without updating your database.

    You must delete from the database all fields having block ids that no longer exist in your config.yml:
    Code:
    delete from fields where type_id = '99'
    
     
  29. Offline

    DarKMaKa

    Ok, you toadly rock!
     
  30. Offline

    Nananea

    Finally got my server to not throw any errors, MySQL is set up and working for all the other plugins well...and PreciousStones still isn't saving. I hate to abandon it because it has the exact customization I'm looking for but man I'm about 5 seconds from killing myself omg :(
     
  31. Offline

    GmK

    But wouldnt have to replace the ids in the db instead of deleting the fields?
     
Thread Status:
Not open for further replies.

Share This Page