StructureFloorCoordDict: Difference between revisions

From The Colonists
Jump to navigation Jump to search
No edit summary
minor clean up
Line 1: Line 1:
placeholder - explanation of structures footprint shown for structures(fields, etc.
placeholder - explanation of structures footprint shown for structures.




Footprint shown relative to floor_buildings.png, floor_base.png, or floor_base.png files <br>
Footprint shown relative to '''floor_buildings.png''', '''floor_base.png''', or '''floor_base.png files''' <br>


See SheepField, CowField & OrchardPlot and VegetablePlot, WheatField & CocoaPlot.<br>
See SheepField, CowField, OrchardPlot and VegetablePlot, WheatField, CocoaPlot.<br>
Example entry in render.json<br>
Example entry in render.json<br>
<pre>
{
{
   "structureFloorCoordDict": {
   "structureFloorCoordDict": {
Line 19: Line 20:


}
}
 
</pre>
Note currently using tiles in the x=29 to 31 and y=0 to 4 range. <br>
Note the current game plots use tiles in the x=29 to 31 and y=0 to 4 range. <br>
The X coordinate is offset by -2. E.g. if the base structure plot is at 0,0, use -2,0.<br>
The X coordinate is offset by -2. E.g. if the base structure plot is at 0,0, use -2,0.<br>
The game will calculate offsets from Y coordinate based on adjacent plot/field condition.<br>
The game will calculate offsets from Y coordinate based on adjacent plot/field condition.<br>
Line 26: Line 27:
Example image showing (from bottom to top): <br>
Example image showing (from bottom to top): <br>
All 4 sides adjacent to plots<br>
All 4 sides adjacent to plots<br>
2 corners adjacent to plots<br>
2 sides adjacent to plots<br>
3 sides adjacent to plots<br>
3 sides adjacent to plots<br>
2 opposite sides adjacent to plots<br>
2 opposite sides adjacent to plots<br>

Revision as of 17:35, 9 December 2022

placeholder - explanation of structures footprint shown for structures.


Footprint shown relative to floor_buildings.png, floor_base.png, or floor_base.png files

See SheepField, CowField, OrchardPlot and VegetablePlot, WheatField, CocoaPlot.
Example entry in render.json

{
  "structureFloorCoordDict": {
    "201": {  // mod structure ID
      "x": 29, // lighter green - see SheepField/ID=3, CowField/ID=4, OrchardPlot/ID=7
      "y": 0
    },
    "202": {   // mod structure ID
      "x": 27, // darker brown - see WheatField/ID=1, VegetablePlot/ID=2, CocoaPlot,/ID=9
      "y": 0
    }
  },

}

Note the current game plots use tiles in the x=29 to 31 and y=0 to 4 range.
The X coordinate is offset by -2. E.g. if the base structure plot is at 0,0, use -2,0.
The game will calculate offsets from Y coordinate based on adjacent plot/field condition.

Example image showing (from bottom to top):
All 4 sides adjacent to plots
2 sides adjacent to plots
3 sides adjacent to plots
2 opposite sides adjacent to plots
1 side adjacent to plots

Plot