Pax: Difference between revisions

From NIMBY Rails Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
# Pick a random station from the weighted list of possible stations.
# Pick a random station from the weighted list of possible stations.


 
== Pax pathfinding  logic ==
 
== Pax spawning ==
Pax spawn at a station
Pax spawn at a station


== Pax spawning ==
== Pax boarding behaviour ==


== Index of pax static properties ==
== Index of pax static properties ==

Revision as of 16:30, 21 December 2022

In NIMBY Rails a passenger (also abbreviated as pax) is a person who travels on a train from an origin to a destination station. This page considers both the rules governing pax behaviour as well as static and dynamic properties of pax. As a lot of the NIMBY Rails simulation concerns pax in some way, not all topics are covered in detail here. Please refer to the linked pages as appropriate. As part of the development roadmap, it may be possible to use rules mods in the future to change the rules governing pax behaviour, such as base demand and the expectations that drive satisfaction.

New pax spawning

New pax spawn in stations according to the spawn rate of a station. The place the pax spawned in is referred to as their origin station. Pax are allocated immediately to one of the three distance categories: local, regional and long distance. The total spawn rate is determined by the following factors:

  • Demand governs the base spawn rate, separately for each distance category.
  • Station average satisfaction can increase or decrease the spawn rate compared to the base demand.

Upon spawning pax choose a destination station. The destination picking process can be seen in three steps

  1. Consider the list of all possible stations within the pax' distance category. This uses the "as the crow flies" distance, without accounting for actual railway routes or the presence of mountains, oceans, etc.
    • Local: 0 to 15km
    • Regional 15km to 100km
    • Long distance More than 100km.
  2. Probability weight each possible destination station by the destination coverage and the number of unique lines stopping there. The precise maths for this are not disclosed.
    • The number of unique lines effect appears to be roughly linear: stations with the same coverage but twice the number of lines will see twice the number of passengers picking it as destination.
    • Coverage appears to have a nonlinear impact, with stations that have very low coverage still attracting a "default" level of destinations.
  3. Pick a random station from the weighted list of possible stations.

Pax pathfinding logic

Pax spawn at a station

Pax boarding behaviour

Index of pax static properties

Pax pathfinding results in the following properties being applicable to pax at any point in time.


Pax groups

The game represents pax