Difference between revisions of "Speed"

From Unrailed! Wiki
Jump to navigation Jump to search
imported>Saldejummi
m
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[File:Speedometer.png|frame|right|Speedometer]]
+
[[File:Speedometer.png|thumb|160x160px|Speedometer]]
 
Speed is the distance that the [[train]] travels in a second. The game measures distance using in-game meters. One meter equals one tile. For example if the [[train]] speed is .250 m/s the [[train]] advances one tile in four seconds.
 
Speed is the distance that the [[train]] travels in a second. The game measures distance using in-game meters. One meter equals one tile. For example if the [[train]] speed is .250 m/s the [[train]] advances one tile in four seconds.
  
The speedometer in the top left corner of the screen shows the initial speed of the [[train]] when it leaves the station, calculated by the base speed of your [[train]] engine itself and the distance since the last engine upgrade. The speedometer increases every time a station is reached or skipped and increases or decreases proportionate to the number of players in your game. The [[train]] speed is automatically adjusted when connecting to and disconnecting from the game. Inside the shop, the speedometer can be reset to the starting speed by upgrading the engine. However, upgrading the engine increases the base speed permanently.
+
== Speedometer speed ==
  
The following table shows speed increase per engine upgrade in different versions:
+
The speed displayed at the top left corner of the screen is calculated based on the base speed of your [[train]] engine itself and the distance since the first station in the current biome. The speedometer increases every time a station is reached or skipped and increases or decreases proportionate to the number of players in your game. The [[train]] speed is automatically adjusted when connecting to and disconnecting from the game. The speedometer can be reset to the starting speed by heading to the next biome (upgrading the engine or entering the mine shaft).
 +
 
 +
== Actual speed ==
 +
 
 +
Most of the time, the actual speed of the train is not the same as the one indicated by the speedometer. The actual speed of the train also heavily depends on the number of tracks placed in front of the train.
 +
 
 +
When there are 6.666 tracks placed ahead of the train, the actual speed of the train matches the speedometer.
 +
 
 +
The train speed is minimized when there are less than or equal to 3 tracks placed ahead of the train. At this time, the actual speed of the train is the speedometer speed minus 0.05m/s.
 +
 
 +
The train speed is maximized when there are more than 25 tracks placed ahead of the train. At this time, the actual speed of the train is the speedometer speed plus 0.25m/s.
 +
 
 +
For any number of tracks (n) between 3 and 25, the actual speed equation is (3n - 20) / 220 + x where x is the speedometer speed.
 +
 
 +
== Level start ==
 +
 
 +
When the level starts (when the tools are spawned) the train will be stationary for 15 seconds before it starts going. When the train stops at a station, it will leave 0.5m of track ahead. Since 1m of track is automatically spawned in front of the train at the start of the level, there will be a total of 1.5m of track at the start of every level. As such, it will take 45 seconds in total to crash your train in the first level.
 +
 
 +
== Strategy ==
 +
 
 +
When the track layer needs to buy time for the teammates, the track layer should maintain the number of tracks ahead of the train as low as possible without risking crashing the train. Making loops is also effective, however, long loops can waste many resources, decreasing the team's efficiency.
 +
 
 +
The speed can also be slowed by using the [[Brake Wagon]].
 +
 
 +
== Stats ==
 +
 
 +
The following table shows the base speed of the engine in each biome as well as the player mining speed.
  
 
{| class="article-table"
 
{| class="article-table"
 
|-
 
|-
! Version !! 2 Players !! 3 Players !! 4 Players
+
! Biome      !! Base speed (2 Players) !! Base speed (3 Players) !! Base speed (4 Players) !! Mining speed
 
|-
 
|-
| Legacy || 0.0143 || 0.0175 || 0.0200
+
| Plains    || 0.100 || 0.130 || 0.150 || 0.500
 +
|-
 +
| Desert    || 0.116 || 0.148 || 0.169 || 0.533
 +
|-
 +
| Snow      || 0.131 || 0.165 || 0.187 || 0.600
 +
|-
 +
| Underwater || 0.131 || 0.165 || 0.187 || 0.625
 +
|-
 +
| Lava      || 0.147 || 0.183 || 0.206 || 0.635
 +
|-
 +
| Space      || 0.162 || 0.200 || 0.224 || 0.704
 +
|-
 +
| Mars      || 0.147 || 0.183 || 0.206 || 0.784
 
|-
 
|-
| Current || 0.0155 || 0.0175 || 0.0185
 
 
|}
 
|}
  
The [[train]] speed can be different than what the speedometer shows. The speed can be increased by placing many tracks ahead. The [[train]] can be slowed back down to the speed it was before the increase by reducing the amount of tracks in front of the [[train]]. The speed can also be slowed by using the [[Brake Wagon]].
+
The following graph shows the speed in relation to distance without engine upgrades in legacy and current builds with varying player count:
  
