[SEC/FUN/INFO] Towny v0.68 Fuzze Edition [818]

Discussion in 'Inactive/Unsupported Plugins' started by FuzzeWuzze, Apr 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    FuzzeWuzze

    Towny_FuzzeEdition:
    Version: v0.68

    Moderator Edit: Please direct your attention here for an updated version. This thread is now closed due to people spamming random things about how its not working.

    So this has been asked for many times so i decided to finally make this thread.
    This is related to Shade's brilliant Plugin Towny

    Since Shade has been MIA for a while now, and we dont know if hes coming back i've been trying to keep Towny afloat as best i can in hopes he does come back as i dont really have the RL schedule to much of anything other than maintain it to be usable.

    I hope in June once i have more free time if Shade still isnt back :'( to actually do a formal Github Fork and continue the project. So until then, dont bother asking for new features, as time allows the only thing i'll try to do is fix large glaring bugs that effect the mod. This is a very large plugin and Shade has spent a lot of time on it, so even when/if i do fork it will take some time to get fully up to speed on everything. For now i just have a basic understanding of how everything is interacting and enough debug skills to track down most bugs ;)

    How it works/Features
    -See Original Towny Page for Instructions on how to setup and Permissions.
    http://towny.xshade.ca/

    Read this page to learn what everything in the config does!
    http://towny.xshade.ca/configuration/config-values

    READ ME BEFORE POSTING BUGS OR ISSUES
    KNOWN "ISSUES" AND FIXES
    When reporting bugs, please use /townyadmin set debugmode on. Then perform the action and post or send me the log from your server. This will assist me in being able to fix the issue 10 faster, just simply saying "People can do X in my town when they shouldnt be able too" doesnt really help me at all and is impossible to replicate.
    • Permission cache errors
      • You didnt install Permissions properly, it creates a RENAMEME.yml file or something of the like when first started. This must be renamed to match your world name(for most people world.yml). Also you CANNOT have spaces in your world name. Test World is not an acceptable folder name, TestWorld is. Both towny and permissions dont like the Permissions YML file to have spaces.
    • /town top money causes exception
      • Your iConomy database is likely setup to still use sqlite. Ensure that your iConomy config file is setup to use database Type: H2SQL. A lot of people had issues with the sqlite to H2 conversion, if you still experience this error with it set properly your db may be corrupt. Back up your iConomy db and configs, then delete them all and allow iConomy to recreate them and see if it still happens. If it doesnt, your going to have to manually regrant people cash somehow as your iConomy database was corrupt.
    Permissions
    • towny.admin: User is able to use /townyadmin, as well as the ability to build/destroy anywhere. User can also able to make towns or nations when set to admin only.
    • towny.town.new :User is able to create a town (only is use when TOWN_CREATION_ADMIN_ONLY is on)
    • towny.town.claim : User is able to expand his town with /town claim
    • towny.nation.new :User is able to create a nation (only is use when NATION_CREATION_ADMIN_ONLY is on)
    • towny.wild.*: User is able to build/destroy in wild regardless if the config says no.
    • towny.wild.build
    • towny.wild.destroy
    • towny.wild.switch
    • towny.wild.item_use
    • towny.wild.block.[block id] : User is able to edit [block id] in the wild.
    • towny.spawntp :Use /town spawn when allow_town_spawn=false
    • towny.publicspawntp : Use "/town spawn [town]" (teleport to other towns) when allow_town_spawn_travel=false.
    GitHub
    https://github.com/fuzzewuzze/Towny

    IMPORTANT INFORMATION-READ ME BEFORE UPDATING PAST .63
    All versions .64 and after will require iConomy 5.0 and higher. When making this initial transition it is HEAVILY advised that you back up your h2 and MySQL database's. I tested as well as i could with various functionality within Towny and it seemed to be working as expected. Also note that a ton of plugins that use iConomy are still broken, so unless they ALL work i wouldnt suggest updating. You've been warned. Dont cry if something bad happens and you dont have a backup of your iConomy database ...
    • PLUGINS COMPILED/TESTED AGAINST(Recommended Versions)
      • Essentials 2.2
      • Permissions 2.7.4(DO NOT USE 3.X!)
      • iConomy 5.01
    • (JAR ONLY) Latest Build(.68) HERE
    IMPORTANT INFORMATION-READ ME BEFORE UPDATING PAST .63
    • V.61
    TODO:


    • Fix /towny top money from crashing towny
    • Investigate potential issues with build/destroy permissions.
    BUGS:

    • /town spawn will not charge players
    • DO NOT GIVE PLAYERS TOWNY.WILD.* permissions. Give players permissions by editing your config file by editing these. If players have wild permissions they can do funny business to get permission to build in other peoples towns.
      unclaimed_zone_build=false
      unclaimed_zone_destroy=false
      unclaimed_zone_item_use=false
      unclaimed_zone_switch=true
    • Some people are reporting a lot of [SEVERE] warnings related to Player_Item and Player_Move, i believe these are being triggered by other mods. If you are having this issue please list your other plugins.
    Changelog:

    Version .68
    • Compiled for CB818 (Minecraft 1.6.6)
    • Disabled town renaming (finally)
    • Do not use Permissions 3.0.x with Towny yet, there are still some MAJOR issues with the rework they are doing and a ton of people are nerd raging on their thread. I couldnt even get it to create my config or default files they were always blank, and i guess a ton of other people are having the same issues. Still didnt work when following instructions on how to make the file yourself. Because 2.7.4 works perfectly fine with CB818 im not in a rush to upgrade until they figure out their issues. Sorry if this causes plugin conflicts if some require Permissions 3.x but i doubt it will as not many mods are moving to it in its badly broken state. Because Towny is so heavily dependent on a lot of Permissions nodes being read properly i decided to stick with 2.7.4 for now. Ill work on a 3.x permissions build as soon as i feel its functioning properly.
    Version .66
    • Compiled for CB766
    • Players no longer need to /town set spawn, when a player does /town spawn they automatically go back to their town. Need to figure out how to re-implement the essentials teleport timer cooldown they changed their API
    Version .64
    • Updated to use iConomy 5.0+, BACKUP YOUR DATABASE FILES BEFORE UPGRADING.
    Version .63
    • Really fixed /town spawn!
    Version .62
    • First Official Release by Fuzze!
    • Fixed /town spawn INVESTIGATING
    • Fixed /towny map
    • Verified all permissions are working properly. I ran it on my test server and tested resident build/destroy/switch and outsider build/destroy/switch by using /town set perm and turning them on and off and trying them out. ALL the permissions acted as they should. This should put to rest a lot of bugs people are having with people building. This doesnt mean Towny is using the default_town_build=false config lines properly for new towns, thats next. It does mean if your mayor sets the options manually it works.
    Version .061R6
    • Disabled /towny top money for towns/nations until able to fix bug related to null iConomy accounts, I have a feeling its related to iConomy databases that were SQLite and transitioned to H2 like my own. It *should* work fine for Residents, so far i havent seen null resident returns.
    Version 0.61R5


    • Updated to work with CB670
     
  2. How are you even compiling it without questioner.jar?

    I found the source to questioner burried in another set of shades utils, but I'm lacking experience with ecplise to get either to compile.

    Heck I can't even get it to let me do a build.
     
  3. Offline

    croxis

    Here is Questioner.jar Just download it and in the project --> properties --> buildpath --> libraries add it as an external jar
     
  4. Thank you, I've been trying all night to get the damn questioner jar to compile from the ancient source I found.
     
  5. Offline

    croxis

    Actually, do you mind sending me the source? I might be able to bring it up to date.
     
  6. You'll find it here, under the Invite section. - https://github.com/Zren/Bukkit-Plugins
    Not a seperate source which is why I've been ages attempting to extract it and get it to compile. If you manage, let me have a copy please.
     
  7. Offline

    nacs

    Oh my, SQL would be a dream come true (if by SQL you are talking about switching the current 1000s of text files that are created then get broken then throw out an entire town ("Townname Ruin") when the least bit of data doesn't match up correctly).

    So, yes, a yaml config file would be nice but SQL would be amazing and would solve so many problems with Towny!

    In any case, about to try your unofficial version of Towny, thanks for creating it.
     
  8. Offline

    LlmDl

    Thank you for picking this up. I'm currently OPing the #towny IRC channel. If you want to drop in there I've got a few things that should/could be added to a future build of towny. Just fixes/missing bits.
     
  9. Offline

    croxis

    Current Status report:
    Changelog so far:

    The following configs are depreciated and now in Permissions
    NATION_CREATION_ADMIN_ONLY is now set by: towny.nation.new
    town_creation_admin_only is now set by: towny.town.new
    unclaimed_zone_build is now set by: towny.wild.build
    unclaimed_zone_destroy is now set by: towny.wild.destroy
    unclaimed_zone_switch is now set by: towny.wild.switch
    unclaimed_zone_itemuse is now set by: towny.wild.item_use
    unclaimed_zone_ignore is now set by: towny.wild.block.[block id]
    /townyworld set wild* commands are no longer availiable

    There are currently some bugs that I need to work out tomorrow night.

    The current .plan is to separate the remaining config into two yaml file: one config, the other language settings. That should help make Towny a bit more approachable to set up. I'm also going to remove some other config settings which I don't think serve much purpose (firstrun and devmode for example). If I am wrong about that please voice now!

    After that I am going to convert the database to SQL (both SQLite and mysql hopefully). I have started some work on this already but I have a lot more to learn about how to do this. Bukkit's internal system has some bad bad bugs so I need to learn another option. This alone should help fix some of the corruption issues people have.

    Then I am going to start to clean up the permission use system. I am not quite sure how to proceed with that quite yet.

    At the same time I hope to get Questioner modernized and further integrated into Towny. I am having trouble getting it into Eclipse though. Any help on that will be greatly appreciated.

    EDIT* I just read the towny.wild.* permissions are problematic, anyone know why or what the symptoms are?
     
  10. Offline

    jayri

    im wondering, what's the main purpose for questioner?
     
  11. Offline

    SmolderingEgo

    Thanks so much dude for doing all this. couple things-

    1- can you make a thread of your own that way it is all you.
    2- do you have a paypal we can donate to?

    also, if you need any help testing the plugin just yell
     
  12. Fyi croxis, your 0.70 jar still has a git repo in it xD
     
  13. Offline

    croxis

    It allows a player to accept or deny a request to join a town.

    I'll make a thread of my own when I am a bit more certain I can take this on, probably by tomorrow night. I do have a paypal however their phone authentication system was dumb, so now I have to wait for the bloody letter with the activation code. Makes my server donations difficult!

    Yah like I said, I'm a python guy I'm not use to this whole compile thing ;) I figured it out so the whole repo wont be in there
     
  14. Offline

    LlmDl

    For whatever reason, if you give anyone towny.wild.blahblah permissions they are able to build/destroy anywhere, towns included. Instead using the flags in config.properties and/or the towny/data/worlds/ .txt's is needed.
     
  15. Offline

    DJ_Idol

    @croxis thank you very much for taking this on! SQL would be awesome, as far as yaml I'm not too interested in it, but I can do with either. What I'd really like is a more organized, descriptive config. I also appreciate you updating to Permissions 3.x, as I've had to switch over from 2 due to some plugins, so that's awesome.

    I have Towny on my server, but haven't actually used it yet unfortunately so I can't help with any current bugs, but I hope you're able to figure out what all the wild permissions/config problems are...

    And, last but not least, I'd LOVE it if you were able to re-do the way Towny handles the chunk selection when starting a new town, and make it so that where you stand when you type the command is the middle of the town chunk...instead of whatever random setting they have now...or even a 16x16 cuboid selection for the start of a town, and then using the /town claim feature to expand the town later...
     
  16. croxis, can you Github the updated source. I can version from that and won't be duplicating work.

    I'm going to add new flags for creeper block damage and such, but it would be silly to run different builds.

    oh, I managed to get the questioner into Eclipse and did all the code fixes but got stuck on that damn /utils part.
    I ended up throwing it out and I'll probably just take the base .java files and built it new.

    EDIT:

    Ok, I've rebuilt the questioner source. It compiles, but I've never used it so someone to test?
     
  17. Offline

    croxis

    Case of insomnia x.x

    I think I found the wilderness Permissions bug. I'll publish a test tomorrow. I want to get the conversion to yaml finished first.

    I have no plans of changing how the plugin does this. It is not random. Think of it as a grid overlaying the map. When you found a town it claims that square in the grid. The plugin is optimized for this and I have no plans on changing how it functions. I also think this method is much more simple for the end user.

    https://github.com/croxis/Towny
     
    jeffreylec likes this.
  18. Thanks I'll start building on your code base. I'll put the questioner source up once I check it's all working. Had to decompile the original jar to get one class :(.
     
  19. Offline

    DJ_Idol

    Ok, that's understandable. Again, thanks for updating this :) Can't wait to see the improvements you make!
     
  20. jeffreylec likes this.
  21. Offline

    number1_Master

    please update towny so it matches permissions, im sick of using permissions 2.4.7
    i need to redownload the .jar of permissions 2.4.7 just to edit little things
    its annoying plz fix it soon :mad::'(
     
  22. Offline

    jacob7395

    Grate plugin but when will it be compatable with permissions 3.x?
     
  23. Offline

    Fazuul

    @croxis

    Appears town chat is a little borked now. Text that wraps to a new line is preceded with a "b" and loses color. Beyond that the chat seems to be functional (ie, only people in the town can see it).
     
  24. Offline

    JDD

    @FuzzeWuzze

    Hello again boss man thanks for adding the regex options for names we have another feature request for you.
    [Feature Request] - Adjustable Upkeep Value based on either Town Level, Number of Blocks, Number of Plots.
    The basic idea here being that as a city grows it's upkeep cost should increase, as it's tax income will most definitely increase.
     
  25. Offline

    croxis

    I have it updated for Permissions 3.x a page back

    Yah I am seeing this now too. I did a quick search of the code and I can't seem to find the problem. Is it any chat such as player chat or just automated towny responses? Specific commands?

    I really need to finish my student teaching work sample so it will be some hours before I can start the coding again
     
  26. Offline

    Fazuul

    Thus far I've only seen it while using /tc.

    Also, thanks for carrying on development of the plugin.
     
  27. So... dosn't work with permissions 3.*? D':
     
  28. Offline

    geekster08

    Right I'm trying to bring some life to my server, so decided to get towny.
    Trouble is, it says it doesn't work with permissions 3.whatever, but I can't do anything with a previous version of permissions? Goes on about "error passing block_place to permissions" so it renders it useless.

    As far as I can tell, it actually works to some degree. I'm op and I can set up plots, towns etc... and put them for sale.
    My residents can buy the plots, trouble is, they can't build in them? Or weirdly they can only build along like 2 rows of their plot and the rest (default 16x16) is untouchable unless they are op'd?

    Please fix for perm's 3, I know they messed it up big time with it but annoyingly everything seems to be moving along :(
    Really want towny >.<
     
  29. Offline

    croxis

    yes it work with permission 3, please see my updated Towny.jar a page back
     
  30. Offline

    geekster08

    Meh :/ Still doesn't work properly for me.
    Seems people are able to build in random patches in areas owned by themselves & others?
    Anyone got any idea?
     
  31. Offline

    jayri

    its not random patches. A minecraft world is built in 16x16 blocks. Towny takes advantage of that and uses the 16x16 blocks.
     
Thread Status:
Not open for further replies.

Share This Page