Difference between revisions of "Replay"

From Unrailed! Wiki
Jump to navigation Jump to search
 
Line 8: Line 8:
 
The [] depict keyboard keys. The different actions of these keys are described in the following:
 
The [] depict keyboard keys. The different actions of these keys are described in the following:
  
[0] -> Default game camera (static offset relative to the train position on the X axis)
+
[0] -> Default game camera (static offset relative to the train position on the X axis)
[1] -> Camera freely movable (on the X/Y plane with static height and angle) and not relative to any moving object
+
[1] -> Camera freely movable (on the X/Y plane with static height and angle) and not relative to any moving object
[2] -> Camera fixed to the first train
+
[2] -> Camera fixed to the first train
[3] -> Camera fixed to the second train (only matters for PvP)
+
[3] -> Camera fixed to the second train (only matters for PvP)
[4] -> Camera fixed to the first player
+
[4] -> Camera fixed to the first player
[5] -> Camera fixed to the second player
+
[5] -> Camera fixed to the second player
[6] -> Camera fixed to the third player
+
[6] -> Camera fixed to the third player
[7] -> Camera fixed to the fourth player
+
[7] -> Camera fixed to the fourth player
  
 
Camera zoom is in [0.05, 2] and is clamped to be in that range.  
 
Camera zoom is in [0.05, 2] and is clamped to be in that range.  
Line 22: Line 22:
 
A value of 1/2 means everything is scaled up by a factor of tow (zoomed in)
 
A value of 1/2 means everything is scaled up by a factor of tow (zoomed in)
  
[PageUp] -> zoom += 0.01;
+
[PageUp] -> zoom += 0.01;
[PageDown] -> zoom -= 0.01;
+
[PageDown] -> zoom -= 0.01;
[F1] -> zoom = 1.0  
+
[F1] -> zoom = 1.0  
[F2] -> zoom = 0.5
+
[F2] -> zoom = 0.5
[F3] -> zoom = 0.4
+
[F3] -> zoom = 0.4
[F4] -> zoom = 0.3
+
[F4] -> zoom = 0.3
[F5] -> zoom = 0.2
+
[F5] -> zoom = 0.2
  
 
In case [1] was pressed the camera is in freely movable mode:
 
In case [1] was pressed the camera is in freely movable mode:
Line 34: Line 34:
 
Thus the normal camera is moving in positive X direction;
 
Thus the normal camera is moving in positive X direction;
  
[I] -> camera.Y++
+
[I] -> camera.Y++
[J] -> camera.X--
+
[J] -> camera.X--
[K] -> camera.Y--
+
[K] -> camera.Y--
[L] -> camera.X++
+
[L] -> camera.X++

Latest revision as of 21:31, 15 June 2023

Each game session is automatically recorded and stored as replay. Replays can be played from the main menu.

Replay Camera Mode

For quite some time the Unrailed! replay system was able to use a freely configurable camera. This was mostly used internally for trailer production but not really documented.

The [] depict keyboard keys. The different actions of these keys are described in the following:

[0] -> Default game camera (static offset relative to the train position on the X axis)
[1] -> Camera freely movable (on the X/Y plane with static height and angle) and not relative to any moving object
[2] -> Camera fixed to the first train
[3] -> Camera fixed to the second train (only matters for PvP)
[4] -> Camera fixed to the first player
[5] -> Camera fixed to the second player
[6] -> Camera fixed to the third player
[7] -> Camera fixed to the fourth player

Camera zoom is in [0.05, 2] and is clamped to be in that range. Default is zoom = 1.0 meaning no zoom! A value of 2 means everything is scaled down by a factor of two (zoomed out) A value of 1/2 means everything is scaled up by a factor of tow (zoomed in)

[PageUp] -> zoom += 0.01;
[PageDown] -> zoom -= 0.01;
[F1] -> zoom = 1.0 
[F2] -> zoom = 0.5
[F3] -> zoom = 0.4
[F4] -> zoom = 0.3
[F5] -> zoom = 0.2

In case [1] was pressed the camera is in freely movable mode: The camera position is 3D the X/Y plane is the game plane while Z is the up axis with the origin being on the bottom left of the screen. Thus the normal camera is moving in positive X direction;

[I] -> camera.Y++
[J] -> camera.X--
[K] -> camera.Y--
[L] -> camera.X++