The following graph shows the speed in relation to distance without engine upgrades in old legacy version and in current build with varying player count:
+
[[File:Speed Graph.png|frameless|600x400px]]
  
[[File:Unrailed speed graph 02.png|frameless|897x601px]]
+
The formula for speed is a polynomial y = ax^2 + bx + c, where y is speed, and x is distance. The following table shows coefficients that fit the curves in the graph above quite closely:
 +
 
 +
{| class="article-table"
 +
|-
 +
! Player Count !! a !! b !! c
 +
|-
 +
| 2 Players Current || 0.000000089397301 || 0.000315421241811 || 0.093460656990069
 +
|-
 +
| 3 Players Current || 0.000000127407058 || 0.00037106459886 || 0.121522536287242
 +
|-
 +
| 4 Players Current || 0.000000145257097 || 0.000396842226627 || 0.140355233002292
 +
|-
 +
| 2 Players Legacy || 0.000000066574598 || 0.000275799322662 || 0.104916730328495
 +
|-
 +
| 3 Players Legacy || 0.000000121705155 || 0.000363289157305 || 0.131692131398014
 +
|-
 +
| 4 Players Legacy || 0.000000176765302 || 0.000437183289738 || 0.153868601986249
 +
|}

Latest revision as of 13:08, 14 November 2023

Speedometer

Speed is the distance that the train travels in a second. The game measures distance using in-game meters. One meter equals one tile. For example if the train speed is .250 m/s the train advances one tile in four seconds.

Speedometer speed

The speed displayed at the top left corner of the screen is calculated based on the base speed of your train engine itself and the distance since the first station in the current biome. The speedometer increases every time a station is reached or skipped and increases or decreases proportionate to the number of players in your game. The train speed is automatically adjusted when connecting to and disconnecting from the game. The speedometer can be reset to the starting speed by heading to the next biome (upgrading the engine or entering the mine shaft).

Actual speed

Most of the time, the actual speed of the train is not the same as the one indicated by the speedometer. The actual speed of the train also heavily depends on the number of tracks placed in front of the train.

When there are 6.666 tracks placed ahead of the train, the actual speed of the train matches the speedometer.

The train speed is minimized when there are less than or equal to 3 tracks placed ahead of the train. At this time, the actual speed of the train is the speedometer speed minus 0.05m/s.

The train speed is maximized when there are more than 25 tracks placed ahead of the train. At this time, the actual speed of the train is the speedometer speed plus 0.25m/s.

For any number of tracks (n) between 3 and 25, the actual speed equation is (3n - 20) / 220 + x where x is the speedometer speed.

Level start

When the level starts (when the tools are spawned) the train will be stationary for 15 seconds before it starts going. When the train stops at a station, it will leave 0.5m of track ahead. Since 1m of track is automatically spawned in front of the train at the start of the level, there will be a total of 1.5m of track at the start of every level. As such, it will take 45 seconds in total to crash your train in the first level.

Strategy

When the track layer needs to buy time for the teammates, the track layer should maintain the number of tracks ahead of the train as low as possible without risking crashing the train. Making loops is also effective, however, long loops can waste many resources, decreasing the team's efficiency.

The speed can also be slowed by using the Brake Wagon.

Stats

The following table shows the base speed of the engine in each biome as well as the player mining speed.

Biome Base speed (2 Players) Base speed (3 Players) Base speed (4 Players) Mining speed
Plains 0.100 0.130 0.150 0.500
Desert 0.116 0.148 0.169 0.533
Snow 0.131 0.165 0.187 0.600
Underwater 0.131 0.165 0.187 0.625
Lava 0.147 0.183 0.206 0.635
Space 0.162 0.200 0.224 0.704
Mars 0.147 0.183 0.206 0.784

The following graph shows the speed in relation to distance without engine upgrades in legacy and current builds with varying player count:

Speed Graph.png

The formula for speed is a polynomial y = ax^2 + bx + c, where y is speed, and x is distance. The following table shows coefficients that fit the curves in the graph above quite closely:

Player Count a b c
2 Players Current 0.000000089397301 0.000315421241811 0.093460656990069
3 Players Current 0.000000127407058 0.00037106459886 0.121522536287242
4 Players Current 0.000000145257097 0.000396842226627 0.140355233002292
2 Players Legacy 0.000000066574598 0.000275799322662 0.104916730328495
3 Players Legacy 0.000000121705155 0.000363289157305 0.131692131398014
4 Players Legacy 0.000000176765302 0.000437183289738 0.153868601986249