[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

    captainawesome7

    I had hope, but when I re-downloaded and used 1.2:
    Code:
    21:21:40 [INFO] TentThis: Failed to find 'TentThis.properties'!
    21:21:40 [INFO] TentThis v1.2.10 by ssell is enabled!
    
    It seems that I never moved the TentThis.properties to the same directory as craftbukkit. Is there any way you can change it to having it in a plugins/TentThis folder, because it is much easier to install, anyways, that error is what happens if you do not have your TentThis.properties installed correctly I guess. I moved it to the right directory and it works fine, thanks for the help.
     
  3. Offline

    ssell

    Glad it is working! I'll make sure to look into moving the .properties file.

    Let me know if you have any other issues (hopefully you dont :))
     
  4. Offline

    Stephen92

    this is awesome and im glad you fixed it but it is now dropping the bed instead of torches, just thought u should know, but other than that, great job.
     
  5. Offline

    Ovocean

    A creative and useful plugin, keep up the good work !
     
  6. Offline

    captainawesome7

    @ssell
    Can you just make the bed that drops be a sponge and not give it back through the player's inventory? I'm pretty sure if you don't have an extra slot available it doesn't give it back. Also, it doesn't put it in a stack of other sponges, it would be much easier to just make the bed drop a sponge (if you can do that) :)
     
  7. Offline

    Carbon131

    One thing that would be a nice feature to add is if a user could build a tent, then save the schema of it. You could do this through the cuboid editing feature in WorldEdit or something similar through a plugin called Blueprint Builder. But keep up the updates, they just keep getting better :)
     
  8. Offline

    ssell

    @captainawesome7
    The bed being dropped is one of my top priorities. During the week I don't get much time to work on side stuff like this, but as soon as I get it done I will release it. That is also why I do this stuff so much on the weekend.

    @Carbon131
    I will look into this. Thanks for the suggestions.

    As of now the top to-do looks like this, roughly in order:
    1. Fix bed drop
    2. Integrate Permissions
    3. Allowing admins to limit number of tents per person
    4. Look into Carbon's suggestion

    Hate double-posting but oh well.

    Version 1.2.20
    http://www.1143pm.com/TentThis v1.2.RAR

    Only one change this time:
    • Bed is no longer dropped on tent destruction.
    To-Do
    • Integrate Permissions
    • Limit tent creation
    • Reverse schema creation
    • Move 'TentThis.properties' to 'plugins/TentThis/TentThis.properties'

    Triple-post (talking to myself here)

    Version 1.2.21
    http://www.1143pm.com/TentThis v1.2.RAR

    I was going through putting in code for Permissions support and noticed a silly error where /ttNoCommand only worked for Sponge blocks.

    This update fixes that. It does not add Permissions support. That will be within a few days, depending on how much time I get.

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

    Pazaz

    :O, I think its time for tent town!
    Awesome plugin :D
    You get my first post.
     
  10. Offline

    Dan Shue

    nice plugin!

    working great for me :)
     
  11. Offline

    Olat

    @ssell
    How do you attach a torch to the wall? Im doing a plugin with Ladders and I cant figure out how to attach them to a block Face. you dont have a src code link cause i was just gunna look. so lemme just ask :)
     
  12. Offline

    ssell

    You can find source for this at https://www.github.com/ssell/TentThis

    I don't have it linked cause I haven't had a chance to tidy everything up and I don't like messy code :)

    I am not sure if ladders behave like torches, because the torches automatically attached themselves. But looking at the data values page, http://www.minecraftwiki.net/wiki/Data_values#Ladders, you will need to determine which side of the wall they will be attached to and set it with:

    yourBlock.setData( 0x# );

    or

    yourBlock.setData( ( byte )# );

    Where # is 2, 3, 4, or 5 depending on the direction.
     
  13. Offline

    Grimmkrieg

    @ssell This is an excellent idea for a plugin! However, I'm having a rather strange issue. It's making the bottom of the door a pumpkin, and the foot of the bed a jukebox. I'm running the latest recommended build. I do have quite a bunch of plugins though, but I'm unsure what could mess with only a few of the particular items in the tent. If you'd like to see a whole list, I can provide.

    The chests/furnace/workbench/torches/wool/color all seemed to work just fine, the only .properties item I changed was changing the creation-block from sponge to jukebox.

    Any ideas?
     
  14. Offline

    ssell

    @Grimmkrieg

    Well it is odd and both not odd that a pumpkin and jukebox are appearing.

    I use those as stand-ins for the second half of two-part blocks (in this case the foot of the bed, and bottom of the door, also you don't see it, but the head of the bed is originally a sponge), but have not encountered them not being replaced properly.

    What version of CraftBukkit are you using? There was recently a big update that may have messed with this. I am actually as we speak fixing up the code to comply with the newest RB for Bukkit. Also are there any errors in the console?

    edit:
    I updated one of my test servers to the most recent CraftBukkit, and used my most recently released TentThis, but was not able to replicate this.

    Still looking into it but there goes my easy problem!
     
  15. Offline

    Grimmkrieg

    @ssell Well, at least your using them as placeholders clears up a bit of my confusion.

    Code:
    2011-03-29 21:01:04 [SEVERE] Could not pass event BLOCK_DAMAGED to TentThis
    is given when I left-click the tent to create, and it's also given when I try to take out the walls (which also doesn't work.)

    Also, I thought I was using the latest RB, but I guess it changes more rapidly than even my pessimistic self imagined - I've got b531 running. I'll update that and re-test it, very likely could be that.

    Edit: That was it, I just fail at updating. Everything seems great now, thanks for the great plugin!
     
  16. Offline

    ssell

    I like easy fixes! Glad it is working out now.

    Come back if you have any more issues.
     
  17. Offline

    706

    This is a really cool idea and good implementation. I do have one request, though I'm not sure the best way to do it. Would it be possible to have a few different types of tents?

    I run a survival server with economy and shops, and I like the idea of being able to sell people tents. It would be great if there was some way I could have more advanced tents for a higher cost. However sponge is the only block type I can think of that works for the plugin, as it isn't available to pickup any other way. It would be great if I could just sell my players a different block, like a coloured wool or obsidian, but it is too easy for them to make by themselves and circumvent having to buy it.

    If people would like that option you could still go down that road, however for my use the only way I can see it working is if I use the commands to build the tent. Possibly you could have mutiple commands, one for each tent, with permissions on each. Then I could add the permissions to players.

    What do you think?
     
  18. Offline

    ssell

    @706

    With the Permissions update I am also making a 'PlayerManager' that will allow each user to have their own specified schema, tent limit, etc.

    You will be able to let users set their own schema, or set them each individually yourself. So with your idea you could sell the schema itself, and use the command to set their tent schema to the one they just bought.

    Hope that makes sense.
     
  19. Offline

    Grimmkrieg

    Wow, I was just coming back here (after spending a bunch of time making a new schema for a larger tent) to suggest almost word-for-word what 706 was asking.

    @ssell when you implement the reverse-schema creation, is there going to be support for new block types? I'd love for design reasons to have fenceposts incorporated, for instance.

    Another sneaky edit! : I've finished my schema, re-uploaded the .properties file and done a successful /ttReload, but now when I'm trying to do /ttSchema Expeditionist it gives an internal error and outputs:
    Code:
    2011-03-29 21:43:17 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ttschema' in plugin TentThis v1.2.20
    in the console.

    Are there any formatting things I should know about for the .properties?
     
  20. Offline

    ssell

    @Grimmkrieg

    Yea, I definitely want to support more types.

    matejdro suggested this on the first page, so there is surely enough desire for it.

    After I do Permissions (and possibly GroupManager), I will start looking into the reverse-schemas and allowing the user define what blocks are what.
     
  21. Offline

    706

    Sounds great, thanks for the quick reply.

    Grimmkrieg, great minds think alike :D
     
  22. Offline

    blaize9

    Request: can you add like a world edit support, so like you can easily make schematics?
     
  23. Offline

    ssell

    This is what I plan for the 'reverse-schematics.' Build a tent then save it as a schema to be used later.
     
  24. Offline

    blaize9

    nice, i hope you can implement this soon.
    Edit: maybe also add the option of destroying blocks if there is not enough space?
     
  25. Offline

    Grimmkrieg

    @ssell I guess you're actively working on this right now anyways, so I don't feel bad about cluttering up the thread with posts. I had snuck this in as an edit above, but I think you missed it.

    I'm getting this error:
    Code:
    2011-03-29 21:43:17 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ttschema' in plugin TentThis v1.2.20
    When I try to /ttSchema the tent I've created. Apologies for the massive code-box (I wish I could set this as a spoiler), but here's what my .properties file looks like at the moment:
    Code:
    ################################################
    #                                              #
    #    TentThis - Portable Tent System           #
    #                           #
    #   Use the "default" schema as an example of  #
    #   how to create a tent.                      #
    #                                              #
    #   W = Wall                                   #
    #   B = Foot of the bed                        #
    #   H = Head of the bed                        #
    #   F = Furnace                                #
    #   C = Chest                                  #
    #   T = Crafting Table                         #
    #   L = Light Source (Torch)                   #
    #   D = Door                                   #
    #   _ = Air                                    #
    #                                              #
    ################################################
    #                                              #
    #__ Properties ________________________________#
    #______________________________________________#
    
    #- The block that creates the tent.
    #- Default is 19 (Sponge)
    
    CreationBlock=84
    
    #- Number of tents each player may make.
    #- Default is -1 (infinite). NOT IMPLEMENTED
    
    TentLimit=-1
    
    ################################################
    #                                              #
    #__ Schemas ___________________________________#
    #______________________________________________#
    
    <tentSchema="default">
    <dimensions=5,6>
    <floors=4>
    <color="white">
    <floor>
    WWWWW
    WFHTW
    W_B_W
    W___W
    WC_CW
    WWDWW
    </floor>
    <floor>
    WWWWW
    W___W
    W___W
    _____
    W___W
    WW_WW
    </floor>
    <floor>
    WWWWW
    WL_LW
    W___W
    W___W
    W___W
    WWWWW
    </floor>
    <floor>
    _____
    _WWW_
    _WWW_
    _WWW_
    _WWW_
    __W__
    </floor>
    </tentSchema>
    <tentSchema="Expeditionist">
    <dimensions=9,9>
    <floors=6>
    <color="white">
    <floor>
    ___WWW___
    __WHTHW__
    _W_B_B_W_
    WH_____HW
    WB_____BW
    W_______W
    _WC___CW_
    __WC_CW__
    ___WDW___
    </floor>
    <floor>
    ___W_W___
    __W___W__
    _W_____W_
    W_______W
    _________
    W_______W
    _W_____W_
    __W___W__
    ___W_W___
    </floor>
    <floor>
    ___WWW___
    __W_L_W__
    _W_____W_
    W_______W
    WL_____LW
    W_______W
    _W_____W_
    __WL_LW__
    ___WWW___
    </floor>
    <floor>
    _________
    ___WWW___
    __W___W__
    _W_____W_
    _W_____W_
    _W_____W_
    __WFFFW__
    ___WWW___
    _________
    </floor>
    <floor>
    _________
    _________
    ___WWW___
    __W_L_W__
    __WL_LW__
    __W_L_W__
    ___WWW___
    _________
    _________
    </floor>
    <floor>
    _________
    _________
    _________
    ___WWW___
    ___WWW___
    ___WWW___
    _________
    _________
    _________
    </floor>
    Edit #3 of the night: I see now that /ttReload only updates the Creationblock value, not the schemas. Server reboot may fix my issue here.

    #4: Nope, didn't do it, same error.
     
  26. Offline

    blaize9

    Another request =D
    Add wood and cobblestone to also use as materials. (keeping your plate full =D)
     
  27. Offline

    ssell

    You are missing

    Code:
    </tentSchema>
    
    from the end of you schema. I tested it just now and that was the cause.

    Nice tent by the way.

    Also, you dont need to do /ttReload to use a new schema that you just made. Every time you call /ttSchema it remakes the schema from scratch negating the need to reload the plugin.

    /ttReload is in there because the part that handles the creationBlock is normally only called when the plugin is first run.

    @blaize9

    The user will be able to in the future specify what materials are available for use.
     
  28. Offline

    Codex Arcanum

    On the subject of multiple tents, you could give sponge blocks damage (like when your weapon/tool is damaged) to identify various tents. That way sponge blocks could serve as hundreds of different types of tents.
     
  29. Offline

    blaize9

    Yes! my dream has come true (in the future)
     
  30. Offline

    Arthurdd1994

    Well, I've tried solving the problem on my own and have had no luck...

    Everything about this plugin works great, except when I created my own Schema I can't seem to get it to load.

    Here's my TentThis.properties file:

    Code:
    ################################################
    #                                              #
    #    TentThis - Portable Tent System           #
    #                           #
    #   Use the "default" schema as an example of  #
    #   how to create a tent.                      #
    #                                              #
    #   W = Wall                                   #
    #   B = Foot of the bed                        #
    #   H = Head of the bed                        #
    #   F = Furnace                                #
    #   C = Chest                                  #
    #   T = Crafting Table                         #
    #   L = Light Source (Torch)                   #
    #   D = Door                                   #
    #   _ = Air                                    #
    #                                              #
    ################################################
    #                                              #
    #__ Properties ________________________________#
    #______________________________________________#
    
    #- The block that creates the tent.
    #- Default is 19 (Sponge)
    
    CreationBlock=19
    
    #- Number of tents each player may make.
    #- Default is -1 (infinite). NOT IMPLEMENTED
    
    TentLimit=-1
    
    ################################################
    #                                              #
    #__ Schemas ___________________________________#
    #______________________________________________#
    
    <tentSchema="default">
    <dimensions=5,6>
    <floors=4>
    <color="green">
    <floor>
    WWWWW
    WFHTW
    W_B_W
    W___W
    WC_CW
    WWDWW
    </floor>
    <floor>
    WWWWW
    W___W
    W___W
    _____
    W___W
    WW_WW
    </floor>
    <floor>
    WWWWW
    WL_LW
    W___W
    W___W
    WL_LW
    WWWWW
    </floor>
    <floor>
    _____
    _WWW_
    _WWW_
    _WWW_
    _WWW_
    __W__
    </floor>
    </tentSchema>
    <tentSchema="explore">
    <dimensions=9,6>
    <floors=5>
    <color="green">
    <floor>
    WWWWWwwww
    W_H_H_H_W
    W_B_B_B_W
    W_C_C_C_W
    W_______W
    wTT___FFW
    WWwwDWWww
    </floor>
    <floor>
    WWWWWwwww
    W_______W
    W_______W
    W_______W
    W_______W
    w_______W
    WWww_WWww
    </floor>
    <floor>
    WWWWWwwww
    W_L_L_L_W
    WL_____LW
    W_______W
    WL_____LW
    w_L_L_L_W
    WWwwWWWww
    </floor>
    <floor>
    _________
    _WWWwwwW_
    _WW___WW_
    _WW___WW_
    _WWWwwwW_
    ____W____
    </floor>
    <floor>
    _________
    _________
    ___WWW___
    ___WWW___
    ____w____
    ____W____
    </floor>
    </tentSchema>
    When I type "/ttSchema explore" I receive a message saying "Failed to load in Tent 'explore'!"

    I tried using both the /ttNoCommad and right clicking and /ttTent with the same results for both.
     
  31. Offline

    ssell

    Check the console output if you can with errors like these. I got:

    Code:
    CONSOLE: TentThis: Invalid Character 'w' in line 'WWWWWwwww' in schema 'explore'! [TTSchemaLoader]
    
    All letters must be capitalized. In the future I will make sure it is not so picky.

    Here is your schema fixed:

    Code:
    <tentSchema="explore">
    <dimensions=9,6>
    <floors=5>
    <color="green">
    <floor>
    WWWWWWWWW
    W_H_H_H_W
    W_B_B_B_W
    W_C_C_C_W
    W_______W
    WTT___FFW
    WWWWDWWWW
    </floor>
    <floor>
    WWWWWWWWW
    W_______W
    W_______W
    W_______W
    W_______W
    W_______W
    WWWW_WWWW
    </floor>
    <floor>
    WWWWWWWWW
    W_L_L_L_W
    WL_____LW
    W_______W
    WL_____LW
    W_L_L_L_W
    WWWWWWWWW
    </floor>
    <floor>
    _________
    _WWWWWWW_
    _WW___WW_
    _WW___WW_
    _WWWWWWW_
    ____W____
    </floor>
    <floor>
    _________
    _________
    ___WWW___
    ___WWW___
    ____W____
    ____W____
    </floor>
    </tentSchema>
    But.. it causes my server to reset. This unfortunately is not the server I host myself, so I do not get good console output to discern what exactly is wrong. Looking at the schema it looks fine.

    Let me know if the tent messes with your server, and post any error messages you get.

    edit: Thinking about it, the server has very little RAM so it may be running out since it is a good sized tent. But I have no way of really testing this.
     

Share This Page