QS silkerspawner support. And API. #99


  • New
  • Enhancment
Open
Assigned to netherfoam
  • _ForgeUser7485526 created this issue May 28, 2013

    What version of QuickShop are you using?
    latest
    What version + build of Bukkit are you using?
    latest beta

    What is the issue?
    I would like you to add support for silkspawner's spawners. Also API, if it doesnt have it when I go to look at your source.
    When the server reloads it destroys all the shops. Unsupported characters or something.

    Copy paste your config:
    I don't need to post this right?

    Copy paste your error log, if any:
    2013-05-18 10:30:30 [INFO] [QuickShop] Enabling QuickShop v4.3
    2013-05-18 10:30:30 [INFO] [QuickShop] Hooking Vault
    2013-05-18 10:30:30 [INFO] [QuickShop] Starting item scheduler
    2013-05-18 10:30:30 [INFO] [QuickShop] Limit cfg found...
    2013-05-18 10:30:30 [INFO] [QuickShop] Limits.use: false
    2013-05-18 10:30:30 [INFO] [QuickShop] {quickshop.vip=20, quickshop=0}
    2013-05-18 10:30:30 [INFO] [QuickShop] Loading shops from database...
    2013-05-18 10:30:30 [SEVERE] org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
    in "<string>", position 144
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    2013-05-18 10:30:30 [SEVERE]     at org.maxgamer.QuickShop.Util.Util.deserialize(Util.java:370)
    2013-05-18 10:30:30 [SEVERE]     at org.maxgamer.QuickShop.QuickShop.onEnable(QuickShop.java:213)
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:282)
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:264)
    2013-05-18 10:30:30 [SEVERE]     at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:304)
    2013-05-18 10:30:30 [SEVERE]     at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:283)
    2013-05-18 10:30:30 [SEVERE]     at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:243)
    2013-05-18 10:30:30 [SEVERE]     at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:151)
    2013-05-18 10:30:30 [SEVERE]     at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382)
    2013-05-18 10:30:30 [SEVERE]     at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
    2013-05-18 10:30:30 [SEVERE] Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed
    in "<string>", position 144
    2013-05-18 10:30:30 [SEVERE]     at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70)
    2013-05-18 10:30:30 [SEVERE]     at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50)
    2013-05-18 10:30:30 [SEVERE]     at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    2013-05-18 10:30:30 [SEVERE]     at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    2013-05-18 10:30:30 [SEVERE]     ... 13 more
    2013-05-18 10:30:30 [SEVERE] [QuickShop] Error loading a shop! Coords: world (-1762, 68, -3827)...

    What did you do to cause this issue?  Can you repeat it? (If you can't repeat it, neither can I, don't bother posting a ticket about it)
    Server reloads break all the spawner shops

    If any relevant:
    * What version of Vault are you running?
    * What economy and economy version are you running (E.g. BOSE or iConomy 6)

  • _ForgeUser7485526 added the tags New Enhancment May 28, 2013
  • _ForgeUser7485526 posted a comment May 28, 2013

    ALL the SPAWNER BLOCK SHOPS. Not all shops. Sorry. That was poorly explained on my part. I hope this is fixable?

  • netherfoam posted a comment May 28, 2013

    This is very weird. I assume the spawner shop is the shop at Coords: world (-1762, 68, -3827)... Right?

    Because the error says that (essentially) you have some strange text in your items info (I serialize shop items into Bukkits YAML equivilants for storage in the DB) which implies that your spawner has a strange character somewhere in it, say a non ascii letter. Which is strange. What plugin are you using to handle spawners of different types?

    Lastly, try delete your shops database and use the latest beta version, I think it has a fix for the error... Which could possibly mean spawners will work. It will remove all shops and all shop locks though. (alternatively, you could checkout the query discussed here if you use mysql and run it, which would save you deleting your shops: https://github.com/netherfoam/QuickShop/issues/19 )

  • _ForgeUser11022559 posted a comment May 30, 2013

    I encountered this exact error with one of my shops. The item being sold was a book containing the server's rules. The shop functions just fine until the server restarts and QuickShop goes through loading the shops. It's possible it's due to the fact that there are color codes in the book? I'm not entirely sure.

  • netherfoam posted a comment May 30, 2013

    @KittyTristy: Go

    Colour codes load fine in lore tags, I would assume they load fine in book data. Its possibly a different special character.

  • _ForgeUser11022559 posted a comment May 30, 2013

    @netherfoam: Go

    So I did a bit of digging, and this is how the book metadata shows in QuickShop's database. http://pastebin.com/MTbCd8UC

    This book is spawned by FirstJoinPlus, which creates the book from a txt file, and this is the original data entered into that file. http://pastebin.com/vYJ87jwe

    The color code character for & is changing to �� somewhere during all of this.

    Just to test, I tried creating the book manually in-game using color codes, using the Minecraft default § character for the color codes, and the exact same error occurred with that book. :/

  • _ForgeUser11022559 posted a comment May 31, 2013

    It looks like it may have something to do with not having this arguement "-Dfile.encoding=UTF8" in my server startup script on Linux. When I get an opportunity to restart my server, I'll let you know if it fixes the issue.


To post a comment, please login or register a new account.