This tool allows you to remove all chunks outside a circle, very useful when your map has been heavily explored, making your world file size explode. Only a circle shape is supported for now, but you can move the center. You can also choose to remove only what is inside the circle.
It is in java with command line, so unlike most other programs you can execute it directly on your Linux server. Works very nicely with BIG maps, as it doesn't load the map in memory.
Put it in your world folder, et execute it from here in command line (cd to change directory)
Parameters :
Mincraft chunk removal : remove chunks inside or outside a circle
-s : statistics only (no removal)
-r [radius] : specify radius in blocks
-o [x block coord] [z block coord] : optional, center of the circle
-i : invert (remove chunks inside the circle)
Before : my map has been explore griefed
Output with statistics
After use of ChunksRemoval, only the area inside the circle remains
Use the same radius and set it to use radius only.
Thanks but not everyone use Hey0 mod. I did create my own borderlands plug-in with smp api that works very well, players are not allowed to exit the circle.
The problem is to remove all the chunks created before a plugin is installed :smile.gif: That's what my tool do.
Use the same radius and set it to use radius only.
Sorry, I first thought you were telling my tool is useless as you can prevent expansion with your plugin. Yes, both tools work very well together :smile.gif:
Btw switching soon to Hey0 so I will use your plugin too :wink.gif:
I am having an issue with my map EXPLODING from 60-70 megs to 1.53 gigs... This will help a immensely with trimming it down and figuring out if there is a greater issue with the map instead of just wiping the whole thing.
Wanted to just post a pic... yah this worked great on my server after the boo updated. Everyone went out looking for Biomes and made the world files insanely large. Which was causing some problems with doing server renders & regular backups.
The tool worked great and is easy to use! Here is a pic of my world after being cropped:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at chunksremoval.Chunks.chunkCoordsFromFileName(Chunks.java:56)
at chunksremoval.Main.main(Main.java:116)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at chunksremoval.Chunks.chunkCoordsFromFileName(Chunks.java:56)
at chunksremoval.Main.main(Main.java:116)
It seems you have files in your world chunks directories that are not chunk files. I will add an exception handling for those.
i'm trying to run this on my server and i seem to be having a bit of an issue
i copy the jar into the 'world' folder (mines named nomnom because of the server apparently). I then execute the following
java ChunksRemoval.jar -s -r 500 -o 134.5 118.5
and it says
Exception in thread "main" java.lang.NoClassDefFoundError: ChunksRemoval/jar
Caused by: java.lang.ClassNotFoundException: ChunksRemoval.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
cd ~/Desktop/iDrago/bin/world/
java -jar ChunksRemoval.jar -r 1000
I am getting this error.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at chunksremoval.Chunks.chunkCoordsFromFileName(Chunks.java:56)
at chunksremoval.Main.main(Main.java:116)
It is in java with command line, so unlike most other programs you can execute it directly on your Linux server. Works very nicely with BIG maps, as it doesn't load the map in memory.
It also works with Windows.
Make a copy of your map before trying it ! Use at your own risks !
Download : http://dl.dropbox.com/u/4422249/Green%20City/ChunksRemoval.jar
Put it in your world folder, et execute it from here in command line (cd to change directory)
Parameters :
Mincraft chunk removal : remove chunks inside or outside a circle
-s : statistics only (no removal)
-r [radius] : specify radius in blocks
-o [x block coord] [z block coord] : optional, center of the circle
-i : invert (remove chunks inside the circle)
Before : my map has been explore griefed
Output with statistics
After use of ChunksRemoval, only the area inside the circle remains
Gain : from 151mb to 70mb :smile.gif:
After using it, it would be wise to install the borderland plungin for Hey0 :wink.gif: (if you are using Hey0's mod)
http://forum.hey0.net/viewtopic.php?id=260
Credits to BeeTLe BeTHLeHeM for part of the code (chunk names conversions) : viewtopic.php?f=25&t=26068
keywords : remove chunk, remove chunks, chunk delete, chunks delete
MoveCraft !
Chunks Removal Tool
BackupArea plugin
Edit* All is fine ...
MoveCraft !
Chunks Removal Tool
BackupArea plugin
http://forum.hey0.net/viewtopic.php?id=260
Use the same radius and set it to use radius only.
Please consider donating if you appreciate my work!
Thanks but not everyone use Hey0 mod. I did create my own borderlands plug-in with smp api that works very well, players are not allowed to exit the circle.
The problem is to remove all the chunks created before a plugin is installed :smile.gif: That's what my tool do.
MoveCraft !
Chunks Removal Tool
BackupArea plugin
Sorry, I first thought you were telling my tool is useless as you can prevent expansion with your plugin. Yes, both tools work very well together :smile.gif:
Btw switching soon to Hey0 so I will use your plugin too :wink.gif:
MoveCraft !
Chunks Removal Tool
BackupArea plugin
Please consider donating if you appreciate my work!
MoveCraft !
Chunks Removal Tool
BackupArea plugin
If you moved the spawn point with /setspawn, then you have to move the origin with -o
MoveCraft !
Chunks Removal Tool
BackupArea plugin
The tool worked great and is easy to use! Here is a pic of my world after being cropped:
I plan to merge it with my BackupArea plugin for hey0, so we can define the area(s) ingame !
MoveCraft !
Chunks Removal Tool
BackupArea plugin
It seems you have files in your world chunks directories that are not chunk files. I will add an exception handling for those.
MoveCraft !
Chunks Removal Tool
BackupArea plugin
i copy the jar into the 'world' folder (mines named nomnom because of the server apparently). I then execute the following
java ChunksRemoval.jar -s -r 500 -o 134.5 118.5
and it says
Exception in thread "main" java.lang.NoClassDefFoundError: ChunksRemoval/jar
Caused by: java.lang.ClassNotFoundException: ChunksRemoval.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
any ideas?
i had to change the command like to say
"java -jar blahblahblah"
all set, thanks =)
I am getting this error.