User Tools

Site Tools

Urban Games

modding:constructiontypes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
modding:constructiontypes [2020/06/15 15:53]
yoshi [Stations]
modding:constructiontypes [2020/06/15 15:57]
yoshi [Terminal Groups]
Line 77: Line 77:
  
 Please note, that it is currently not possible to select the lane of streets that are defined by edges in the construction for the vehicle node. By default, the vehicleNode will be placed on the first lane that is most likely a sidewalk. Please note, that it is currently not possible to select the lane of streets that are defined by edges in the construction for the vehicle node. By default, the vehicleNode will be placed on the first lane that is most likely a sidewalk.
 +
 +Once a ''result.terminalGroups'' block is defined, non grouped terminals are ignored.
 +
 +==== Assignment of Terminals to Stations ====
 +
 +To distinguish between the passenger and cargo part of a station, the ''result.stations'' list is used. 
 +It contains a list of sub stations each with their own properties:
 +  * ''terminals'' is a list of terminalGroup ids that are fetched in the order of the groups in ''result.terminalGroups''.
 +  * ''tag'' is an integer that is used to match a station to the station with the same tag before the update of the construction. If some orders change, this would lead to broken lines otherwise.
 +
 +<code lua>
 +result.stations = {
 +  { 
 +    terminals = { 0,1 }, 
 +    tag = 0
 +  },
 +  { 
 +    terminals = { 2,3 }, 
 +    tag = 1
 +  },
 +  ...
 +}
 +</code>
 +The same is done for terminals of different carrier types.
 ===== Depots ===== ===== Depots =====
 Depots are the places where the vehicles can be bought by the player. The construction files for depots lay in ''res/construction/depot/''. There are no additional property blocks for depots. Instead, a used model has a ''vehicleDepot'' block. The ''updateFn'' does not contain any special params except the custom parameters of the construction. Depots are the places where the vehicles can be bought by the player. The construction files for depots lay in ''res/construction/depot/''. There are no additional property blocks for depots. Instead, a used model has a ''vehicleDepot'' block. The ''updateFn'' does not contain any special params except the custom parameters of the construction.
modding/constructiontypes.txt · Last modified: 2023/02/04 14:32 by yoshi