[INACTIVE][FUN] TownySpout v0.4.1 -- Bringing Spout to Towny [SPOUT] [1060]

Discussion in 'Inactive/Unsupported Plugins' started by croxis, Aug 4, 2011.

  1. Offline


    TownySpout - Bringing Spout to Towny:

    This plugin is now inactive. There is another Towny-like plugin in development that I am switching to develop for. If anyone wishes to continue this project they are more than welcome to!

    Version: v0.4.1

    Note: For the next two weeks I am coaching a local high school marching band. These are 13 hour days and my availability will be very, very limited.

    Note2: One week of band camp done! I did the best I could to get some of the bug fixes out of the way and update to Towny 0.75.1 and Spout 1.0.5.

    This plugin brings the advanced functionality of Spout to Towny. Current features are limited to some fluff for the Spout client mod (town anthems, capes, etc) as well as a rich UI for the complicated Towny command interface.

    Towny needs additional code for custom events in order for TownySpout to work. Until my work on this is "finished" you are REQUIRED to use A CUSTOM version of Towny. Unfortunately the Towny developers are using SVN instead of git, so trivial pull requests are not possible. My version of towny also uses Register as well as MySQL.

    Current TownySpout Features:
    • Changes overhead titles to include nation and town names
    • Mayors and assistants can set town anthems that are played when a person enters a town. This applies to town texture packs as well.
    • Town capes for all members of a town.
    • Town texturepacks to create a unified look to the town.
    • Permission GUI for town mayors and assistants to adjust town permissions.
    • National anthems, capes, textures
    • Resident anthems and capes
    Planned Features:
    • GUI to replace all Towny commands
    Screenshot of current interface.


    Reporting Bugs and Feature Requests

    Report Experimental Towny Bugs here. Please do not report bugs to the other towny developers. They don't like me.

    Report TownySpout bugs and feature requests here.

    Update Experimental Towny
    SQL support is temporally discontinued. Before updating please run Towny 0.74.e3 with load-database=bukkit and save-database=flatfile. Then update to 0.75.1.ex.

    Update TownySpout
    From 0.2: Townyspout no longer requires mysql. It does require you to update experimental towny. You will need to drop the townyspout_towns table when upgrading. My apologies for the inconvenience, next time I will make the upgrade path smoother.

    Installation Instructions
    1. Download Experimental Towny (0.75.1.e1) (Source). Follow these instructions. Stop the server once completed.
    2. Download and Install Spout and SpoutClient.
    3. Download TownySpout (Source). No configuration needed.
    • /townyadminx set <music/cape/texture> name url -- Adds music, cape, or texture pack to the database for towns to use. The name is the name town mayors will use, url is the publicly accessible url to that item.
    • /townyadminx wildset <music/cape/texture> name -- Adds music, cape, or texture pack for non town members.
    • /townx set music [name] -- Sets town anthem to the song name, as defined by the configuration. Leave name blank to remove.
    • /townx set cape [name] -- Sets town cape to the cape name, as defined by the configuration. Leave name blank to remove.
    • /townx set texture [name] -- Sets town texture pack to the texture name, as defined by the configuration. Leave name blank to remove.
    • /townx -- Access the GUI
    • /nationx set <music/cape/texture> [name] -- See townx, applies to towns
    • /residentx set <music/cape> [name] -- See townx, applies to personal plots
    Towny Event API
    Pseudo documentation

    Known Bugs
    Experimental Towny
    • There is currently no support for custom titles, surnames, and disabling player and creature stomping. As soon as I find a sane way to update the database I will add those features in.
    Version 0.4.1
    • Updated to Spout 1.0.5
    • Reformatted Town GUI to improve readability. Some loss of functionality (the pvp/fire/mob buttons).
    • Tested on Towny 0.75.1.e1, but should continue to work with 0.74.e3
    Version 0.4
    • Added music/cape/texture for wild and non-town members
    • Added music/cape/texture for nations
    • Added music/cape for personal residences
    • Music/cape/textures are applied top down. Personal residences override town settings, and residence and town settings override national ones.
    • Requires Towny 0.74 Experimental Build 2
    Version 0.3
    • Added permission gui for towns
    • Dropped mysql requirement.
    Version 0.2
    • Added file nodes instead of arbitrary urls and commands to add them
    • Added town cape support
    • Added town texturepack support
    Version 0.1
    • Initial Release
  2. Offline


    Question, why didn't you ask the Towny developer to just implement the things you need to make TownySpout?

    I love this, I think you did a great job. But I am afraid, as Towny updates, this will lag behind...
  3. Offline


    Yeah agreed, you should pull request :)
  4. Offline


    I got a survival world but I can't find any setting to change TNT block damage there? >.>

    As in, due this, TNT doesnt destroy blocks..
  5. Offline


    They are using svn, which do not have pull requests. To submit new code to an svn project I have to create a patch file of the difference and hope that the trunk does not change too much in the time I was working on it. A good example of the kind of mess this makes is the OpenTTD modding scene.

    In the mean time I'm updating my version to keep it parallel to Towny development. However there haven't been any changes to trunk so I am thumb twiddling until there is. My hope is they update trunk with new versions.

    Once I am sure that I wont need me make any new additions to Towny, at least for a while, I'll create a patch file and submit a feature request.

    My server users submitted this bug to me yesterday. I'm hunting for it :)

    Unfortunately I can't seem to reproduce the error. I've tried as op, not op, mayor, not mayor, and boom happens every time. Can you provide more details, and set debug to true and paste the relevant output?

    Update to 0.3, op will be updated when this server stops waisting my time.

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


    it was a conflict with another plugin my apologies it has been fixed.

    Now all I hope for is it to grow stable. It seems to be very easy to break towny- one incorrect townfile = game over towny :\

    2011-08-10 23:50:48 [INFO] [Towny] Database: [Load] bukkit [Save] bukkit
    2011-08-10 23:50:49 [INFO] [Towny] Loading Error: Exception while reading world file Creative
    2011-08-10 23:50:49 [SEVERE] ca.xshade.bukkit.towny.NotRegisteredException: Paradise is not registered.
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.object.TownyUniverse.getTown(TownyUniverse.java:596)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.db.TownyBukkitSource.loadWorld(TownyBukkitSource.java:418)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.db.TownyDataSource.loadWorlds(TownyDataSource.java:164)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.db.TownyDataSource.loadAll(TownyDataSource.java:75)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.object.TownyUniverse.loadDatabase(TownyUniverse.java:679)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.object.TownyUniverse.loadSettings(TownyUniverse.java:637)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.Towny.loadSettings(Towny.java:248)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.Towny.load(Towny.java:260)
    2011-08-10 23:50:49 [SEVERE]     at ca.xshade.bukkit.towny.Towny.onEnable(Towny.java:104)
    2011-08-10 23:50:49 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-08-10 23:50:49 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    2011-08-10 23:50:49 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    2011-08-10 23:50:49 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    2011-08-10 23:50:49 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    2011-08-10 23:50:49 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-08-10 23:50:49 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-08-10 23:50:49 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-08-10 23:50:49 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-08-10 23:50:49 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-10 23:50:49 [INFO] [Towny] Loading Error: Could not read world data 'Creative'.
    2011-08-10 23:50:49 [INFO] [Towny] Error: Failed to load!
    2011-08-10 23:50:49 [INFO] [Towny] Version: 0.73.2 - Mod Disabled
  7. Offline


    Thats why I added MySQL ;)

    Towny just updated to 0.74, I'm now going to update experimental to match.
  8. Offline


    Ehhhm, I am using MySQL. It seems to simply incorrectly do a townfile on shutdown then fail to remove the corrupt townfile and crash instead.

    Also, I removed it and now it bugs about another townfile... Is this towny or some kind of rare issue?

    If this is Towny I ask myself how so many servers survive with it..

    Would it help if I would send you my database tables? Though I suspect it's towny not TownySpout, I even removed the spout part just to find out it is indeed the towny portion

    There you go, the YAML version of the database (Exported from PHPMyAdmin) I removed all references to Paradise so now it whines about Woodaria >.<

  9. Offline


    @jasvecht I owe you an apology. When I saw your post the stack trace was not visible and I assumed you were using towny's old flatfile (MySQL does not save "town files"). Two questions: did you start fresh with MySQL or did you convert from an old database? Is the yaml dump you posted before or after you tried to fix your database (very helpful by the way thank you)?
  10. Offline


    Fresh MySQL, didn't have Towny before.

    After, I removed "Paradise" from the listed towns in creative (two of them, in fact, he deleted and remade it which I suspect may be responsible for the error) the "Paradise" entry in the townlist and then the players with the ID set to Paradises' id. Oddly, this caused an error (exact same one it appears) with Woodaria.
  11. Offline


    I'll see if I can reproduce the error as soon as I update this version with Towny Advanced

    Well this is fun! While working on Experimental Towny I got SQLite and, I assume, H2 support. All I need to do is provide automatic upgrading for the database. Maintaining compatibility with the text flatfiles is a pain x.x

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


    Does this REQUIRE the client-side mod of spout?

    I do not see anywhere where it says yes or no..
  13. Offline


    Can you make it were you can set the plots with a shovel instead of them being already made? that would help a lot
  14. Offline


    It does not require it, however none of the features will be available unless you use SpoutCraft (the client mod).

    Towny is specifically designed around the premade plots. Is there something specific you are trying to do?

    I'm going camping tomorrow and wont be able to finish the 0.74 update in time. I'll continue work on Monday!

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


    Does that mean I should wait until you return to install this plugin?
  16. Offline


    too many requirments for this plugin as i dont use mysql or mysql lite cant seem to get the thing to work on the server tower alwaqys flags an error cant start mysql so i gave up and went back to flatfile lol
    But this is good and i would use it if i could
  17. Offline


    Yes we already made pre made plots on the server and towny never alines with it so we would have to restart the entire city could you please make it a optional thing to use like a wooden shovel or something?
  18. Offline


    Good plan, better be safe

    Considering your lack of effort formatting a proper sentence I am not surprised. Special software is not needed to use SQLite, in fact your bukkit server is probably using it now without you even knowing.

    I'm afraid that is not possible.

    And after the most stressful packing session I ever had, I'm off!
  19. Offline


    I was not disrespecting your plugin in anyway so why so snooty and rude and that sentence was wrote after getting up at 6 am to wake up with my son to get him fed, I was tired, so next time have a little more respect and try to be helpfull, rather than putting down.
  20. Offline


  21. Offline


    Awesome awesome awesome!
    Really this is great!
  22. Offline


    Because i'm a newbie, i don't know how to "install" mysql instead mysqlite in my bukkit.yml..Someone can give me a copy of the bukkit.yml text please? :/
    (Btw, an another great spout plugin, again. U guys are heroes of moderns times! [diamond])
  23. Offline


    its all a bit too complicated for me atm but if installing it gets simplified ill be sure to download it :)
  24. Offline


    @croxis Could you help me out and provide an example of bukkit setup for mysql..I cant seem to find a how-to.

    Also, why wouldnt towny make it owns db, and what changes will bukkit have if it is set to mysql??
  25. Offline


    Sorry guys, I'm trying to learn/figure out how to update the database for the new 074 towny features.

    Here is what I have for my bukkit.yml
        username: croxis
        isolation: SERIALIZABLE
        driver: com.mysql.jdbc.Driver
        password: myPassword
        url: jdbc:mysql://localhost:3306/minecraft
    Obviously tailor to your own needs.
  26. Offline


  27. Offline


    Please keep discussions here on topic to TownySpout

    Oi that was a headache. Towny finally updated to 0.74. Upgrade instructions in the op.
    TownySpout 0.3 hotfixed to use Spout 1.0.2

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


    How do I set the database.yml settings to use mysql? Could you please help me croxis, as the whole towny stuff stopped working correctly after the new update.
  29. Offline


    Just copy the settings from your bukkit.yml file, and put rebuild to false.
  30. Offline


    kk, thank you <3
  31. Offline


    "this mod" = Townysprout -_-...

Share This Page