#42.13.1 Reset Chunk Data

1 messages · Page 1 of 1 (latest)

thorn raptor
#

Has anyone successfully been able to reset map chunks in b42? I have some corrupted chunks somehow in my server, so I'm trying to regenerate everything except my base.

There is a new map data layout of map/<x_coord_divided_by_ten>/<y_coord_divided_by_ten>.bin from what I can see instead of map_<x>_<y>.bin. I deleted all x and y files outside of my base's 3x3 cell, but it still resets the entire map including my base instead of only everything outside of it.

My script does the following:

  1. If x is not in my 3x3 cell, delete the entire <x_coord> directory
  2. If x is in my 3x3 cell, delete all <y_coord.bin> files that are outside of my 3x3 cell

I also tested deleting all but the 9 files corresponding with my cells in the chunkdata folder. Both with and without doing this, the behavior is the same. I'm not 100% sure what is stored in these.

I validated that the files left after the script are only in that area, but it still resets the entire 3x3 cell in addition to the rest of the map. Is this at least conceptually the correct way to do it? Has anyone gotten this to work?

cedar nacelle
#

The coords are now 8x8, so you have to divide the coordinates by 8

#

Coordinate 10000x10000 will be located in the folder 1250 in the file 1250

thorn raptor
#

Ah, there is my issue. I'll adjust my logic accordingly. Thank you!

Do I also need to clear chunkdata, or does that get reset as long as the map data is deleted?

cedar nacelle
#

It gets reset along the map data as far as I am aware

#

Just the map.bins are enough