[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

    croxis

    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.

    [​IMG]


    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.
    Commands
    • /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.
    Changelog:
    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

    Graven_rush

    Heyo, One question. i have never been able to successfully find a mySQL download that is for minecraft. let alone figure out how it works. yes, im a noob. any advice as to where to go to get mysql and how to set it up?
     
  3. Offline

    croxis

    I'd advise staying away from mysql if you don't have some experience how to use it. MySQL is an application that manages databases. There is no such thing as a mysql for minecraft, MySQL is its own thing. You will need to get the application for your os, then configure bukkit/plugins to connect to it.
     
  4. Offline

    croxis

    Updated to 0.4. Started new version system for the custom towny builds (hopefully I will have a patch ready for them soon). Build numbers are Townyversion e Buildnumber, in this case 0.74 e 2, for towny 0.74 experimental build 2.

    Towny: Added additional custom events to api. Added a fix for renaming nations when using sql databases.

    TownySpout: Added ability to add cape/music/textures for the wild. Added ability for national music/cape/textures, which can be overrides by individual towns. Individuals can set their own cape or music (no texture) for their personal residence plots. This overrides town and nations.


    Also, I would like to start using maven/jenkins for Towny Spout and my experimental towny, however I do not know how to include external jars into the build system (iConomy, Questioner, etc). Any tips on if this is possible or not?
     
  5. Offline

    fatmarley

    @croxis this happens for every log in.


    Show Spoiler
    2011-08-18 15:49:14 [SEVERE] com.palmergames.bukkit.towny.NotRegisteredException
    2011-08-18 15:49:14 [SEVERE] at com.palmergames.bukkit.towny.object.TownyWorld.getTownBlock(TownyWorld.java:64)
    2011-08-18 15:49:14 [SEVERE] at com.palmergames.bukkit.towny.object.TownyWorld.getTownBlock(TownyWorld.java:85)
    2011-08-18 15:49:14 [SEVERE] at net.croxis.townyspout.listeners.TownySpoutPlayerListener.onPlayerJoin(TownySpoutPlayerListener.java:43)
    2011-08-18 15:49:14 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    2011-08-18 15:49:14 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-08-18 15:49:14 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-08-18 15:49:14 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  6. Offline

    croxis

    @fatmarley, What database are you using?
     
  7. Offline

    Daxiongmao87

    I love the idea behind this plugin, question: Can players set their own anthem by providing a URL to that command? Or does it have to be preconfigured in the server config?
     
  8. Offline

    croxis

    It is "preconfigured" although someone who has townyadmin permissions can add new nodes in game. I figured most server owners don't want porn randomly playing than those who do ;)
     
  9. Offline

    Daxiongmao87

    good point! thank you
     
  10. Offline

    fatmarley

    @croxis I have both bukkit and towny setup to use mysql..I have check via phpadmin and it has connected and created some databases, but the error persists.

    Also, I tried to experiment a little and I changed the Towny db settings to another database, but it always default to the bukkit settings. Any way to work around that?

    One last question, is there any benefit to continuing to allow to connect to a mysql database?
     
  11. This add towny to spout lol.
     
  12. Offline

    croxis

    I forgot to ask. Is this a new database or one you converted with /townyadmin convert?

    I think the problem is I am trying to shoehorn relational databases into something that was designed for plain text databases. I'm getting errors for some data sets and not for others. As soon as I am done with this bloody job application I am going to take a closer look at how I am loading the database.

    Relational databases are, based on my understanding, less prone to errors than plain text databases. However at this time you can stick to flatfile and convert at a later date.
     
  13. Offline

    dark1256

    Code:
    2011-08-19 21:42:23 [SEVERE] Could not pass event PLAYER_JOIN to TownySpout
    java.lang.NullPointerException
        at com.palmergames.bukkit.towny.Towny.getDatabase(Towny.java:1061)
        at net.croxis.townyspout.AppearanceManager.setGlobalCape(AppearanceManager.java:47)
        at net.croxis.townyspout.listeners.TownySpoutPlayerListener.onPlayerJoin(TownySpoutPlayerListener.java:37)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I always get this error when I join the Server...
     
  14. Offline

    croxis

    @dark1256 I fixed this for 0.5 of TownySpout

    Towny 0.74e3 is released. The big change is for SQL is that it loads plots in a manner more similar to the plain text flatfile, which should hopefully fix some of the bugs. I also improved the code for when towns are deleted. Also added some documentation about the event api I added to towny.
     
  15. Offline

    emmick4

    Any Permissions support? I currently have it to where only 'Veterans' can start a town. Plus i don't want my Veterans Using /nationx etc.
     
  16. Offline

    croxis

    Towny's permission nodes are used. The UI is read only for non mayors, assistants.

    For the next two weeks I will be coaching band camp for a local high school. My availability will be very limited as they are 13 hour workdays for me.

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

    Flenix

    As far as custom textures go, could you give an option for a resolution (using a different pack set for different resolutions) or for players to disable?

    I love the idea, but the packs I made are all 128x, and I know not all players can run those packs. I'd like to give them the option to use the compressed 16x versions.

    Also, I've not installed yet, but whats the texture change like? does it reload your screen or is it just an instant switch? Maybe upload a video of it, I'm sure a lot of people are wondering :)
     
  18. Offline

    Owenfitz

    k so. i have the most recent version of spout, experimental towny, and townyspout, and it gives me this message and none of the townyspout commands work. what do i do?
    Code:
    19:41:20 [SEVERE] Could not pass event PLAYER_JOIN to TownySpout
    java.lang.NullPointerException
            at com.palmergames.bukkit.towny.Towny.getDatabase(Towny.java:1061)
            at net.croxis.townyspout.AppearanceManager.setGlobalCape(AppearanceManag
    er.java:47)
            at net.croxis.townyspout.listeners.TownySpoutPlayerListener.onPlayerJoin
    (TownySpoutPlayerListener.java:37)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:244)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration
    Manager.java:124)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  19. Offline

    ohtwo

    Geez, band camp is no joke huh?

    Anyway, can I safely convert TownyAdvanced files to your version of Towny?
     
  20. Offline

    Ben Penhalagan

    just one question, i want to have a cape for use with spout, but i select a url for it and it doesn't work. its a .png file, and it is 16x16 or whatever the default texture pack is. if there is a certain file extension it has to be, could you tell me which one it is please? also, is there a way to change your name while using towny, so that the chat name also shows custom nicknames as well as the name above the head?

    thanks.
     
  21. Offline

    croxis

    This is fixed for next version. I'll have time to work on getting it out this weekend.

    No need to convert at all, you can still use the default plain text flatfile

    Can you post the command you use to 1) add it to townyspout and 2) the command you use to use it in your town. And to get the first dumb question out of the way, you are using spoutcraft client?

    And I am very pink. I did get a job interview for friday though! *nervous*
     
  22. Offline

    darkcloud784

    Everytime i use /townyx it just says unkown command

    Edit:nvm, i didnt read your commands right -_-


    Is there a way to "confirm" your selection when you change something in your GUI. for me it doesnt seem to save it :confused:

    I get this when I log into the server =X
    Code:
    2011-08-26 08:15:24 [SEVERE] Could not pass event PLAYER_JOIN to TownySpout
    java.lang.NullPointerException
            at com.palmergames.bukkit.towny.Towny.getDatabase(Towny.java:1061)
            at net.croxis.townyspout.AppearanceManager.setGlobalCape(AppearanceManager.java:47)
            at net.croxis.townyspout.listeners.TownySpoutPlayerListener.onPlayerJoin(TownySpoutPlayerListener.java:37)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  23. Offline

    Owenfitz

    thanks but how is that different from everyone elses whos is working?
     
  24. Offline

    Rellac

    The wildset commands don't seem to actually do anything.

    I get no errors, no "unknown command" messages and nothing actually happens. Strange.


    The GUI also seems buggy. All the boxes are stretched out and don't do anything. Anything other than /townx gives me an "internal error" message with the following error:

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'nationx' in plugin TownySpout v0.4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at net.croxis.townyspout.NationXCommand.parseTownCommand(NationXCommand.java:54)
        at net.croxis.townyspout.NationXCommand.onCommand(NationXCommand.java:31)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 13 more
    
    I think I may have screwed up installing the dev build of towny.

    You can also click the link in my sig if you wanna look at the problems first hand.

    Also, what sound formats are compatable? I managed to get your zelda example to work, but I can't, for the life of me, get an mp3 file to work. I don't even know how to find ogg files. Conversion fails everytime. :oops:
     
  25. Offline

    Owenfitz

    is there any way to make a kingdom not only require a certain number of citizens but also a certain number of towns
     
  26. Offline

    larsy1995

    How do I set the wilderness music/tp/cape?
     
  27. Offline

    croxis

    Working on the code for Towny 0.75

    Due to all the changes in Towny, and limitations of bukkit's persistence engine, I'm discontinuing the SQLite/MySQL driver. My intention is to write a lower level driver that will make version upgrades and the feature creep a lot smoother. I have other priorities with this plugin this weekend however.

    You can revert your SQLite/MySQL database to the plain text flatfile by running and stopping the server with loaddatabase=bukkit and savedatabase=flatfile
     
  28. Offline

    alexandre

    Hi, Actually I have this error with TownySpout:
    Code:
    2011-08-28 11:53:49 [INFO] heavy_psycho [/127.0.0.1:50226] logged in with entity id 102 at ([world] 238.80792296699875, 102.0, 623.207031497316)
    2011-08-28 11:53:49 [SEVERE] com.palmergames.bukkit.towny.NotRegisteredException
    2011-08-28 11:53:49 [SEVERE]     at com.palmergames.bukkit.towny.object.TownyWorld.getTownBlock(TownyWorld.java:64)
    2011-08-28 11:53:49 [SEVERE]     at com.palmergames.bukkit.towny.object.TownyWorld.getTownBlock(TownyWorld.java:85)
    2011-08-28 11:53:49 [SEVERE]     at net.croxis.townyspout.listeners.TownySpoutPlayerListener.onPlayerJoin(TownySpoutPlayerListener.java:43)
    2011-08-28 11:53:49 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    2011-08-28 11:53:49 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-08-28 11:53:49 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.Packet1Login.a(SourceFile:43)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    2011-08-28 11:53:49 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-28 11:53:50 [INFO] [Spout] Successfully authenticated heavy_psycho's Spoutcraft client. Running client version: 102
    I use spout 1.0.2, craftbukkit 1060, and I follow the instructions of installation.
    Thanks for your help !!!!
     
  29. Offline

    larsy1995

    This plugin doesn't work anymore as of spout 1.5
     
  30. Offline

    croxis

    Updates!
     
  31. Offline

    tharvoil

    Just a random error report I started getting, looks like it's trying to use iconomy when i have boseconomy installed

    Latest RB of bukkit and spout 1.0.5

    Code:
    2011-08-29 14:01:10 [INFO] [PLAYER_COMMAND] tharvoil: /town new Hyrule
    2011-08-29 14:01:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'town' in plugin Towny v0.75.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at com.palmergames.bukkit.towny.command.TownCommand.newTown(TownCommand.java:780)
        at com.palmergames.bukkit.towny.command.TownCommand.newTown(TownCommand.java:756)
        at com.palmergames.bukkit.towny.command.TownCommand.parseTownCommand(TownCommand.java:115)
        at com.palmergames.bukkit.towny.command.TownCommand.onCommand(TownCommand.java:86)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
    
     

Share This Page