Posts: 14,061
Thanks: 38359 in 178 Posts
28 Achievements
View My Journal
Portal Placement
Here are the algorithms for correctly placing the portals in the default positions. For now, the LotExpander is leaving the direction of the portals alone; I need to fix this.
Pedestrian direction should point into the lot from the edge. Vehicle direction should always point from Start to Stop, and Stop should point away from Start (that is, in the opposite direction).
X is the value at offset 80 = 0x50 in XOBJ
Y is the value at offset 84 = 0x54 in XOBJ
Please see the attached picture for help in determining the Height and Width of your lot, based on your lot rotation (U11).
U11 = 0 (Left):
Pedestrian:
X = 0.5
Y = 9.5
X = Height - 0.5
Y = 9.5
Car Start:
X = 1.5
Y = 5.5
Car Stop:
X = Height / 2 + 1.5
Y = 5.5
Service Start:
X = Height - 1.5
Y = 4.5
Service Stop:
X = Height / 2 - 1.5
Y = 4.5
U11 = 1 (Top):
Pedestrian:
X = Height - 9.5
Y = 0.5
X = Height - 9.5
Y = Width - 0.5
Car Start:
X = Height - 5.5
Y = 1.5
Car Stop:
X = Height - 5.5
Y = Width / 2 + 1.5
Service Start:
X = Height - 4.5
Y = Width - 1.5
Service Stop:
X = Height - 4.5
Y = Width / 2 - 1.5
U11 = 2 (Right):
Pedestrian:
X = Height - 0.5
Y = Width - 9.5
X = 0.5
Y = Width - 9.5
Car Start:
X = Height - 1.5
Y = Width - 5.5
Car Stop:
X = Height / 2 - 1.5
Y = Width - 5.5
Service Start:
X = 1.5
Y = Width - 4.5
Service Stop:
X = Height / 2 + 1.5
Y = Width - 4.5
U11 = 3 (Bottom):
Pedestrian:
X = 9.5
Y = Width - 0.5
X = 9.5
Y = 0.5
Car Start:
X = 5.5
Y = Width - 1.5
Car Stop:
X = 5.5
Y = Width / 2 - 5.5
Service Start:
X = 4.5
Y = 1.5
Service Stop:
X = 4.5
Y = Width / 2 + 1.5