by
Shu
» 01 Oct 2014, 19:39
Okay, it seems a bit more complicated than that. There is no dedicated table for tunnels, all changes to the original terrain are stored in the "geo_patch" table. Tunnels and other general terra-forming actions together.
What I was able to deduct is:
- Entries with "Action" = 1 add something, and = 2 subtracts something.
- Every subtraction is accompanied with a variety of additions.
- For "lower ground", these are quite straight forward and just add in the next lower layer.
- The base terrain seems to not be stored in the DB, just the alterations to it. (The game creates new data for formerly covered layers on the fly it seems.)
- For tunneling there seems to be a quite complex "bundle" of subtractions and additions, and I have not yet figured out which values create what kind of walls/ceiling/pieces to fill in gaps to other tiles, or how the subtractions are to be read.
My conclusions so far thus are:
- Clearing the "geo_patch" table entirely should effectively undo all terrain alterations ever made.
- Buildings and objects would be unaffected, at least from the DB point of view. I don't know how the game would react to these, but I assume you'd just get floating/sunken in structures.
- Buildings and such could be spread out in the movable, immovable objects and buildings table. I've yet to gather what exactly is in which table.
Only backing up all characters with all the attached containers and items isn't trivial as well, since those tables also contain non-character bound things. If I fond the time, I might cook up a script, but I don't know if that would be too late for you.