Inactive [ADMN/EDIT] LibertasLoader v1.2 - The Map Preloader [1000]

Discussion in 'Inactive/Unsupported Plugins' started by LibertasMens, Jul 7, 2011.

  1. Offline

    LibertasMens

    LibertasLoader - The Map Preloader:
    Version: v1.2
    With LibertasLoader, you can preload an infinite amount of chunks in any direction with the click of a key!

    UPDATES:
    I have been away from my gaming/coding rig for the past 3 weeks, but I am currently available and can fully access my code.
    Feel free to post problems/ask for help, or for a quick response PM me.

    About:
    To put it simply, LibertasLoader allows you to, with one command, generate as many chunks of the map as you want.

    Uses:
    This is can be useful to both low- and high-end server admins, as you can cut down on future lag created by adventuring players.
    Another use is for map modders who need to generate large amounts of the map quickly.

    Simplicity:
    My policy, when it comes to both code and life, is that things should be simple and no larger than necessary. That's why when I wrote this plugin I didn't throw in a bunch of fancy features and unnecessary utilities, because you don't need them! And if you do, I'm sure there's somewhere else to find what you're looking for. :)



    Features:
    ♣One simple command
    ♣No configuration
    ♣No unnecessary files
    Permissions support
    ♣Bukkit permissions support
    ♣Multiworld support
    ♣Choose to monitor or silence the process



    Guide:


    Command Example:
    Code:
    /ll world -200 -150 300 100 true

    Command Breakdown:


    =================
    Bugs:
    Server restart/reload required after each use.


    Thanks:
    [​IMG]Major thanks to phaed for cleaning up, revising, and correcting this plugin.


    Versions:
    Permalink - Download
    (Only major builds are archived)
    ========
    Version 1.2.1 - Download
    - Added support for Bukkit permissions
    - Minor Fixes

    Version 1.1 - Download
    - Minor Bug fixes
    - Major Bug fixes
    - Squishy Bug fixes

    Show Spoiler
    Version 1.0 (phaed) - Download
    - Major overhaul

    Version 0.2 - Download
    - Minor code revisions
    - Added chunk unloading. You'll run out of memory MUCH slower. ;)

    Version 0.1.1 - Download
    - Plugin entering Beta, looking for bugs. :D
    -Added command alias /ll (0.1.1)
     
  2. Offline

    codec

    Awesome! Ill make sure to keep an eye on this plugin for the dynmap issue.
     
  3. Offline

    LibertasMens

    So it's not just a dynmap issue. What happens is, the plugin triggers the server to "load" the chunks, which basically means that it creates a file for it and recognizes what it is. But it does not populate it. Which is a problem. A problem which I am working on. :)
     
  4. Offline

    HunterAP

    Cool deal. Hopefully you will be able to populate the chunks in a similar fashion to how you're loading them. With other plugins that actually "regen" chunks, if I choose too large of an area, the clients get disconnected while the server is working.
     
  5. Offline

    codec

    I just tried out the plugin on my server so see about how long it would take to render a large amount of chunks only to find it gives me an error. I thought it must be a conflict of some kind so I made a test server with 953 and only this plugin and permissions 3.1.6 and still got it. Im running win 7 x64 with 64 bit java. Here is the error.

    Code:
    23:52:17 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'll'
    in plugin LibertasLoader v0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
            at org.grush.libertasloader.LibertasLoader.initiate(LibertasLoader.java:
    113)
            at org.grush.libertasloader.LibertasLoader.onCommand(LibertasLoader.java
    :67)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
     
  6. Offline

    SnowLeopard

    @codec are you running that in the console or as a player?
     
  7. Offline

    codec

    No, it was in game.
     
  8. Offline

    Coolred303

    im getting this error.

    Code:
    1-07-18 00:49:57 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'll' in plugin LibertasLoader v0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at org.grush.libertasloader.LibertasLoader.initiate(LibertasLoader.java:96)
        at org.grush.libertasloader.LibertasLoader.onCommand(LibertasLoader.java:67)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-07-18 00:50:01 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'll' in plugin LibertasLoader v0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at org.grush.libertasloader.LibertasLoader.initiate(LibertasLoader.java:96)
        at org.grush.libertasloader.LibertasLoader.onCommand(LibertasLoader.java:67)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    could someone please help? Thanks :D
     
  9. Offline

    TNOMCat

    Did you define the world in the command? I got that error too, but when i did
    /ll [world] -1000,-1000 1000,1000 it worked
     
  10. Offline

    flames

    very usefull plugin, thanks a lot.
    have also a feature request:
    generation of chunks + worldguard regions file based on predefined regions size.
    something like /ll world wg 50,50 10,10
    which would create 50x50 regions of 10x10 chunks size, both the world and a regions.yml that is exactly fitting the world
     
  11. Offline

    LibertasMens

    Very nice idea!!!
    I shall ponder upon it for 3 nights and days. (ie I'll think about it)
     
  12. Offline

    Schattenlilie

    Hi,

    i just tryed on my test server with -5000,-5000 5000,5000 and it is working fine ^^

    CB1000 + Java 1.7 on Debain 6 x64 - I7-950 16GB DDR3

    edit: I took about 45 mins

    Thx LibertasMens
     
  13. Offline

    Co12

    Code:
    22:54:10 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'll'
    in plugin LibertasLoader v0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    12)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHand
    ler
            at org.grush.libertasloader.LibertasLoader.hasPermission(LibertasLoader.
    java:78)
            at org.grush.libertasloader.LibertasLoader.onCommand(LibertasLoader.java
    :54)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 9 more
    I get this every time I try to generate a part of my world. Can someone please help? I use the correct format, I believe..
    /ll [world] x1,z1 x2,z2 {true/false}
    for example..
    /ll world -500,-500 500,500 true

    I downloaded the zip file (I believe it was v 0.2) and put it in my plugins folder, then started my bukkit launcher and reloaded before I tried the command. I've tried the command in-game as well as in the console.

    Does anyone know what I'm doing wrong?
     
  14. Offline

    Dead Fred

    I have the same problem on CB # 1000
     
  15. Offline

    Coolred303

    I really like this plugin and it is very useful on my server. It is a low memory server and crashes frequently due to travelers that go too far before the chunk is loaded. Thanks alot and I hope you keep updating the plugin :D.
     
  16. Offline

    phaed

    Looks like Liber is MIA. Trying to add a new world and need this plugin, so im taking the liberty of helping him out and upgrading the plugin a bit.

    Found the problem, it is in line 80 of LibertasLoader.java. It is calling a method that no longer exists:

    Code:
    player.isOp()
    I've compiled version 0.3 of this plugin:

    Added to this version:
    • Removed isOP check, now works on cb#1000
    • Can now be started through the console, no more need to be logged into your server
    • Now batches the chunks 100 at a time and uses the bukkit scheduler. In other words it lets your server breathe. No more slowdown and 100% cpu after a few chunks.
    • Cleaned up and standardized output messages
    • Sources can be found in the jar
    Download
     
  17. Offline

    codec

    @phaed

    Thanks for updating this but I am still getting an error. I tried running it as a player and in the console with the same result. Running cb 1000 with jre 7 x64. Also did you find a way to fix the issue with the chunks not populating? IE if you go to a fresh map and tell it to render say 1k units in all directions, can you see the chunks in a map viewer like dynmap?

    Code:
    ll world -1000 -1000 1000 1000
    2011-07-21 08:33:17 [INFO] [ll] Initializing chunk loading...←[0m
    2011-07-21 08:33:17 [WARNING] Unexpected exception while parsing console command
    
    org.bukkit.command.CommandException: Unhandled exception executing command 'll'
    in plugin LibertasLoader v0.3
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
            ... 6 more
    
     
  18. Offline

    phaed

    You are using it wrong, you don't have any commas. Granted he should not be requiring commas on the parameters. But non the less, its like this:

    ll world -1000,-1000 1000,1000

    • Fixed logic, now it actually does as described.
    • Removed commas from coordinates input
    V1.0
    Download

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

    LibertasMens

    First off, sorry to everyone who has needed anything or has made any requests; I recently started college and do not have my main rig here yet, so I have not gotten a chance to sit down and code.

    Secondly,
    This is extremely surprising to me. I had assumed that the loadChunk(int x, int z)method would refer to standard X,Z coordinates, which is why I am still surprised that it would refer to each chunk as one X,Z unit, rather than 16 X,Z units.

    Still, regardless, I am again sorry to anyone whose world I have seemingly over-loaded (pun), and I will be phaed's version, under his name and unless he would rather I didn't.
     
  20. Offline

    phaed

    Assumptions are ok, but probably should have testing it out before release. I fixed it up for you, no need to add my name to it.
     
  21. Offline

    LibertasMens

    I give credit where credit is due, and credit is due. :)
     
  22. Offline

    codec

    @phaed

    Thanks! I had tried with commas before but I used a space, like "-1000, -1000" and I guess that's what got me. Although I do have a few questions. Is there a way to speed it up? When its rendering it seems to be limited at 1 batch a sec and on my setup that's only using 1% of my cpu. And second it never seems to stop telling me its finished, see code below. I've let it go on for 5 mins and it was still telling me.

    Code:
    2011-07-21 18:20:34 [INFO] [ll] Generating batch 36/40←[0m
    2011-07-21 18:20:35 [INFO] [ll] Generating batch 37/40←[0m
    2011-07-21 18:20:36 [INFO] [ll] Generating batch 38/40←[0m
    2011-07-21 18:20:37 [INFO] [ll] Generating batch 39/40←[0m
    2011-07-21 18:20:38 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:38 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:39 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:39 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:40 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:40 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:41 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:41 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:42 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:42 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:43 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:43 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:44 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:44 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:45 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:45 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:46 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:46 [INFO] [ll] Generation Complete←[0m
    2011-07-21 18:20:47 [INFO] [ll] Generating batch 40/40←[0m
    2011-07-21 18:20:47 [INFO] [ll] Generation Complete←[0m
     
  23. Offline

    LibertasMens

    Not sure on your first problem, but I'll look into it.

    The second one I am currently working on. Fixed it, but I found another little error in the process.
     
  24. Offline

    TheBeast808

    I can't get it to work. I also tried 1.1. No matter what command I try, it doesn't recognize it. I've also tried just copy pasting the one from the main post.
     
  25. Offline

    phaed

    Take out the commas.
     
  26. Offline

    TheBeast808

    I tried that.
     
  27. Offline

    LibertasMens

    I recently updated 1.1, you might've gotten it before that.
     
  28. Offline

    TheBeast808

    I'm using 1.1. My first post on this thread was when I downgraded to see if previous issues had this problem.
     
  29. Offline

    LibertasMens

    Sorry to ask again, but I meant that I upgraded 1.1 itself recently. 1.1 had a bug, and I fixed it, but put it out under the same name.
    Just makin' sure we're on the same page.
     
  30. Offline

    TheBeast808

    Oh. Anyways, I just redownloaded 1.1 and tried again. Same thing.
     
  31. Offline

    LibertasMens

    Damn. When you input a command, exactly what happens?
     

Share This Page