Inactive [FUN/EDIT/RPG] DungeonBuilder v0.9.7 - Player created dungeons [1.2.4-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by Zimp, Jun 23, 2011.

  1. Offline

    Zimp

    Grifhell and Kevinflu like this.
  2. Offline

    shadrxninga

  3. Offline

    Dec64

    i have been using another plugin similar to this, but its still in WIP and very buggy, this seems like it may be easier to work with, especially due to the creating dungeon commands and set teleport location, very helpful and just what i was looking for.

    Definitely going to try it out. just waiting for rewards! possible iconomy or mcmmo support would be amazing

    ---------------------------*edit*--------------------------------------------------------\

    so erm, i installed it, most seems to be working fine, except when i had it running, other users could not break blocks anywhere in the world? i have no idea where to start troubleshooting that issue, so i turnd it off for now.
     
  4. Offline

    Zimp

    Updated description to meet shadrxninga's suggestions.

    Updated plugin file to fix the issue described by Dec64. There was some unfinished test code I had left active from when I was exploring the ability to restrict users from destroying or placing blocks in dungeons.
     
  5. Offline

    Dec64

    so i used the /saveDungeon alias command, and it saves the dungeon (well it says it does) then i make a change (e.g. set TNT off) then i load it again, expecting the TNT to be back? yet it isnt, is that an error? or am i using the function incorrectly?


    *edit*

    i also get the error "Failed to save dungeon: Failed to backup existing dungeon file"

    when i try to save the dungeon
     
  6. Offline

    Zimp

    It sounds like you might be running into some platform differences on how the files are managed. What platform are you running the plugin on?

    In the meantime I've provided an updated plugin file that may help resolve the issue you have with backing up existing dungeon files. Though I can't guarantee a fix until I get to the root problem.
     
  7. Offline

    Dec64

    Currently i am on a small server hosted by Xenon, so i only have basic FTP access and no information on the server, i will be moving to a fully dedicated linux box as soon as it gets set up, sometime this week, so if that is the case, i will have more information then? i will most likely be running CentOS 5.5 64.

    In the meantime i will try the updated file, thanks for the great plugin tho!

    *edit*
    ok so i tried the altered version, so far it says it saves/loads fine, but again, tnt does not come back, i added some monster spawn locations, said it did that, saved, used the command to spawn the monsters, did not work, again, said it worked, but nothing appeared.

    but when i enter the dungeon after it is published, the monsters where spawned, but the actual dungeon structure was altered to the state it was in when i first saved it, it appears it is unable to overwrite the save?

    also the diamond block does not move to my location when i set the entrance point in the dungeon

    *edit2*
    ok i left the dungeon, came back into the dungeon again, via the set entrance point, the dungeon was reverted back to the most recent state of build, but now no monsters spawn
     
  8. Offline

    Zimp

    Reviewing the code it should be loading the dungeons from memory, which would eliminate any potential issues with the files themselves. My own tests with saving dungeons with tnt/monsters haven't been able to reproduce the issue. Are you using the same dungeon alias for every command? For example:

    /createEmptyDungeon dungeon1 10 10 10

    *place tnt*

    /saveDungeon dungeon1

    *destroy tnt*

    /loadDungeon dungeon1

    In any case, when you do switch to a dedicated host I should be able to help more than just speculate. I do my testing/development work on a linux machine myself.
     
  9. Offline

    Dec64

    so i did a quick test dungeon, using the same commands as you did, to try and replicate the issue, and i was unable to replicate it myself, but the issue always happens on one specific dungeon, but on other dungeons i create and save/load, they work perfectly, possible the save for this dungeon is corrupted to some degree? anyway to reset it?
     
  10. Offline

    Zimp

    *Edit*

    If you happen to remember the original dimensions (or use the /viewDungeonParameters command to find out) you specified for the dungeon then you can attempt the following:

    /teleportToDungeonCenter dungeonname
    Place a marker on it so you know where the origin of the dungeon is.
    /teleportToDungeon dungeonname <- required for deleting dungeon
    /deleteDungeon dungeonname
    Go back to where your marker is and stand in the same location
    /createDungeon new-dungeon-name old-dungeon-width old-dungeon-depth old-dungeon-height

    The delete dungeon command has the effect of deleting the old dungeon's bedrock shell, while leaving the contents intact. Create dungeon has the opposite effect (just make sure you *dont* use createEmptyDungeon in this case).

    Another option is to do the following:

    /teleportToDungeonCenter dungeonname
    dont move from teleport in location
    /createDungeon new-dungeon-name old-dungeon-width old-dungeon-depth old-dungeon-height

    This would mean you would basically have two dungeons overlapping with the same size and coordinates. This may result in weird behavior whenever the plugin is reloaded since it would not guarantee the fixed dungeon is loaded last.

    Updated to version 5.3: added the /teleportToDungeonCenter and /viewDungeonParameters commands

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

    Dec64

    ok ill do that as soon as i get my new server, my current one is playing up in general so hard to narrow down issues with a crappy server, also multiworld is not supported? i create a dungeon in a flatlands generated world, and it shows up later in the normal world?

    if so, multiworld support would be a awesome if u could be included?
     
  12. Offline

    Zimp

    Version 0.5.4 released - Added multiworld support

    Dungeons created in previous releases will be added to the default "world".

    Two new utility commands were added to facilitate multiworld support:
    /createWorld
    /teleportToWorld

    I also included support for setting dungeon teleporters in one world and have the dungeons themselves in another world. This should make it possible to dedicate a separate world just for storing the dungeons.
     
  13. Offline

    Fluff

    This sounds exactly like something that was on my to-do list to write. I'm going to try it out; hopefully you wrote it instead of me. :D

    EDIT: Suggestion for economy: use the Register API. It hooks into iConomy 4, iConomy 5, BOSEconomy, and Essentials Economy.
     
  14. Offline

    fatmarley

    Curious to know... On my server a few mods and I had a competition to build a dungeon and see whose was hardest.

    How hard would it be to use these precreated dungeons/..

    This makes me nervous..../createEmptyDungeon alias width depth height
     
  15. Offline

    Dec64

    that is the command you need @fatmarley , you will need to stand in the center point of your pre made dungeon at the lowest point, and type it, before you do, go measure up the width/height/depth of your dungen, and always add a few more to that figure just for safety.

    I did the same, added this plugin to a pre made dungeon and it worked fine.
     
  16. Offline

    Zimp

    Exactly what Dec64 said, the /createDungeon command (*not* createEmptyDungeon) will construct the bedrock shell out of a pre-existing chunk of the world, which means the shell itself will replace the existing blocks with bedrock, but the inside will be left unaltered. I intended it for this kind of situation where you have already constructed something you want to convert into a dungeon.

    Updated to v. 0.5.5

    Cleaned up behavior for loading dungeons a bit (mostly regarding the order certain blocks are loaded)
    Tested plugin against build 953.

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

    fatmarley

    Sorry, if this was mentioned...but...Chance for permissions. permissions to create and permissions to use?
     
  18. Offline

    Plague

    I suggest using a spoiler for all those commands at the end
     
  19. Offline

    fatmarley

    Erm this was real weird.


    Code:
    2011-07-02 12:40:28 [INFO] Loading dungeon - region:r.0.-1.mcr
    2011-07-02 12:40:28 [SEVERE] java.lang.Exception: The following line in the dungeon file is missing parameters: BCDEFGHIUbz;<=>?@AJVc{2345678KXd|
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.Dungeon.loadFromFile(Dungeon.java:450)
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.Dungeon.<init>(Dungeon.java:57)
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.DungeonBuilder.loadDungeons(DungeonBuilder.java:847)
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.DungeonBuilder.onEnable(DungeonBuilder.java:40)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-02 12:40:28 [INFO] Loading dungeon - region:r.0.-2.mcr
    2011-07-02 12:40:28 [SEVERE] java.lang.Exception: The following line in the dungeon file is missing parameters:
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.Dungeon.loadFromFile(Dungeon.java:450)
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.Dungeon.<init>(Dungeon.java:57)
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.DungeonBuilder.loadDungeons(DungeonBuilder.java:847)
    2011-07-02 12:40:28 [SEVERE] at net.virtuallyabstract.minecraft.DungeonBuilder.onEnable(DungeonBuilder.java:40)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-02 12:40:28 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-02 12:40:28 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-02 12:40:28 [INFO] Loading dungeon - region:r.0.0.mcr
     
  20. Offline

    embty

    Is it possible to like make so that players can use a certin block only in the dungeon?
     
  21. Offline

    Zimp

    Definitely on my list of things to do.

    *Edit* See next reply


    Eventually I would like to start introducing this kind of functionality, for right now I am focused on hardening the code for loading and saving dungeons, then introducing the economy and permission features.

    Looking at this more closely, it looks like my plugin is picking up on some world files. Do you happen to have a world named "dungeons" on your server?

    Updated to version 0.5.6

    Added support for rewarding players upon finishing dungeons using economy plugins and Nijikokun's Register API.
    Added configurable location for storing dungeon files.

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

    fatmarley

    Well your plugin uses the world dungeons...just seemed fitting.
     
  23. Someone should make a video of this =P
     
  24. Offline

    Zimp

    Lol, yea in hindsight I should have expected this outcome when I added the /createworld command. Those error messages you see wont mess anything up though. I'll make a note to add some logic to check for this since I expect it will be a very common use case.
     
  25. Offline

    fatmarley

    @Zimp please consider permissions?
     
  26. Offline

    Zimp

    Next on the list
     
  27. Offline

    OniDono

    Hope to see the compatible version with permissions soon. Not trying to rush the process or anything, only stating the fact. Don't think it would be wise just to have this free to use for anyone.
     
  28. Offline

    Zimp

    Updated to version 0.6.0 to include permission support. This is a first draft of how permissions will work. At this point I am looking for feedback on situations where the current system does not match, or conflicts with, expected use cases.
     
  29. Offline

    Arianon

    Code:
    2011-07-15 12:36:57 [SEVERE] Could not pass event CREATURE_SPAWN to WorldGuard
    java.lang.NullPointerException
        at com.sk89q.worldguard.bukkit.WorldGuardEntityListener.onCreatureSpawn(WorldGuardEntityListener.java:397)
        at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:684)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:234)
        at net.minecraft.server.World.addEntity(World.java:847)
        at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.java:134)
        at net.minecraft.server.World.doTick(World.java:1684)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    it donĀ“t works with Worldguard? D:
     
  30. Offline

    Zimp

    @Arianon I am unable to reproduce the issue you posted. Do you have steps to reproduce it, including which versions of Worldguard and DungeonBuilder you are using?
     

Share This Page