[MECH/RPG] CursedLands v0.9 - Hell is infecting the Earth! [953]

Discussion in 'Inactive/Unsupported Plugins' started by Exote, Jun 24, 2011.

  1. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    CursedLands - Hell is infecting the Earth!:
    Version: v0.9

    This plugin is half-inactive while I try to work out a better way of handling the curse over time. In the mean time I suggest you have a look at my other plugin: ScarredLands which does most of the same things but without the cursing over time (and admin just scars an area at a time with commands) but it also has better curing mechanics which make it more fun :D

    Long have I been suspicious of Mobspawners, there is something unnatural or other-worldly about them. We have all seen them. They spit mobs at us, warping them in from hell. But this time around things were different, Hell itself seems to be following the mobs through these little rifts between our worlds...

    Mobspawners and netherrack will convert everything (the blocks you choose to be able to be cursed) around them over time. Oh and the netherrack will set you on fire if you walk on it...

    A quick warning

    To get a good sized curse area, as far as eye can see in each direction with far view distance, this plugin has to handle A LOT of blocks, I mean hundreds of thousands...

    I am still trying to find a good way of saving and processing the blocks (How the hell does Notch do it?!) Anyway keep this in mind and make sure your server can handle it.

    With this new version the way the plugin checks which blocks should spread has changed, this makes it faster and causes less server lag, however the temporary downside is that any netherrack/mobspawner/soulsand that is placed before the curse zone has been activated will not register as part of the curse, this is also true if blocks are changed while the plugin is disabled. Working on a scanner command that updates the active curse blocks in an area.

    Protection blocks have now been added due to popular request. Goldblocks by default. These blocks stop to curse advancing into those areas. If there are netherrack blocks already inside the protection radius then they will not be removed but they wont spread any more. These are very useful to put down before you use seeds.

    When mobspawners are created by the netherrack (not ones you put down yourself) they are given a random mob to spawn from the list you can set in the config file. At the moment you need to use capitals in the mob names, as shown in the default config.yml.

    Features
    • Netherrack spreads over time
    • Mobspawners generate netherrack around them
    • Netherrack burns to walk on
    • Netherrack sets fire to trees and wool
    • Push back netherrack with seeds
    • Protect regions with Gold blocks
    • Water turns to lava
    • Save command
    Download CursedLands v0.9

    Video Overview
    If you want to listen to me ramble on a bit while giving you a brief view of what this plugin does. I will make some more detailed videos when I have finalised a few ideas. (Already a bit out of date)


    Also KuroSnow did a nice demonstration which is a bit more up to date:

    http://www.youtube.com/watch?v=nD8Q12noBqg

    Setup
    Well to start with you run around a bit until you find a nice area you want to infect. We will need to map out the boundaries that the curse can spread to. To do this run to one corner of the square and type:

    Code (Text):
    1. /setcurse 1
    And as expected run to the opposite corner and type:

    Code (Text):
    1. /setcurse 2
    Or you can set the boundaries of your curse zone using:

    Code (Text):
    1. /setcurseradius [radius]
    This will select a square area with your current position as the center and with a distance of [radius] to each edge (if the radius of a square makes any sense at all...)

    Once you are happy with the area you have selected, and keep in mind that it will occupy the entire vertical space between the two selected points, type:

    Code (Text):
    1. /createcurse [cursename]
    And the curse is ready to attack...
    To set it going, place a mobspawner somewhere (or just some netherrack), and sit back and watch it spread over everything.

    If you want to see a list of the active curses:

    Code (Text):
    1. /curselist
    and to delete one, rendering nether harmless again:

    Code (Text):
    1. /removecurse [cursename]
    You can save the curses to database at any time, be warned it will take a while, check the server log/ command window for info about the number of blocks it is saving etc.

    Code (Text):
    1. /savecurse
    Permissions

    I will default to OP when it cannot find the permissions plugin.
    • - cursedlands.create (create new curse zones)
    • - cursedlands.remove (remove curse zones)
    • - cursedlands.save (save all curse zones)
    • - cursedlands.noBurn (player wont set fire on curse)
    Settings
    There are a couple of settings in the config.yml file:
    • CurseBlockPhaseOneId - the id number of the material of the first phase of the curse (normally soulsand)
    • CurseBlockPhaseTwoId - the id number of the material of the second phase of the curse (normally netherrack)
    • ProtectionBlockId - the id number of the material that is used as a protection block against the curse
    • CurseDelay - the delay in seconds for each step of the spread
    • BlocksBurn - a list of block id numbers separated with spaces to show the blocks that will burn when touching netherrack.
    • BlocksCurse - a list of block id numbers, space separated, that will convert to nether when cursed.
    • MobSpawns - a list of mobs that will spawn from mobspawners
    • SpreadPercentage - probability that a block will spread to the adjacent
    • NetherIgnitesPlayer - Does netherrack burn to stand on (only inside the curse areas)
    • NetherrackBurnsMaterials - Whether netherrack sets fire to wool or logs that it touches (inside curse area)
    The general idea is for people to try and defend and expand their base. netherrack can be converted back into normal materials with the use of seeds. When you use seeds on the netherrack it will turn back into dirt, stone iron ore or gold ore (based on probability).

    The use of this plugin along side other plugins such as worldedit/worldguard and mobbounty could result in some interesting gameplay. Use worldedit/guard to select an area, and save it, so it can be rolled back after the game is over (time limit/everyone dead) then use some method of counting the number of mob kills etc.

    Just some ideas. I would love to hear if anyone has any interest in this kind of plugin. And let me know what else is needed.

    Changelog:
    Show Spoiler

    Version 0.9
    • Now using SQLite instead of flat files
    • Lots of little changes with the way the curses save
    • Added permissions for not getting fire damage and saving the curses
    Version 0.8
    • Water now changes to Lava!!
    • Enable/Disable config for water to lava
    Version 0.7
    • Put curse blocks that are inactive (nothing to curse around them) to sleep, greatly improving size of curse area possible
    • Fixed protection blocks when changing protection radius (I hope)
    Version 0.6
    • Plugin now defaults to only allow Op use when it can't find permissions
    • Can set the materials of the curse
    • Can set the materials of the protection block
    Version 0.5
    • Added configuration as to what the mobspawners spawn
    Version 0.4
    • Added protection blocks (goldblocks)
    • Added a protection radius to settings
    • Improved performance bit more (although the protection blocks reduce performance so it's about the same :p)
    Version 0.3
    • Added the radius command for setting curse areas
    • New curse spread tracking (much faster, less server load)
    • Can now set what block burn/convert to netherrack
    Version 0.2
    • Added basic permissions
    • Netherrack burns trees and wool
    • Fixed seeds not being used bug
    • Able to remove curse areas

    Feel free to give it a go.
    Download CursedLands v0.9

    If you liked the plugin feel free to donate a bit of pocket change :) It will help me to develop this into something awesome.
    [​IMG]
     
    kahlilnc, Crash, Sroxah and 2 others like this.
  2. Offline

    SystexPro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Seems cool, i might try it :p
     
  3. Offline

    Kane

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Fun plugin. I do suggest allowing the player just to enable worldwide spread ;) Make it fun
     
  4. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I thought about allowing people to do that, but imagine if you left the server running for a week or so. The curse would have spread 100's/1000's of blocks from the start point. And with every new block of nether the plugin and your sever have go through another iteration of the loop to test to see if that block should spread.

    Also the curse spreads downwards/upwards too, all I am saying is that you wouldn't want this to run with no boundaries. But depending on your server's power, you could set the boundaries to be pretty large before you notice things slowing down.

    This is mainly what I am trying to test at the moment. To see if the average server can handle a reasonable sized curse zone.
     
  5. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just put it on my test server. Going to unleash this secretly on the RPG Server and have people crap there pants. I did find that if you have a couple of cursed zones operating at the same time it seems to cause 'Server Can't Keep Up' Errors. BUT if you have 1 HUGE area it seems to be fine

    Tested it with a 100% Spread rate at 5sec intervals. Test server is not the stongest hardware either so it looks good.
    A feature I would like to see later is to set what blocks it will consume and what blocks it wont.

    Right now i would have liked it to burn the bookcases, beds and such of the demo town I infected with it.

    Awesome job keep it up
     
  6. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Another useful feature would be to allow you to List the curse zones (perhaps with the co0ordinates) and a Delete command. (I assume there is one but I could not find it :) )
     
  7. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sorry added them in 0.2 but forgot to write them up here.

    /removecurse [name]

    /curselist
     
  8. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hehe excellent
    just tried a MASSIVE area... a good 1000+ radius and unfortunatly once I had created the curse the server froze and I had to force a shutdown. ^_^ it is to be expected...
     
  9. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks a lot for the testing!

    That seems to be similar to what I found. However I just found a neat way to cut out around 50% of the processing if I can get it to work. :p Just out of curiosity what sort of size area did you test?

    And yes the next version will have lots more setting for things like how each block gets affected. And the probabilities of converted nether becoming various things.

    Anyway thanks for the feedback, glad you like it. :D
     
  10. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yup, done that myself many times in testing. Remove the CursedLands folder in plugins and everything is cool. :p
     
  11. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I actually had 3 areas.

    1 was about 40x40
    2 was aviut 60x60
    3 was around 120x120 BUT was also overlapping area 1 and 2. That could have been an issue
     
  12. Offline

    Mercury

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Few things to add.
    • Is is possible to spawn pigman on infected area?
    • Can you use "setborder" (radius) technique instead of cuboid when selecting area?
    • When water gets infected maybe you can turn it into lava or make damage to player?
    • When placing X blocks near infection, make it stop spreading?
    • blacklist blocks e.g glass wont be changed.
    Sorry I am terraria fan :)
     
  13. Offline

    XInstinctX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Nice always wanted something like this like infection of the land and things

    You could have it where like there is a 1% chance of it spawning a mob spawner as it infects

    But it kinda crashes the server so i wont be using :(( But its a great idea im still gonna have it in my plugin folder.

    Could you make a single player version that will be cool.
     
  14. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Coalore turns to mobspawner at the moment ;)

    As I mentioned above, working on allowing people to choose what blocks do when they hit the curse
     
  15. Offline

    XInstinctX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I edited it :D
     
  16. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    • Pigmen - maybe would have to look into what event I could use to spawn them/ if not maybe just randomly over time.
    • Radius - Will probably do this, but as a square not a circle, minecraft circles do my head in.
    • Water to lava - Not sure would probably cause a massive mess of obsidian - will look into it.
    • Protection blocks - You sir shall have your sunflowers. (something rare though...)
    • Blacklist - Already exists but fixing other stuff before I publish.
    Terraria is amazing, that plus maybe starcraft zerg were what sparked the idea.
     
  17. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Added a few new commands and settings.

    Main update was the performance. from my testing it seems to be a great improvement, however as expected the server does start to slow down when the number of cursed blocks build up.

    Would be cool if some others could give it a quick test to see what sort of sizes they can run before you notice reduced performance :)
     
  18. Offline

    XInstinctX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Huge Improvement in performance di it with 30x30 no lag at all and this isnt a dedicated server :D
     
  19. Offline

    mrfeellingless

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    when i try to create a curse i get these errors?

    Code (Text):
    1. [SEVERE] null
    2. org.bukkit.command.CommandException: Unhandled exception executing command 'setcurseradius' in plugin CursedLands v0.3
    3.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    4.     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    5.     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    6.     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    7.     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    8.     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    9.     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    10.     at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    11.     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    12.     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    13.     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    14.     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    15.     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    16. Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    17.     at me.exote.cursedlands.SetCurseRadiusCommand.onCommand(SetCurseRadiusCommand.java:28)
    18.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    19.     ... 12 more
    20. Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
    21.     at java.net.URLClassLoader$1.run(Unknown Source)
    22.     at java.security.AccessController.doPrivileged(Native Method)
    23.     at java.net.URLClassLoader.findClass(Unknown Source)
    24.     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    25.     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    26.     at java.lang.ClassLoader.loadClass(Unknown Source)
    27.     at java.lang.ClassLoader.loadClass(Unknown Source)
    28.     ... 14 more
    some help?

    ps: i really see some future in this plugin :D and soon ill have a professional server at i3d.net, so ill try some 2k+ radius ;)
     
  20. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I may be wrong but that looks like there is a problem with permissions, maybe i didn't handle it properly. Seems to have thrown an exception that I wasn't expecting.

    Do you have permissions?

    Looks like I will have to sort out handling for people that don't have that.

    EDIT:

    Yeah just removed permissions myself and it game me the same error. I need to read the permissions files better and find out how to make it default to OP or something.

    I'll work on that.

    Sorry :p (but seriously get permissions :D)
     
  21. Offline

    mrfeellingless

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yea i have it on my server. But i always plug it out when i try new plugins XD

    oh and the idea of Mercury, protection blocks are really nice. You should make it something like a gold cross, because then you can make some RP temples which "block" the curse with good energy.
     
  22. Offline

    NeonJ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This seems very.. Terraria-esque.

    I like.
     
  23. Offline

    mrfeellingless

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The corruption, before we know it we have eater of souls XD
     
  24. Offline

    XInstinctX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well i just let it out on my whole world and no lag I did the radius to 5000 and now it looks like the nether :D
     
  25. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    5000? nice! I would call my update an improvement then :p But even so you must have a pretty powerful server. I got lag long before that point.
     
  26. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Added a very brief video to show what the plugin does. Missed a few things out, but as long as you don't mind me rambling on a bit, it should give you an idea about what to expect from the plugin. I'll make a better video when I get a cool server and zone set up with it and make a proper mini-game out of it.

    Started work on the mechanics behind getting certain kinds of block to prevent nether spread, so expect that in a couple of days also.
     
  27. Offline

    H4Mm3r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Could it change water into lava ? :)

    Nice plugin !
     
  28. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Quick update, added protection blocks that will prevent the curse in a radius around them (radius editable via config file). Enjoy :p
     
  29. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ill test again tonight and let you know :)
     
  30. Offline

    Exote

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yup, I'm working on water to lava cursing, got it planned out. Hope to get that and sort out how mobs behave on netherrack(burn normal mobs/spawn some nether ones randomly) soon.
     

Share This Page