[INACTIVE][GEN] ShelfSpeak v0.7 - Dynamic Bookshelf Messages [860]

Discussion in 'Inactive/Unsupported Plugins' started by pyromanic, Apr 11, 2011.

  1. Offline

    pyromanic

    Well if you are sure you didn't use any single quotes then I need the text you did enter in order to test it and see what may be wrong.
     
  2. Offline

    Epolixa

    I'm having the same problem.
     
  3. Offline

    pyromanic

    Please give me the page, line, and text you are trying to save so I can run some tests. I have not been able to replicate the error.
     
  4. Offline

    Epolixa

    I think I'm doing everything right...

    I had a few bookcases on my server already, so I went ahead and typed "/shelfwrite" into the console. It told me to select my bookcase, as expected. After selecting my bookcase, it went into write mode, so I decided to just test it out by typing "/shelfline 1 hello" into the console. Without ending, I right-clicked my bookcase just to see what would happen, and it gave me a response indicating my text, page number, line number, etc, as it should. Then after typing "/shelfsave" into the console, I right-clicked again. Instead of getting my entry, the console told me that the bookcase "seems to be empty..."

    Am I doing something wrong?
     
  5. Offline

    pyromanic

    @Epolixa
    Thank you very much for the details. You do not seem to be doing anything wrong. I went through the same process you did (even with an unowned Bookshelf), but still no error on my end and the text saves. Is your error message the same as the one you quoted (near "s": syntax error)? Also, when you first go into write mode does a message appear saying, "[ShelfSpeak] You took ownership of the Bookshelf!"?
     
  6. Offline

    Epolixa

    Yes, the error message appears to be the same, and yes, I am receiving the "[ShelfSpeak] You took ownership of the Bookshelf!" console message.
     
  7. Offline

    pyromanic

    @bfanboy
    @Epolixa
    I just updated to v0.4. Please check to see if it fixes your problem. If it doesn't, I will keep trying.

    If anyone else has the same problem(or any other), please report it. I can't fix it if I don't know about it. Give a detailed report of the error.
     
  8. Offline

    Epolixa

    Nope, I'm still having the same problem :[

    Would it matter where I have SQLite saved in? Right now I just have it in my Minecraft Server folder, the same directory as the CraftBukkit Starter, etc.
     
  9. Offline

    pyromanic

    You need to download SQLite.zip from the OP and extract it to the same folder as Craftbukkit. After it extracts, SQLite should be in a folder called 'lib'. That could be the problem, but I would have expected to see an error sooner when the plugin was enabling.
     
  10. Offline

    Epolixa

    Okay, right. I re-did it. It's in the "lib" folder now, along with another folder called "native". However, it still is not working for me.
     
  11. Offline

    JamesS

    Upon reading some other posts, I figured out how to write in it, and its certinatly not how the commands state. At any rate, the spam in the chatlog would be the only downside to this other pretty decent mod (Once I got over my incompetency) If it could be made so its displayed in a format like when you are writing a signpost, that would be good. Maybe with optional tabs to flick through pages, it would make it easier on the eye I think.
     
  12. Offline

    pyromanic

    You're lucky I'm even responding to you after that BS. Just because you can't figure out how to use it doesn't mean the plugin sucks.

    Would you please upload your server log, or at least the errors so I can review them to better improve the plugin? I can't fix errors if I don't know what they are.

    If you're looking for something using the sign interface, then use IOBookcase. However, there is only a 10 line text limit. I made this plugin so players can store more than just 10 lines of text. Any changes to the GUI of the game (such as adding tabs to the sign interface) would require a client mod, which I have no intention of developing. I plan on making a 'how to' video eventually so users can understand how to use the commands.
     
    JamesS likes this.
  13. Offline

    Epolixa

    I'm going to check out the IOBookcase myself because this awesome plugin still won't work for me. I'll be checking in for updates and will let you know if it ever starts working...
     
  14. Offline

    pyromanic

    I'm sorry it isn't working for you. I have it running on 2 servers currently (1 with 5+ people and the other with no plugins for testing) and have not ran into any problems. If you could upload your server log or the error you recieve, then that could possibly give me some more insight into the problem.
     
  15. Offline

    Epolixa

    It was pretty much this.
     
  16. Offline

    TnT

    I read that as: "This mod is utterly AWESOME!" then I had no idea what you continued on complaining about.
     
  17. Offline

    pyromanic

    Lol, I wish he had put that.

    There is now an instructional video up on the OP.
    Here is the YouTube link: ShelfSpeak How To

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

    bfanboy

    Mine seems to be working after the update. Will continue to test.
     
  19. Offline

    JamesS

    The instructional video I think would be most appriciated, what I meant was though to have the text displayed in a different window as opposed to the chat, but I gather you're unable to do this, so its safe to say this is the best mod for bookcases to use.
     
  20. Offline

    pyromanic

    Thanks for the update! I'm glad it started working. Is it still going well?
     
  21. Offline

    Zenithas

    Hmm. I'm getting an error report, and people can no longer take ownership of shelves. Likewise, it's not saving text in shelves that ownership has been taken in.


    Code:
    2011-05-03 21:43:08 [SEVERE] Could not pass event BLOCK_PLACE to ShelfSpeak
    java.lang.NullPointerException
        at pyromanic.ShelfSpeak.ssDBAccess.insertShelf(ssDBAccess.java:168)
        at pyromanic.ShelfSpeak.ssDBAccess.writeShelf(ssDBAccess.java:150)
        at pyromanic.ShelfSpeak.AdvShelf.save(AdvShelf.java:235)
        at pyromanic.ShelfSpeak.ssBlockListener.onBlockPlace(ssBlockListener.java:38)
        at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:352)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
        at net.minecraft.server.ItemBlock.a(ItemBlock.java:74)
        at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-03 21:43:09 [SEVERE] Could not pass event BLOCK_PLACE to ShelfSpeak
    java.lang.NullPointerException
        at pyromanic.ShelfSpeak.ssDBAccess.insertShelf(ssDBAccess.java:168)
        at pyromanic.ShelfSpeak.ssDBAccess.writeShelf(ssDBAccess.java:150)
        at pyromanic.ShelfSpeak.AdvShelf.save(AdvShelf.java:235)
        at pyromanic.ShelfSpeak.ssBlockListener.onBlockPlace(ssBlockListener.java:38)
        at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:352)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
        at net.minecraft.server.ItemBlock.a(ItemBlock.java:74)
        at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Minecraft server 1.5_02, CraftBukkit #740

    Edit: Also, made sure it's the most recent build for ShelfSpeak (0.4), and that SQLite is still functioning.
     
  22. Offline

    pyromanic

    Thanks for the report! Does that error only occur when placing new blocks? I may have found the error.
     
  23. Offline

    Zenithas

    I thought it did, but I also found:

    Code:
    [SEVERE] [ShelfSpeak] Error on DeleteShelf, getShelfID returned 0
    A lot when removing bookshelves.
     
  24. Offline

    Bhikku

    I´m that dumb or how i can skip pages? just wrote 3 pages with random text,using works, error only occurs @serverlog, but it works. But how skip a page?
     
  25. Offline

    TBK

    With 740 I get this error message in the console all the time "Could not pass event PLAYER_MOVE to ShelfSpeak".
     
  26. Offline

    pyromanic

    I'm fairly sure this happens as a result of the first error you posted so it will likely be fixed once I fix the BLOCK_PLACE error.

    Please post the error from the server log. You read a page other than page 1 by using the '/shelf' command with a page argument. Ex. '/shelf 3' allows you to view page 3 after you right click on the bookshelf when it asks you.

    Please post the entire error from the server log so I can see what might be causing it.

    Code:
    2011-05-03 21:43:08 [SEVERE] Could not pass event BLOCK_PLACE to ShelfSpeak
    java.lang.NullPointerException
    
    v0.5 update is a fix for this error. The error is not major as it does not prevent users from saving text to a bookshelf. It was pretty much just a server spammer.

    I am currently on my summer break for college (which is only a week since I have summer semester) so I doubt any major updates will be taking place in the next week or so unless there are major problems.

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

    TBK

    I hope it is enough the figure out the issue:
    Code:
    2011-05-05 18:41:14 [SEVERE] Could not pass event PLAYER_MOVE to ShelfSpeak
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getPermissionInteger(Control.java:1066)
        at pyromanic.ShelfSpeak.ssPermissions.maxRadius(ssPermissions.java:116)
        at pyromanic.ShelfSpeak.ssPlayerListener.onPlayerMove(ssPlayerListener.java:110)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:242)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:130)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Otherwise just ask again, and I'll try to provide whatever you need.
     
  28. You asked for feedback.. well, I love the idea of this.. but since Notch's UI is so limited, what I'd want to do is make a few with titles, THEN edit the data file to paste in paragraphs from books, stories etc at my leisure.
    Thing is, if we have to use SQlite, I can't edit it can I? Without some other tool?
    If flatfile were an option I'd like it. And I don't think having even a few dozen bookcases would slow the server down *at all* to require using SQlite for it. Just my opinion, but yeah I'm really interested in having something like this to help server roleplay etc. I just don't wanna type it all out from inside minecraft like signs which are a pain.
    Thanks for making it!!!! I'll keep watching!
    p.s. Ok I read more of the thread and the video and I see you can edit the files manually - not sure what SQlite is used for then but nm - what I also spotted is having to type /shelfwrite etc etc 1000 times is a waste when you could have the command (or an alias) of just /s 1 etc especially since you "need" to be in "write" mode to use it anyway.
     
  29. Offline

    pyromanic

    @TBK
    I believe the error you're receiving is actually a problem with Permissions. I have reported the error.

    There are no longer files storing Bookshelf data, so you actually can't go edit them manually at the moment unless you have an SQLite database editor (although I don't recommend this unless you fully understand SQL databases). I actually plan on adding a command that allows you import a text file to set the text of a Bookshelf in order to make things easier for admins. Another feature I was thinking about adding is the ability to set up a Bookshelf to redstone so when a player steps on a pressure plate it triggers the text or something.

    Originally, none of the write mode commands had the 'shelf' prefix. I changed this in order to prevent any conflicts with commands from other plugins. I wanted to keep it short, but I'd rather be sure there are no conflicts.

    I really appreciate your feedback! If you have any other suggestions, just let me know!
     
  30. Offline

    Zenithas

    I may be blind, you don't have a sourceforge account, correct?

    Some concept ideas:

    -1-

    A variable for the shelf, that tracks how many times you've "read" that shelf for the past 180 seconds. Each time it's read, it adds an integer to the "/shelf read X" command.

    Click once, read first page. Click again, read second page. So and so forth, with an if/then error container - instead of an error message, accessing a variable integer higher than the number of pages (/shelf read 4 on a three-page shelf, for example) redirects to 1 again. /shelf read 1 instead of "page does not exist

    -2-

    Book transition command. Using a book item on a shelf you own will copy the contents of that shelf. If used on a 'blank' shelf that you own, it instead pastes the contents to the new shelf. Makes for easier transition of shelving.

    -3-

    Text file importing. I can work on the SQLite when I have time, to allow a transition importer, though this would need a lot of work, since I'd have to prepare to separate the text every few sentences, rather than every X letters. That way, words aren't cut in half just because the page turned. I would also request that suggestion -1- is implemented before this comes to pass, or -4-. Then, 200-page books will be viable. And libraries in Minecraft would be born...*

    -4-

    Custom location for shelf contents output. It'd need a whole new chat API, but it'd mean you could have more "page-y" pages.

    -5-

    Feather item interaction. Right-click with a feather, it performs a /line command for you, tracking what the last line was on that shelf. Would be great for people using a shelf as a diary.

    -6-

    Custom client version. Changes the whole ball game - so that your books now become the data storage artifacts, the shelf becomes a custom container. Similar to how this mod for SSP works, utilizing the same ideas as in ItemCraft for code. Would not be compatible with -2-, instead, taking the book out of the shelf and moving it would change the 'shelf contents'.

    * "But mom, I'm not playing Minecraft and slacking off! See, there's my study guide..."
     

Share This Page