Inactive [TOOL/ADMIN] Minecraft Map Auto Trim v0.4.1

Discussion in 'Bukkit Tools' started by HWei, Sep 22, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Pezmantbh

    Thank you, I really appreciate it ;)
     
  2. Offline

    HWei

    Updated.
    Support both Anvil and McRegion format now. :)
    Not fully tested. Please report any bug.
     
  3. Offline

    Pezmantbh

    Here is a picture of when I ran it:
    http://piclair.com/a5b0u


    But the world folder stayed the same size. I am going to make the assumption it should have shrunk at least a bit.
    Thanks for updating, hope we can work out if this is a bug or if it is working as intended.
     
  4. Offline

    HWei


    The default setting will preserve all mine shafts and villages (because they contain wooden planks). So it will not delete many chunks.
    Try to set a custom preserve list.
     
  5. Offline

    Pezmantbh

    I removed wooden blocks from the list, and set the dilation to 2, and the filesize still stayed the same - Tried with two different worlds. I ran it the second time with 2 dilation and without the wooden block and it said "1002 toDelete" but nonetheless, the filesize still stayed the same, even the exact same number of bytes.

    Is this normal behavior?

    EDIT: I also changed the parameters so that it deleted every chunk, and the filesize stayed the same... The region files are all still there, and they are also the same size. On the old world format, would the actual physical size of the folder change at all after trimming?
     
  6. Offline

    HWei


    Try to use parameter "-p 63,68", which will only preserve signs. Mine shafts contain wooden planks, torches, fences, chests. It is hard to distinguish that from players' structures.

    Only when all the chunks in a region file be deleted, the region file would be deleted. The region file could not be resized to be smaller. So try to preserve less blocks and delete more chunks.
     
  7. Offline

    Pezmantbh

    I did that, all chunks were removed, and the region files are all still there :(
    It isn't a massive issue though, so thanks for updating it! :)
     
  8. Offline

    HWei

    Thank you for test. I will fix that after some days. :)
     
  9. Offline

    Pezmantbh

  10. Offline

    PsycheMonkey

    Thanks for updating! I will check it out.

    hmm... I tried to run it as instructed, and I got this error:

    Code:
    Reading chunks... 0% REGION READ r.-1.-1.mcr[0,7] = unknown version 0
    REGION READ r.-1.-1.mcr[0,7] = unknown version 0
    Exception in thread "main" java.lang.NullPointerException
    at me.hwei.mctool.world.ChunkHandle.initChunkPos<ChunkHandle.java:59>
    It continued like that for a few more lines that I didnt have time to copy down.

    Here is what I entered into cmd: java -jar mmat.jar -w Main -d 3

    The world was generated in 1.7.3, but new chunks were made in later patches.

    Any ideas what I did wrong?

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

    HWei

    Updated. Fix some bugs.

    Fix rectangle cut
    Fix old mcr chunk reading
    Fix unnecessary region files auto deleting

    As far as I know, "unknown version" only happens when a region file is not in a standard format or is corrupted.

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

    PsycheMonkey

    I will try it again with the updated version. Thanks for your reply and for all your work on this tool! Perhaps the fact that my woprld was generated in 1.7.3 caused the error?

    I also have a suggestion for making this tool more effective. (I have no idea how hard this will be to code) :
    The tool can look at the world seed, and determine what a chunk would contain originally. It could then compare this to the present chunk and deduce whether it should be deleted. (If more than 5 blocks are changed or something)

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

    Lolmewn Retired Staff

    Supports anvil? That's awesome!
     
  14. Offline

    HWei

    Sorry I don't know to do this... :(
     
  15. Offline

    _Robert

    You should add a parameter to only scan a certain range of height, from ie: -minY 64 -maxY 256, so you can only scan the surface for structures!
     
  16. Offline

    HWei

    That's a good idea. I will update it tomorrow.

    Updated. :cool:

    v0.4
    Add -y parameter to specify scan range of height.

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

    _Robert

    Dude, something it's wrong or i'm doing something wrong, i runned it multiple times and it's not deleting chunks that are all water and dont have any constructions on it!

    I'm using you tool and then i'm using the overviewer to generate a map of the world, and there are chunks everywere without any constructions on it that wasen't deleted!

    For ie, look at these multiple chunks full of water:

    http://postimage.org/image/4jbx0skjh/

    Im using this command to run it:

    Java -jar mmat.jar -d 1 -y 70,256 -p 19,20,22,23,25,26,27,28,29,33,34,35,36,41,42,43,44,45,46,47,53,54,55,57,59,60,61,63,64,65,66,67,68,69,70,71,72,75,76,77,80,84,87,88,89,91,92,93,94,96,98,102,101,108,109,112,114,121,123,124,116 -w "D:\Current\Minecraft\_tools\MCChunkDeleter\Genubi_Truncked"
     
  18. Offline

    HWei

    I made a stupid mistake...
    Update again.
    v0.4.1
    Fix -y parameter.
     
  19. Offline

    _Robert

    I'm gonna cry! Work's like a charm :'). Thanks!
     
  20. Offline

    intrawl

    Thank you very much for making this tool! It worked perfectly for my server's world. It was originally a 1.7.3 world, but now we have jungles and other new things in place of old unused chunks.
     
  21. Offline

    ratty

    This is an awesome tool, except that if you want to run it on a big map, you'll need a lot of RAM. I use it on an 8000x8000 map, to make a much cleaner looking overviewer map, and it uses about 9G of RAM.
     
  22. Offline

    LEOcab

    Hey there! I love your program. I've used it several times to clean up my server's world. :)

    I have a request: can you let the program use non-vanilla block ID's? I want to clean up my new Tekkit server before I upgrade it to Tekkit 3, but MMAT seems to filter out all ID's it doesn't know about and work only with the supplied ID's that are vanilla.

    Thanks! :D
     
  23. Offline

    coolo1

    This is sooo useful!!! I used this to get rid of random borders(Walls between biomes, up to 30 blocks tall) from the world being genned in different versions!
     
  24. Offline

    coolo1

    I use this to get rid of most stuff, but sometime it does not work if people build too low... btw this was coppied from
    Java -jar mmat.jar -d 1 -y 70,256 -p 19,20,22,23,25,26,27,28,29,33,34,35,36,41,42,43,44,45,46,47,53,54,55,57,59,60,61,63,64,65,66,67,68,69,70,71,72,75,76,77,80,84,87,88,89,91,92,93,94,96,98,102,101,108,109,112,114,121,123,124,116 -w
     
  25. Offline

    Ne0nx3r0

    When running this on a 3.6GB world of mine I get:
    Any ideas?
     
  26. Offline

    Unborn

    Hey there, just letting you know that there is a bug with the -r parameter which causes it to compare X coordinates to Z coordinates, which obviously doesn't work as intended.

    The particular code causing the bug is a simple typo found on line 84 of MapAutoTrim.java, and can easily be fixed by replacing pos.getLeft() with pos.getRight().

    Apart from that it worked great, thanks!
     
  27. Offline

    BranicYeti

    I get the same error, but when I do my Nether and End worlds. I assume that they are somehow linked...
     
  28. Offline

    WhiffleX

    This looks very promising, but I ran it on my 11gb world with the following params:

    java -jar mmat.jar -w /dev/shm/minecraft/world/ -d 2 -p 19,20,22,23,25,26,27,28,29,34,36,41,42,43,45,46,55,57,63,66,68,69,70,71,75,76,77,80,84,87,88,89,91,92,93,94,96,108,116,117,118,130,139

    And it only removed about 200k chunks leaving 1.8m. My world is still 11gb. I'm curious if this deletes the chunk data from the region files or only deletes region files in their entirety? I'm sure there are many chunks that need to be removed from regions that need to remain.

    After testing this a bit more I've decided to revert back to my backup. It did some strange things in the deleted chunks. I think rather than delete the data associated with them it only flags them as nonexistent. Then when they're generated there are artifacts such as ferns and grass on the dirt in the caves. While I managed to delete a substantial number of chunks the file size of my world didn't change much, so this didn't serve its purpose.

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

    hawkfalcon

    OP has not been on since april.
     
Thread Status:
Not open for further replies.

Share This Page