Simulation: Difference between revisions

From NIMBY Rails Wiki
Jump to navigation Jump to search
(Created page with "{{Concepts sidebar}} The game simulation takes the player's inputs such as stations, lines, trains and their timetable and uses them to simulate the day to day operation of a railway transport network. The main elements of the simulation are: *Trains run to their next scheduled stop, reserving paths along the way and obeying any signals *Pax are spawned at each origin station, pathfind their way to their d...")
 
(Removing some (probably) unnecessary links, fixing one and rewriting some text for compactness)
 
Line 1: Line 1:
{{Concepts sidebar}}
{{Concepts sidebar}}
The game [[simulation]] takes the player's inputs such as [[stations]], [[line]]s, [[train]]s and their [[timetable]] and uses them to simulate the day to day operation of a railway transport network.
The game [[simulation]] takes the player's inputs such as [[station]]s, [[line]]s, [[train]]s and their [[timetable]]s and uses them to simulate the day to day operation of a railway transport network.
The main elements of the simulation are:
The main elements of the simulation are:
*[[Train]]s run to their next scheduled [[stop]], reserving [[path]]s along the way and obeying any [[signal]]s
*[[Train]]s run to their next scheduled [[stop]], reserving [[path]]s along the way and obeying any [[signal]]s
*[[Pax]] are spawned at each [[origin]] station, [[pax pathfinding|pathfind]] their way to their [[destination]], and [[pax boarding|board]] trains that get them there
*[[Pax]] are spawned at each [[origin]] station, pathfind their way to their [[destination]], and [[pax boarding|board]] trains that get them there


== Simulation data and saving ==
== Simulation data and saving ==
Line 12: Line 12:
*[[Accounting]] events including [[money]]
*[[Accounting]] events including [[money]]


The following game simulation data is not saved and is recalculated each time on reload:
Pax pathfinding cache and [[line]] timings (but not lines themselves) aren't saved by the game. Instead, they are computed every time upon reloading.
*[[Pax pathfinding]] cache
*[[Line]] timings. Lines are stored by the game as a collection of stops and other input data (such as custom timings). Automatically calculated times between two stops are recalculated on reload.


== Simulation speed==
== Simulation speed==
The game has four simulation speed settings
The game has four simulation speed settings. These are 1x, 10x, 100x and "As fast as possible". The last one disables the map and the UI while it's active.
*1x
*10x
*100x
*"As fast as possible", which disables the [[UI]]

Latest revision as of 22:26, 23 December 2024

NIMBY rails game concepts
Geography
Map objects
Line concepts
Train concepts
Simulation

The game simulation takes the player's inputs such as stations, lines, trains and their timetables and uses them to simulate the day to day operation of a railway transport network. The main elements of the simulation are:

Simulation data and saving[edit]

Depending on the size of the network, running the game simulation generates a large amount of data. The following data from the simulation state is stored in the save game file:

  • All pax, their exact location and final destination
  • The exact location and run of each train
  • Accounting events including money

Pax pathfinding cache and line timings (but not lines themselves) aren't saved by the game. Instead, they are computed every time upon reloading.

Simulation speed[edit]

The game has four simulation speed settings. These are 1x, 10x, 100x and "As fast as possible". The last one disables the map and the UI while it's active.