Bases - Terrain Edit limit / Render Count issues

Decided to organise the “TerrainEdits” data I have so far from the save file. It does not seem to be much, but might be useful to some. There certainly is some logic to it, but I may need to dive into the source code to actually fully figure it out. Not sure I want to …

“GalacticAddresses”

  • Seems logical, although some entries have a different format, either decimal, or Hex (0x prefix)
  • Hex may be used for actual bases, while decimal is used for regions/sectors?
  • Easy to verify elsewhere in save data
  • 256 entries total (indexed)

“BufferSizes”

  • Amount of ‘Data’ values stored per indexed ‘GalacticAdress’
  • 256 entries total (indexed)

“BufferAges”

  • Unclear how this works, but assuming some value for edit age
  • Values range from -128 to 127 per index, no duplicates it seems?
  • New save starts conveniently at 0 to 127, then switch to -128 to -1
  • Large save shows these being shuffled all over the place.
  • New entries appear to be based on location, chunked somehow?
  • 256 entries total (indexed)

“BufferAnchors”

  • I have to assume planetary coordinates here, X, Y, and Z?
  • Quite high value for height (Y) though, but might be calculated from core.
  • Does not appear to be an offset from existing spot like Base Computer is used as origin for building parts.
  • 256 entries total (indexed)

“Edits”

  • Contains ‘Data’ and ‘Position’ per index
  • ‘Data’ values appear to be a type of removal or addition, as becomes clear from Terrain Manipulator data below.
  • ‘Position’ is a single large decimal value, either positive or negative.
  • Each possible Terrain Manipulator edit, has its unique ‘Data’ value. Always a single entry as a result!
  • Base parts edits however, can have varying amounts of the same ‘Data’ value, but this value can also differ!
  • 15000 entries total (indexed arrays, with count of ‘BufferSizes’)

Some ‘Data’ counts from creative save

Data Count
-41 2
-105 4
-9 4
127 55
31 67
57 1
9 33
16 6
25 2
15 55
32 1
sub-Total 230
0 14770
Total 15000

Terrain Manipulator ‘Data’ values in ‘Edits’

Deleting terrain, always round shape, 3 sizes

Shape Data value
Small 0
Normal 32
Large 96

Adding terrain, round or square shape, 8 sizes, 5 materials

Base Rock Mountain Underwater Cave
Shape Size Data value Data value Data value Data value Data value
round 1 1 2 3 4 5
2 17 18 19 20 21
3 33 34 35 36 37
4 49 50 51 52 53
5 65 66 67 68 69
6 81 82 83 84 85
7 97 98 99 100 101
8 113 114 115 116 117
square 1 9 10 11 12 13
2 25 26 27 28 29
3 41 42 43 44 45
4 57 58 59 60 61
5 73 74 75 76 77
6 89 90 91 92 93
7 105 106 107 108 109
8 121 122 123 124 125

Some random data:

Wooden Floor L: 9 x 111 on top flat terrain
9 x 15 sunk half into hill
16 x 31 cover hole, sunk both side edges
15 x 31 pretty much same spot, but placed from opposite side (180 rotation)
Wooden Floor S: 4 x 79

Hmmm, varying data values as well as different amounts possible for same item. Always a multiple of the Data value it turns out to be though.
This is going to take a while … :frowning:

7 Likes