[INACTIVE][MISC] TentThis v2.2.0 - Portable Tent (and more!) System [670]

Discussion in 'Inactive/Unsupported Plugins' started by ssell, Mar 26, 2011.

  1. Offline

    ssell

    TentThis - Portable Tent (and more!) System
    Version: v2.2.0

    Note: If you downloaded v2.2.0 before April 11, 2011, the TentThis.properties default schema is missing the </tentSchema> tag. A fixed .properties is now included in the downloads.


    Response to a request.

    Lost in the wilderness and it is getting dark? Going on a long expedition? Tired of hiding in holes? Well TentThis is here!

    Simply plop down a Sponge block, type in /ttTent, whack it once and watch the magic unfold. The tent will be created out of thin air (as long as their is enough space!). And when you need to move on just break one of the walls and watch the tent vanish and your Sponge return to you.

    Whats new in v2.2.0?

    See the release post.​

    Got an old style schema and need to convert it? Well see that post as well!​

    Wiki

    I am migrating (almost) all information from this post to the new wiki as the plugin grows.​


    Features
    • Fully customizable tents!
    • Reverse-Schemas!
    • Walls can be any color! (if wool)
    • May specify what block creates the tent!
    • Permission Support
    • Individual Schemas/Limits/Owned Tents
    • Support for the following blocks
      • All!
    Links / Install Instructions



    Tent How-To

    Creating your own custom tent is simple! I suggest to look at the default tent provided with the TentThis.properties. If there are any errors in loading/creating the tent make sure to check your console output for detailed information.​


    Once you have made the tent, try loading it with /ttSchema <TentName>.​

    If you receive the message "Tent schema 'TentName' loaded!" then all went well.​
    Otherwise check the console output.​

    Once your tent is ready for use and is loaded in, set down your Sponge block, type in /ttTent, and hit it!​

    If there is enough space the tent will be built. Otherwise you will receive the message "There is not enough space to build the tent 'TentName'!"​

    I Don't Want To Use a Sponge!

    Then edit the line in the TentThis.properties that by default says:​
    Code:
    CreationBlock=19

    Replace the 19 with the data value of the block you want to use instead.​

    Commands



    Known Issues
    • The tops of doors may at first be misaligned.
    • Save problems.
    To-Do
    • Have the tents-expire to prevent possible clutter.
    Special Thanks to

    • Mixcoatl - Doors/Beds working
    • Edward Hands - Providing the missing piece to the bed puzzle
    • Grimmkrieg - Schema trouble-shooting
    • GSecurity - Helped with Essentials issues
    Change Log

    Changelog (open)

    v2.2.0
    • Tents may be constructed of anything*
    • Reverse-Schemas!
    • /ttReverseSchema command. See this post.
    • New option in the TentThis.properties:
    Code:
    
    
    #- Should NoCommand be the default mode?
    
    NoCommand=false
    
    • Preemptively fixed issues with 'fragiles' (torches, ladders, paintings, etc.) from popping off walls ;)
    v2.1.0
    • Fixed crashes when running with Essentials Chat and other Chat plugins.
    v2.0.0
    • Works for (and only for) 600+ (tested on 606)
    • Permissions support!
      • TentThis.commands.setOwnSchema
      • TentThis.commands.setAllSchema
      • TentThis.commands.setLimit
      • TentThis.general.destroyAnyTent
    • Re-worked/New Commands
      • /ttSchema <Schema> <OptionalPlayer>
      • /ttWhat is now /ttInfo
      • /ttLimit <Name> <limit>
    • Owned Tents/Active Schema/Tent limit are now unique to each player, and not shared between the server.
    • More.
    v1.2.21
    • Fixed bug where /ttNoCommand worked only for the default Sponge.
    v1.2.20
    • Bed is no longer dropped on tent destruction.
    v1.2.9
    • Colored walls work. Use the color names as specified at http://www.minecraftwiki.net/wiki/Wool#Data_Values_for_Colored_Wool.
      • Names must have no space and be all lower-case.
    • Custom defined 'CreationBlock'. Default is Sponge.
      • Edit the 'CreationBlock=19' line in the TentThis.properties.
    • New command: /ttReload
      • This is in place so one does not have to restart the server to change the CreationBlock.
      • Edit the block in the properties file, then enter the /ttReload command and it should work!
    v1.2.0
    • Doors work (might be some irregularities with the orientation of the top at first)
    • Beds work (B = bed foot, H = bed head now)
    • Torches no longer drop when the tent is removed
    • Trying to remove anything but the walls does nothing
    • New command: /ttNoCommand.
      • Allows you to make tents without having to enter /ttTent first.
      • Must right click the block to make, as opposed to left click when this feature is disabled.
    v1.1.0
    • Initial Bukkit Release



    Help! My Tent Doesn't Work
    1. Check the console for any error output. I have made sure that 95% of all possible errors with the tent schema have detailed output as to the exact problem.
    2. Check the schema for any silly problems (dimensions not matching what you specified, missing floor, missing closing tags, non-capitalized letters).
    3. Repeat step 2.
    4. Repeat step 2.
    5. Repeat step 2.
    6. Post here.
    More Tents:

    Spelunker (open)

    By: Grimmkrieg

    The Spelunker:
    Designed for the inventory-conscious cave-explorer in us all! Carry a single sponge block with you, and never need to scrounge up those 4 wood for a workbench again!
    [​IMG]

    Code:
    <tentSchema="Spelunker">
    <destructionBlock=35>
    <dimensions=2,2>
    <floors=2>
    <color="red">
    <floor>
    BF.BH.
    58.35.
    </floor>
    <floor>
    00.00.
    61.54.
    </floor>
    </tentSchema>
    

    Woodsman (open)

    By: Grimmkrieg

    A one-man tent designed for 'everyday' use, with all the modern amenities.
    [​IMG]
    [​IMG]
    Code:
    <tentSchema="Woodsman">
    <destructionBlock=35>
    <dimensions=5,6>
    <floors=4>
    <color="green">
    <floor>
    35.35.35.35.35.
    35.58.54.61.35.
    35.00.BH.00.35.
    35.00.BF.00.35.
    35.00.00.00.35.
    35.35.DB.35.35.
    </floor>
    <floor>
    35.35.00.35.35.
    35.50.00.50.35.
    35.00.00.00.35.
    35.00.00.00.35.
    35.00.00.00.35.
    35.35.00.35.35.
    </floor>
    <floor>
    00.35.35.35.00.
    00.35.50.35.00.
    00.35.00.35.00.
    00.35.00.35.00.
    00.35.50.35.00.
    00.35.35.35.00.
    </floor>
    <floor>
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    </floor>
    </tentSchema>
    

    Expeditionist (open)

    By: Grimmkrieg

    A three-man safari tent, designed to be spacious while still accommodating the storage, smelting and crafting needs of all expedition members. Not designed for underground use. (This one sometimes loses torches off the wall, not sure why.)
    [​IMG]
    [​IMG]
    Code:
    <tentSchema="Expeditionist">
    <destructionBlock=35>
    <dimensions=9,9>
    <floors=6>
    <color="darkgray">
    <floor>
    00.00.00.35.DB.35.00.00.00.
    00.00.35.61.00.61.35.00.00.
    00.35.00.00.00.00.00.35.00.
    35.58.00.00.00.00.00.54.35.
    35.BH.BF.00.00.00.BF.BH.35.
    35.54.00.00.00.00.00.58.35.
    00.35.00.00.BF.00.00.35.00.
    00.00.35.58.BH.54.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.00.35.00.35.00.00.00.
    00.00.35.61.00.61.35.00.00.
    00.35.00.00.00.00.00.35.00.
    35.00.00.00.00.00.00.00.35.
    00.00.00.00.00.00.00.00.00.
    35.00.00.00.00.00.00.00.35.
    00.35.00.00.00.00.00.35.00.
    00.00.35.00.00.00.35.00.00.
    00.00.00.35.00.35.00.00.00.
    </floor>
    <floor>
    00.00.00.35.35.35.00.00.00.
    00.00.35.61.50.61.35.00.00.
    00.35.00.00.00.00.00.35.00.
    35.00.00.00.00.00.00.00.35.
    35.50.00.00.00.00.00.50.35.
    35.00.00.00.00.00.00.00.35.
    00.35.00.00.00.00.00.35.00.
    00.00.35.50.00.50.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.00.00.00.00.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.35.00.00.00.35.00.00.
    00.35.00.00.00.00.00.35.00.
    00.35.00.00.00.00.00.35.00.
    00.35.00.00.00.00.00.35.00.
    00.00.35.61.61.61.35.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.00.00.00.00.00.00.
    </floor>
    <floor>
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.35.00.50.00.35.00.00.
    00.00.35.50.00.50.35.00.00.
    00.00.35.00.50.00.35.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    </floor>
    <floor>
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    </floor>
    </tentSchema>
    

    Aristocrat (open)

    By: Grimmkrieg

    The newest tent in the GRIMMDUSTRIES line, this one is getting a bit extravagant - but who doesn't like a bit of style? With a dedicated crafting area, 2nd floor loft sleeping quarters and two servant's beds, this tent is for the wealthy 'crafter with some space to spare!
    [​IMG]
    [​IMG]
    [​IMG]
    Code:
    <tentSchema="Aristocrat">
    <destructionBlock=35>
    <dimensions=9,12>
    <floors=7>
    <color=blue>
    <floor>
    00.00.35.35.DB.35.35.00.00.
    00.35.58.00.00.00.58.35.00.
    35.54.BH.00.00.00.BH.54.35.
    35.00.BF.00.00.00.BF.00.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.35.00.00.00.00.00.35.35.
    35.61.00.00.00.00.00.61.35.
    35.61.00.00.00.00.00.61.35.
    00.35.61.00.00.00.61.35.00.
    00.00.35.54.58.54.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.35.35.00.35.35.00.00.
    00.00.00.00.00.00.00.00.00.
    35.00.00.00.00.00.00.00.35.
    00.00.00.00.00.00.00.00.00.
    35.00.00.00.00.00.00.00.35.
    00.00.00.00.00.00.00.00.00.
    35.00.00.00.00.00.00.00.35.
    35.35.00.00.00.00.00.35.35.
    35.61.00.00.00.00.00.61.35.
    00.35.61.00.00.00.61.35.00.
    00.00.35.50.61.50.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.35.35.35.35.35.00.00.
    00.35.00.50.00.50.00.35.00.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.50.00.00.00.00.00.50.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.50.00.50.00.00.35.
    35.35.35.35.35.35.35.35.35.
    00.35.35.35.35.35.35.35.00.
    00.00.35.35.35.35.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.00.50.00.50.00.00.00.
    00.00.35.35.35.35.35.00.00.
    35.35.35.00.00.00.35.35.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    00.35.00.00.BF.00.00.35.00.
    00.00.35.58.BH.54.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.00.00.00.00.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.35.35.00.35.35.00.00.
    00.35.00.50.00.50.00.35.00.
    00.35.00.00.00.00.00.35.00.
    00.35.00.00.00.00.00.35.00.
    00.00.00.00.00.00.00.00.00.
    35.00.00.00.00.00.00.00.35.
    35.00.00.00.00.00.00.00.35.
    00.35.00.00.00.00.00.35.00.
    00.00.35.00.00.00.35.00.00.
    00.00.00.35.00.35.00.00.00.
    </floor>
    <floor>
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.35.00.00.00.00.
    00.00.35.35.35.35.35.00.00.
    00.00.35.00.00.00.35.00.00.
    00.00.35.00.00.00.35.00.00.
    00.35.00.00.00.00.00.35.00.
    00.35.00.00.00.00.00.35.00.
    35.00.00.00.00.00.00.00.35.
    00.35.50.00.00.00.50.35.00.
    00.00.35.00.00.00.35.00.00.
    00.00.00.35.35.35.00.00.00.
    </floor>
    <floor>
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.00.00.00.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.35.35.35.35.35.00.00.
    00.00.35.35.35.35.35.00.00.
    00.35.35.35.35.35.35.35.00.
    00.00.35.35.35.35.35.00.00.
    00.00.00.35.35.35.00.00.00.
    00.00.00.00.00.00.00.00.00.
    </floor>
    </tentSchema>
    

    Fortress (open)

    By: killgoblen

    Ever get stuck in the middle of a mob of 100 creepers? No? Well, if you ever are, this is the tent for you! It has 3-block-thick walls with a layer of furnaces in the middle.

    [​IMG]
    [​IMG]

    Code:
    <tentSchema="Fortress">
    <destructionBlock=35>
    <dimensions=9,9>
    <floors=5>
    <color="black">
    <floor>
    35.35.35.35.35.35.35.35.35.
    35.61.61.61.61.61.61.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.35.BH.00.54.35.61.35.
    35.61.35.BF.00.61.35.61.35.
    35.61.35.00.00.58.35.61.35.
    35.61.35.61.DB.61.35.61.35.
    35.61.35.61.DB.61.35.61.35.
    35.35.35.35.DB.35.35.35.35.
    </floor>
    <floor>
    35.35.35.35.35.35.35.35.35.
    35.61.61.61.61.61.61.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.35.00.50.00.35.61.35.
    35.61.35.00.00.00.35.61.35.
    35.61.35.00.00.00.35.61.35.
    35.61.35.61.00.61.35.61.35.
    35.61.35.61.00.61.35.61.35.
    35.35.35.35.00.35.35.35.35.
    </floor>
    <floor>
    35.35.35.35.35.35.35.35.35.
    35.61.61.61.61.61.61.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.35.35.35.35.35.61.35.
    35.61.61.61.61.61.61.61.35.
    35.35.35.35.35.35.35.35.35.
    </floor>
    <floor>
    35.35.35.35.35.35.35.35.35.
    35.61.61.61.61.61.61.61.35.
    35.61.61.61.61.61.61.61.35.
    35.61.61.61.61.61.61.61.35.
    35.61.61.61.61.61.61.61.35.
    35.61.61.61.61.61.61.61.35.
    35.61.61.61.61.61.61.61.35.
    35.61.61.61.61.61.61.61.35.
    35.35.35.35.35.35.35.35.35.
    </floor>
    <floor>
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    35.35.35.35.35.35.35.35.35.
    </floor>
    </tentSchema>
    
     
    Phaedrus, dr_brule and Long like this.
  2. Offline

    swoop2

    Hi, I've not really written any Java but I do software development for a job in other languages. I thought I'd have a quick look at the source and it looks like the problem with torches is in TTSchemaLoader. The fragileList attribute that holds the list of torches, etc, isn't being cleared in destroyTent operation... Hope that helps :p

    After a lot of swearing, guessing and reading of the documentation on here for setting up your environment to enable plugin development, I finally managed to download the code and try the fix. Simply adding a fragileList.clear to TTSchemaLoader.destroyTent gets rid of the torch problem. I've tried it on my server briefly and it all seems to be OK now. Assuming I've not missed something stupid, it looks like it should be simple to fix :)

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

    BigBenM

    care to upload your version as an unofficial fix release?

    I truely hope the author doesn't get mad. But thanks to swoop2...

    I have fixed the problem with the torches.

    I fixed permission issues, where even if a player didn't have permission to setOwnSchema, it would still type out "Don't have permission...etc" then next line would state that the Schema has been changed... This no longer happens, java just kicks the code back to listening mode if the player doesnt have permission.

    Added new Permission node: TentThis.commands.reload
    Prevents users from being able to reset/reload the plugin.
    Also displays "TentThis was reloaded by PLAYERNAME" in the console.

    OH: And one more thing... For MY SERVER's LIKING: I have removed the code that gives the user back his Creation block... It works perfectly for my PvP world and obsidian set as the creation block, since if they want to use tents, they have to have diamond pickaxes to mine the obsidian regularly to keep using tents. :)

    Here is my unofficial release

    PS: IMPORTANT!
    ONLY REMOVE "TentThis.jar" FROM YOUR PLUGINS FOLDER.
    ADD "TentThis_Unofficial.jar". LEAVE "TentThis" FOLDER IN PLACE IN YOUR PLUGINS DIRECTORY
     

    Attached Files:

    Last edited by a moderator: May 13, 2016
  4. Offline

    GmK

    @BigBenM

    Thank you! I will try it out, and I love the fact that the block isnt given back ;)
     
  5. Offline

    swoop2

    @BigBenM - I wasn't sure what the policy/rules were on updating other peoples plug-ins so I was wary of uploading things :p I quite like the block being returned so I might tweak your version to make it a configurable...

    There were a couple of other bugs I wanted fixing, that I was thinking of having a quick look at:
    1. Serialising the player tent data on a server restart so tents don't get made permanent.
    2. Stop the tent orientation from being random (I want my doorto always appear in front of me).

    @ssell - this is a great plugin and all credit goes to you for all the framework you've put in place! I hope you're back soon to do the official fixes :)
     
  6. Offline

    BigBenM

    I completely agree about the serialization. I also had issues where the tent became permanent when server was reloaded... yet it still counted the total tents for the player, and could not be removed.

    An option to allow your block to come back would be great, for those who want it to return... If you download and modify my TentThis_Unofficial.jar, you will see that I simply just commented out the code where the block is given back...

    I also realized that my method of keeping track of the tents, is flawed. I dreamt about it :p
    So i will wip something up later today and see if i can change the way it removes tents.

    I would also love to see the players.txt holding all the tent information, and reading the tents from that file upon server reboot. That way, we could always remove a tent from a user if they have forgotten to destroy it and don't remember it's location... it could hold the coordinates as well as which tent it was, cause as it stands, the only info i see in players.txt is a
    "PLAYERNAME TENTSCHEMA LIMIT"

    I think what would be best, is if we forked the source code in github, and used the forked version to pull/push and commit. This way people will have access to the source code to see our changes.

    Ill do that now quickly.

    Edit:
    Github FORK version can be accessed at: https://github.com/BigBenM/TentThis
    Eclipse pull request can be accessed at: https://[email protected]/BigBenM/TentThis.git

    However, this fork is not the updated one, the updated one is on my local machine... so if we use this, we will have to re-add the code again... If you send me your userID for github, I can make you able to edit and commit code.
     
  7. Offline

    swoop2

    I haven't got a Git user account yet, I just cloned the repository to get started. I've never used Git before and never written any Java before (though it looks like a mix of .NET and C++), so I'm still trying to pick it all up. I'll get myself an account and message you tomorrow.

    If you could upload your changes into the fork it would probably make it easier wouldn't it?
     
  8. Offline

    BigBenM

    Yes...yes it would lol...
     
  9. Offline

    Soruyao

    Would it be very difficult to set it up so that you can change whether or not you get the sponge/obsidian back through the config file or permissions?
     
  10. Offline

    BigBenM

    Unofficial source code can be found here:
    https://github.com/BigBenM/TentThis

    Yeah, I was planning on adding that feature... If it's not too hard, I was also going to set it so that each Schema would have a ReturnBlock = true/false ... so that you can set this option for different schemas...

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

    Sphax

    Great plugin bu I don't like commands for players.
    Would it be possible to add an option so any player can create his tent without command ? For example by right clicking on the dropped "tent block" (sponge or any block set to be the tent) ? If right clicking needs an object, maybe this object ID could be included in the config file (stick or string by default for example) ?
    The object could also be removed in the operation.
     
  12. Offline

    BigBenM

    Well if you set NoCommand to TRUE in the config file, it will allow a player to place the Tent Block, and without any item in your hand, right click the block...
     
    Sphax likes this.
  13. Offline

    Sphax

    Ho sorry I didn't know. Thanks for your answer. :)
    Great plugin ! :p
     
  14. Offline

    Soruyao

    Awesome! Looking forward to seeing that happen. :D
     
  15. Offline

    tr00dudu

    this addon is looking very interesting! :D

    edit: but as i see the original creator is not updating this anymore, and 2 or more of you (fellow commenters :p) are working on the newer versions.

    any chance you could open up a new thread (like TentThis reborn or something) and post the updates and the changelogs? pretty please with sugar on top ^^,

    if you do please post in this thread about it
     
  16. Offline

    ElementalBliss

    I want this on 740 :D
     
  17. Offline

    BigBenM

    It mostly works on 740
     
  18. Offline

    swoop2

    I was using 740 on my server and I'm now running 766 - I've not noticed any problems with it at all on either. I'm assuming we just need to get a new snapshot of bukkit to build this against to make it "officially" support it?

    Btw, I've just uploaded a bug fix to a separate branch in GitHub to fix the tent counting. I've tested it on my empty server and it seems to be working fine. Just need to get it tested with multiple players creating/destroying tents at the same time and merge the branches back together. Once that's done we should be able to post another unofficial version on here.

    If the original author doesn't come back soon and it looks like we might continue working on this for a bit, I'll look into splitting it off into a new thread. I'm new to plugin development though so I'm not sure how we'd go about doing that. Do we need to submit it as a new plugin or something?

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

    tr00dudu

    no idea at all. i just like the addon and dont want it to die :p
     
  20. Offline

    swoop2

    The wonders of open source will keep it alive as long as someone wants to keep tweaking it :) @BigBenM and I are using it on our own separate servers so until it's all working like we'd like it too I imagine we'll carry on tweaking it for a bit.

    The things left I want to get working are:
    [1] Fix the server restarting bug that stops you from being able to remove tents you placed before the restart (means writing the tent data out to some sort of file)...
    [2] Configurable block returning.
    [3] Orientation fixes for when you place the tent (to make it consistently place it).

    I'll probably carry on working on it till they're fixed at least :)

    Btw, the bug fix I did for the tent counting doesn't fix the problem with the limit being written to the players.txt file. All I've done is fix the problem of placing and removing tents whilst the server is running. I didn't realise there was a problem with hitting the limit and then restarting the server... I imagine now I've fixed the running part we can just remove the code that writes to the players.txt to record the limit has been reached. It makes no sense to write that to the file when there's no way to detect the tents that have already been built (i.e. it all needs to be done under [1]).
     
  21. Offline

    tr00dudu

    if the sponge would represent the entrance position (middle front) and the tent would be built outwards from the player that would be just epic :)

    maybe dont look at player-sponge coordination but what side the player hit the sponge from, if thats any easier. allso, if oyu do it like that then you can add as a bonus: if you right click the sponge on its top side, the schema switches, so you can easily cycle through schemas :p

    god, im full of ideas today ^^
     
  22. Offline

    BigBenM

    I was thinking making each schema have a different value... Like in my case, the tentblock is obsidian... so make it 1 obsidian block for a normal default tent... if you place a 2nd obsidian block ontop of the first block then /tttent or left click, it would make the next bigger tent... and so on... so for really large tents, people would have to use 4 or 5 obsidian block to make it... then once they break the tent, they do not get the obsidian back... forces players to mine obsidian... a great add-on to pvp i think when your travelling away from your base and need a place to chill at night.
     
  23. Offline

    tr00dudu

    interesting idea, i like it. looking forward to what will become of this plugin :D
     
  24. I have afew questions I am new to the plugin.
    1. I am not getting my sponge back is that right?
    2. Are the items suppose to leave all of the chests and fall to the ground when the tent is destroyed?
     
  25. Offline

    swoop2

    1. The official version does return the block. At the moment the unofficial one doesn't. It will be made configurable soon.
    2. That is supposed to happen at the moment but I'm beginning to think I might change that.
     
  26. Offline

    BigBenM

    I kinda like the idea of the items popping out of the chests... If we have it so they "stay" in the chest, then it would mean that a player could have unlimited inventory space.
     
  27. I was interested in this plugin a long time ago and a lot has changed since then,
    it does not bother me that the items pop out of the chests. and I agree with you about the unlimited inventory space. I was more thinking of it differently. I was thinking of allowing all of my users only 1 tent that would be preset by me. Then every sponge they use would give the access to their personal tent (with their personal chest). So a small outline would be like so:

    1. everyone only would have 1 tent schema
    2. Eveyone would only be allowed 1 tent (1 per user)
    3. at the cost of 1 sponge you have access to "Unpack your tent"
    4. When "repacking your tent" It would save the items in the chest.

    By using a setup like this the admins could limit the chest per tent and tents per user
    allowing a user to have an extra chest or two, that they could access at the cost of a sponge.

    Thank you for the quick response from my last comment. Also if you every plan to let this plugin go please message me first so I can slowly take over keeping it up to date with bukkit.
     
  28. Offline

    BigBenM

    What you are saying makes perfect sense, and it would work like that... however, you have to keep in mind that each user of this plugin will want to use it differently... so there would have to be a large config file to configure everything to your likeing... clearly the config file is the way to go... its just that once you get into alot of different setups using config files, the code gets bigger and bigger with if statements and such...

    That is the plan though... i nice self explanitory config file... so we'll keep you posted, however, I was speeking with @swoop2 and we will most likely fork off this plugin and make our own version from scratch... would save some time recoding everything ourselves, then to try and modify the original authors code...
     
  29. Offline

    Sphax

    I get this error as the very last message after the server has started :
    Code:
    00:18:54 [GRAVE] Nag author: 'ssell' of 'TentThis' about the following: onPlayer
    Quit has been replaced with a new signature, (PlayerQuitEvent)
     
  30. Offline

    Plague

    CB 670 - inactive
     
  31. Offline

    Sphax

    It works well in CB766 :)

    For those who can be interested, I've set a very small tent (5x5) with the use of the locked-chest :
    Show Spoiler
    Code:
    ################################################
    #                                              #
    #__ Options ___________________________________#
    #______________________________________________#
    
    #- The block that creates the tent.
    #- Default is 19 (Sponge)
    
    CreationBlock=95
    
    #- Default Tent Limit. -1 = infinite.
    
    TentLimit=-1
    
    #- Should NoCommand be the default mode?
    
    NoCommand=true
    
    ################################################
    #                                              #
    #__ Schemas ___________________________________#
    #______________________________________________#
    
    <tentSchema="default">
    <destructionBlock=35>
    <dimensions=5,5>
    <floors=4>
    <color="green">
    <floor>
    35.35.DB.35.35.
    35.00.00.00.35.
    91.00.BF.00.91.
    35.54.BH.58.35.
    35.35.35.35.35.
    </floor>
    <floor>
    35.35.00.35.35.
    35.00.00.00.35.
    35.00.00.00.35.
    35.00.00.00.35.
    35.35.20.35.35.
    </floor>
    <floor>
    00.35.35.35.00.
    00.35.00.35.00.
    00.35.00.35.00.
    00.35.00.35.00.
    00.35.35.35.00.
    </floor>
    <floor>
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    00.00.35.00.00.
    </floor>
    </tentSchema>
     

Share This Page