[FUN/MECH] Outposts v2.2 - War Economy Plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by dkramer, Aug 16, 2011.

  1. Offline

    dkramer

    Outposts, A Capture the Points Economy System.
    Version: 2.2

    Description:

    (You need iConomy, BOSEconomy, Essentials, or Multicurrency for this to work). Players can create groups that gain money over time based on the worth of the outposts they create. They can also capture other groups' outposts for a profit. An outpost is a 4x4 square of bedrock spawned when the /ocreateoutpost command is called that is filled with a block (smelted cobblestone by default). To capture an outpost that another group holds (make sure your active group is set to the group you want to get the outpost first), mine out the blocks already in the outpost and place the same kind back into the 2x2 area inside the 4x4 ring (smelted cobblestone by default). This graph explains how much money is earned per outpost on every timer tick (the timer length can also be customized), and the 3 variables in OutpostsSettings.yml can be changed:

    [​IMG]

    Here's a quick video about the plugin:

    This video is a bit out of date: now you can appoint others as founders if you are the group "leader". The person that creates the group is the leader. Also, some codes have been changed around, so check the changelog. Also, the text colors are better :3


    Permissions:

    None right now. They will come soon.

    Commands:

    Show Spoiler
    Show Spoiler

    /o

    description: Relays command codes so you don't have to memorize them or look on this thread.​

    /ocreategroup <name>
    description: Creates an outpost group if this player has enough money.​

    /oplayer <name>
    description: Checks what groups a player is in.​

    /ocreateoutpost <group>
    description: Create an outpost for this group.​

    /ogroup <group>
    description: See information about this group.​

    /oaddplayer <player> <group>
    description: Adds this player to this group if you are the founder of the group.​

    /oremoveplayer <player> <group>
    description: Removes this player from this group if you are the founder of the group.​

    /oaddfounder <player> <group>
    description: Adds this player as a founder of this group if you are the leader of the group.​

    /oremovefounder <player> <group>
    description: Removes this player from this group's founder list if you are the leader of the group.​

    /osetactivegroup <group>
    description: Sets this as your group for taking over points.​

    /ogetclosest
    description: Returns the distance and group for the closest outpost for a fee that can be changed.​




    Download:

    Source Code: http://dl.dropbox.com/u/36326695/OutpostsSource.zip

    2.2 http://dl.dropbox.com/u/36326695/OutpostsV2.2.zip
    2.1 http://dl.dropbox.com/u/36326695/Outpostsv2.1.zip
    2.01 http://dl.dropbox.com/u/36326695/Outpostsv2.01.zip
    2.0 http://dl.dropbox.com/u/36326695/Outpostsv2.0.zip


    Installation:

    Extract Outposts.zip. Insert Outposts.jar into your plugins folder.

    Customizing:

    OutpostsSettings.yml is where all of your customizing will take place. It is created after you start up the server and is updated whenever you install a newer version and start the server.

    This is an explanation of the variables in it:

    Show Spoiler
    Show Spoiler
    Show Spoiler
    Show Spoiler

    allblockscanfill: can any block fill the 2x2 area?​
    moneytimerminutes: length (in minutes) of the timer ticks for group money​
    rangeofdecay: explained in the graph above^^​
    outpostcost: How much it costs to make an outpost​
    maximumnumberofoutpostspergroup: self explanatory​
    minimumoutpostdistance: minimum distance an outpost can be from another one. I recommend no less than 5​
    getclosest: can people use /ogetclosest?​
    fillblock: what block should fill in the outposts?​
    maxmoney: explained in the graph above^^
    minmoney: explained in the graph above^^
    costtocreategroup: How much it costs to create a group​
    buildcap: Maximum amount of outposts that can be built in a group (the rest needs to be captured)​
    getclosestcost: how much it costs to use the /ogetclosest command​


    ToDo:
    • Find bugs
    Changelog:
    2.2: Might have fixed the wrong block placement issue and others
    2.1:
      • You do not need new .ymls anymore since it will automatically add in new variables
      • Added in a build cap to the .yml. This is the maximum amount of outposts that people can build, the rest will need to be captured. It defaults to your maximum number of outposts per group
      • ogetclosestcost added to the yml. It defaults to 1.
      • changed ogetclosest so it returns the distance to the closest outpost that is not controlled by a group of yours for a fee of ogetclosestcost in the .yml
      • fixed a small text error with ogroup
      • cleaned up some text colors
      • Message to your group members when your group takes over a point
    2.01: Changed something that may help with a certain error that may or may not come up... just to be safe

    Show Spoiler

    2.0:
      • right click an outpost block to get information (you need to have nothing in your hand and right click a block inside the 2x2 area)
      • fixed onblockplace and onblockbreak null pointer exception errors
      • fixed a small configuration error
      • fixed it saying you lost an outpost at x:0 y:0 z:0
      • made it more efficient
      • made allblockscanfill in the .yml. Set it to true to allow any block to fill the 2x2 area.
      • made it easier to read
      • first one to make the outpost is now the leader. leaders can set and remove people as "founders". These founders can add and remove players from a group.
      • getclosest is now in the .yml and I have removed the one permission to make it easier. Set it to true for the players to be able to use the /ogetclosest command. It's true by default.
      • changed /oaddtogroup to /oaddplayer
      • changed /oremovefromgroup to /oremoveplayer
      • added /oaddfounder for the leader of a group to use
      • added /oremovefounder for the leader of a group to use
    1.6: fixed money being split to only online players
    1.55: Fixed /oaddtogroup and /oremovefromgroup errors.
    1.5:
      • Fixed an onBlockPlace error that wouldn't let you get to your true maximum number of outposts
      • updated economies to support iconomy, boseconomy, essentials, multicurrency
      • money is only split between players online now
    1.4:
      • message when a outpost's block is destroyed
      • message when a group takes over a point of yours
      • fixed another /ogroup error, this time about how much money it earns
      • when using /ogroup on a group you are in, it tells you the locations of outposts your group controls
    1.25: Really fixed the /ogroup error this time. Silly .equals().
    1.24: Fixed an /ogroup error not displaying how many outposts that group has
    1.2: Fixed 1.1 errors... that's what you get for not waiting to release an update
    1.1:
    • cleaned up some code
    • /ogroup tells how much the group earns total now
    • tells you how much the outpost is worth when you make one
    1.0: Release

     
    cadwal, olimoli123 and Zothen like this.
  2. Offline

    Hopium

    very awesome love the idea, will check it out when i get iconomy installed
     
  3. Offline

    dkramer

    Thanks! Please report back with issues or suggestions. I should have a new version fairly soon.
     
  4. Offline

    BioRage

    :O! Looks interesting, I'll finish reading past the title after I shower, I'll let you know some feedback.

    @dkramer

    Okay, reminds me of "http://forums.bukkit.org/threads/in...based-pvp-plugin-using-worldguard-1000.21871/"

    in a way, however this is kind of different, since it's not really using regions.

    Is it auto-protected when created? Example: For Factions, whoever holds more outposts, will get more cash.

    Is the money seperated, or individual distrubuted, example: 100 each, or 600 pot, and is divided by <x> group members..
    Or will all players online and OFFLINE in the group be paid out?

    Any chance of a video demo?

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

    dkramer

    Players offline should still receive money that their group earns, and groups split the money earned over time based on how many people are in the group. I can make it customize-able to where every player in the group gets the money without it being split up and not give money to players offline, if you want.

    I'm not sure what you mean about "Is it auto-protected when created? Example: For Factions, whoever holds more outposts, will get more cash.". If a group has more outposts, it'll most likely get more money unless they are very far apart from other outposts.

    I think I can make a video demo if I find decent recording software, so stay tuned.

    Righto @BioRage @Hopium , 1.2 is out and should make this a better experience. I am working on getting a video up fairly soon.

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

    BioRage

    @dkramer thanks for the reply, however, Is it possible to make it so user's offline don't get money, no fair if user's are offline and get rewards.

    Suggestion:
    - Loot wise, not only cash, but adding a probability ==% for a certain configurable loot item, aka 10% to get porkchop drop.
     
  7. Offline

    SpiFioY

    Great idea. I like it and i will try it right away! ;)
     
  8. Offline

    dkramer

    So it would split the money between players online? Sounds like a very good idea, I'll get to implementing it.
    I don't think loot will be too hard, but it might take a while.

    @SpiFioY Thanks! Another update will come soon.

    @Hopium @BioRage @SpiFioY
    Alright, version 1.4 is out, check the changelog for more details. I will add a video tomorrow after I figure out how to split the money between the players online since it's way too late right now. Cheers!

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

    SpiFioY

    Yay! I will install it after you make the video :)
     
  10. Sneaky, sneaky - create an outpost while standing on a snowlayer... =)

    dkramer, Sir, you rock! I was waiting for something like that for over 2000 years... well, at least it felt like that long!
    Keep up the good work!

    /me is back to testing!
     
  11. Offline

    embty

    What about essentials eco?:(
     
  12. Offline

    dkramer

    @embty I am about to work on getting the economy supports up to date, so I'll tell you when that's finished (probably in an hour or two)

    @SpiFioY Sweet deal!

    @Zothen Thanks!

    @embty @SpiFioY @Zothen @BioRage

    1.5 is out, and a video should be up later today:
    • Fixed an onBlockPlace error that wouldn't let you get to your true maximum number of outposts
    • updated economies to support iconomy, boseconomy, essentials, multicurrency
    • money is only split between players online now

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

    BioRage

    Great thanks for the constant updates dkramer, show's your effort's as a dev :)

    Glad to hear you took on the suggestion, because in all fairness would be un-fair for user's offline to receive loot! Look forward to your video, and I'll post some feedback after that.
     
  14. Offline

    dkramer

    :D
    The video is uploading as I type, and it says it'll be done in about a couple hours. While it's been uploading, I've fixed some more problems with the 1.55 and 1.6 updates. Now there are no bugs (that I know of).

    @BioRage @SpiFioY
    A video is up! Excuse my terrible speaking skills.

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

    BioRage

    @dkramer

    Great video, quality, and headphones.

    - Maybe add a property to add a "moderator" so they can add other's to the group <More convenient>
    - Would you ever consider, instead of breaking the blocks, just hovering over a certain zone (Or would that not work due? And require something like World Guard, This comment may also deteriate your plugin! Sorry if it did!)

    Overall looks great, perhaps future support for spout?

    - The only problem I see is, finding these badboy's (outposts) As a user said above you could cover it up with tree's / blocks / snow :D
     
  16. Offline

    dkramer

    Thanks, it was made with my Rock Band microphone xD. Yeah, I highly recommend setting the permission - outposts.canseeclosest for everyone so hiding outposts won't be too viable.

    I'll look into adding a moderator function. I don't think it'll be terribly difficult.

    Edit: I think hovering over a point would be difficult and require too many resources, sorry.

    Missed this part. I'm not sure how to go about adding support for spout or what support would actually do :eek:.

    Anywho, if someone runs this on their server and wouldn't mind inviting me, please message me! I'm trying to find a new server to chill on.

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

    SpiFioY

    Yay! Alsome! Can you add a gameplay video? :confused: Also can you add commands for the players? Like /ojoin one and thay will send a request to the group owner? And can you set permissions to every single command? :confused: I think it's not very good every player to have the permissions to create a group. :oops:
     
  18. Offline

    dkramer

    I didn't want to make it more complicated than it already is, really :p, but seeing as how someone likes the idea, sure. I'll add that to my list.

    Edit: like I said, I don't have a server for myself that runs this, so I can't do a gameplay video really.
     
    Zothen likes this.
  19. Offline

    SpiFioY

    I have a server, so if you wanan i can make new, clean server only whit the required plugins.
     
  20. dkramer, this evolves really nicely! I wish you could consider optional links into Towny and Factions so the towns/factions will be the foundation for the groups! That would add exactly that additional indirect conflict layer we have been searching for since ages..

    Also, how about making the fill blocks a list, so you can allow to use e.g. dirt or obsidian (for different levels of security if enemies try to mine it out) and more complex reward settings, that allow for items too. (Actually I would dream for land control as reward... *shudders from facination*)
     
  21. Offline

    GODnWOLF

    Internal error when use commands ( 1060). Dont know what's wrong.
     
  22. Offline

    dkramer

    I wouldn't know how do get it set up with towny/factions, but I'll certainly look into it.

    I could very easily make the fill block a list, or more easily let it be any block that can fill the insides. Hmm, I'll add that to the todo.

    Can you tell me which commands you were using? Or was it all of them? Screenshot of the error?

    Awesome! Whatever you want to do, really.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  23. I can only suggest to contact the devs of Towny Advanced and talk to them, maybe! They are awesome guys and usually very open for creative ideas! Same counts for the Factions dev, but hes usually harder to contact! Nonetheless a nice chap!
     
  24. Offline

    dkramer

    Sure, I'll see what I can do.
    Side note: I would like it so that enemy outposts can be found relatively easy in case they are hidden, but still require some exploration or setback to finding them. Example: make it charge money for a hint at where a close enemy outpost is. Is /ogetclosest good with you guys, or do you have something better in mind?
     
  25. I'm getting internal server error on every command. I added a server log.

    it also says it version 1.0 will I downloaded 1.6
     
  26. Offline

    dkramer

    Oops, that's my bad, it's really 1.6 though. I'll get to fixing that.

    The log says your input string is "5000,00". Did you mean to do 5000.00?

    Edit: I've been working on a big update, so stay tuned :D
     
  27. big update nice

    5000 as cost for the outpost. seems to high for the plugin after I changed that it started to work agian
     
  28. Offline

    dkramer

    Awesome. I still suggest tweaking the numbers for your server since I have had no number testing to see what variables would be a good default.

    2.0 is out! Please read all of the changes in the changelog since a couple commands, permissions, and .yml codes have been changed or added.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  29. Mabye something like Thomas used for his geochache plugin? use a command to attach to the next tower and right-click on the ground so you get the current distance - no direction! (btw. Thomas is also a very nice and helpful dev - had a few talks with him a while ago)
     
  30. Offline

    dkramer

    Yeah, sounds good, maybe I can change the /ogetclosest into something like that. And maybe a customizable fee along with it that will have a default of some low value (maybe about 10 money to see the distance to the closest one).
     

Share This Page