Solved Chunk Errors in a large world

Discussion in 'Bukkit Help' started by BadReuben, Feb 2, 2013.

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

    BadReuben

    I am currently having chunk errors that crashes the server every time that the chunks are loaded into memory. I could not find a plugin that would work to reset the chunks in 1.4.7. Also, the world is 2.5GB, and MCedit does not open it, due to it's size. Chunkster is also outdated.

    I was able to see the affected area, it is all at the edge of what has already been generated, and it would not be a problem for the effected chunks to just be reset.

    These errors appear after I attempt to login, next to the area.

    Code:
    net.minecraft.server.v1_4_R1.Chunk.getTypeId(Chunk.java:350)
    02.02 14:21:21 [Server] SEVERE at net.minecraft.server.v1_4_R1.ChunkSection.a(ChunkSection.java:41)
    02.02 14:21:21 [Server] SEVERE java.lang.ArrayIndexOutOfBoundsException: -271
    02.02 14:21:21 [Server] INFO Chunk file at 827,4480 is in the wrong location; relocating. (Expected 827, 4480, got 826, 4489)
    02.02 14:21:21 [Server] INFO Chunk file at 827,4499 is in the wrong location; relocating. (Expected 827, 4499, got 827, 4484)
    02.02 14:21:21 [Server] INFO Chunk file at 816,4481 is in the wrong location; relocating. (Expected 816, 4481, got 821, 4482)
    02.02 14:21:21 [Server] INFO Chunk file at 811,4490 is in the wrong location; relocating. (Expected 811, 4490, got 822, 4488)
    02.02 14:21:21 [Server] INFO Chunk file at 816,4482 is in the wrong location; relocating. (Expected 816, 4482, got 828, 4482)
    02.02 14:21:21 [Server] INFO Chunk file at 828,4484 is in the wrong location; relocating. (Expected 828, 4484, got 827, 4500)
    02.02 14:21:21 [Server] INFO Chunk file at 827,4492 is in the wrong location; relocating. (Expected 827, 4492, got 827, 4489)
    02.02 14:21:21 [Server] INFO Chunk file at 826,4493 is in the wrong location; relocating. (Expected 826, 4493, got 825, 4484)
    02.02 14:21:21 [Server] INFO Chunk file at 822,4485 is in the wrong location; relocating. (Expected 822, 4485, got 806, 4484)
     
  2. Offline

    zipfe

    Can't you guess which .mca file it is on your hard drive?

    Either make an educated guess (on a copy of the world, of course) or get at least near the problematic area and do something like WorldEdits //chunkinfo to find the physical .mca file.

    Then go ahead and delete the .mca, might even be several if a huge area is affected.

    Or check this out:

    http://www.minecraftwiki.net/wiki/Region_file_format

    There's a formula to get the .mca filename from the X and Z coordinates.
     
    BlakkDock likes this.
  3. Offline

    BadReuben





    This solved the issue, thanks. It would have definately been a guess without knowing the formula.

    The formula is:
    int localX = (int)floor(chunkX / 32.0); int localZ = (int)floor(chunkZ / 32.0);
    where (int) is a cast and removes the decimal places.
     
Thread Status:
Not open for further replies.

Share This Page