joray created page: planetary map grid system

This commit is contained in:
Cekis
2015-12-18 10:52:10 -05:00
parent 17bc774fb6
commit 8fa0502c64

View File

@@ -14,7 +14,7 @@ Containers are just things like buildings or inventories. Basically, they hold
World containers are the highest level of container. Each world (space regions are considered "world" regions) has an object ID of 0 since they are the highest level. The ground in a non-space world is planar (parallel) with the Px and Pz axis with Px pointing North/South and Pz pointing East/West. The Py axis is elevation from the ground. All coordinates for layout can be positive or negative. Additionally, items may be rotated within the world container (see "[Rotation](https://swgilluminati.com/staff/swg-main/wikis/Datatable_Coordinates#rotation)" below). Each World container "shows" a space of 16000 wide by 16000 long, but that is just the graphical map size. The actual layout size does not consider a 320m "no travel" border that wraps around the entire map. In fact, the 0,0 point for layout consideration is actually at -7680, -7680 (lower left map corner). It's here that the layout TAB files also begin their own layouts. See attached PDF file for a visual reference.
#### TAB Map Grid
You'll notice that in the server buildout folders there are layout files that end with two numbers. These numbers correspond to their grid layout section on a planet map. The first "block" (or tab file) for layout is <planetname>_1_1.tab. This means it's the first block of the map starting from the lower left corner. <planetname>_8_1.tab is the lower right corner, <planetname>_8_8.tab is the upper right corner and <planetname>_1_8.tab is the upper left corner of the map.
You'll notice that in the server buildout folders there are layout files that end with two numbers. These numbers correspond to their grid layout section on a planet map. The first "block" (or tab file) for layout is <planetname>\_1\_1.tab. This means it's the first block of the map starting from the lower left corner. <planetname>\_8\_1.tab is the lower right corner, <planetname>\_8\_8.tab is the upper right corner and <planetname>\_1\_8.tab is the upper left corner of the map.
#### TAB Layout Coordinates
Each TAB file has a coordinate system as well, but that coordinate system starts at 0,0. As the world coordinate system applies, the coordinates within the tab ADD to the world coordinates to determine where an object spawns in the world. For example, <planetname>_7_2.tab starts it's 0,0 location at 3840, -6080. For this grid location, the object must fall within the coordinate space of 3840, -5760 and 5760, -3840 (the 1920 x 1920 block). Which means, layout coordinates for planetary buildouts should always be positive and less than or equal to 1920.