|
2 | 2 | The spectator provides an eye into the virtual world from an external computer. |
3 | 3 | Through a network connection the virtual world state is replicated and shown on the screen. |
4 | 4 | The user can operate the camera with its mouse and keyboard. |
| 5 | +Spectators are not able to interact with the world |
5 | 6 |
|
6 | | -## Launching the spectator |
| 7 | +## Launching the server |
7 | 8 |
|
8 | 9 | A simulator launched as 'server' will accept external viewers (spectators) to join the game. |
9 | | -The spectators are not able to interact with the world. |
10 | | -Spectators can enter the ip of the server in the main menu to connect to a running simulator. |
11 | | -Multiple simultaneous spectators in a single world should work as well. |
| 10 | +You can launch the simulation as a server in the main menu by pressing the 'TODO' button. |
12 | 11 |
|
13 | | -> If a spectator loses connection to the server it will go back to the main menu. |
14 | | -
|
15 | | -If you want to give access to clients from external computers you must ensure the specified port is accessible. |
16 | | -In most cases you will have to add a firewall rule to allow the traffic. |
| 12 | +The server will run on port 7777 port, make sure spectators can connect to it. |
| 13 | +In most cases you will need to add a firewall rule to allow TCP and UDP traffic. |
17 | 14 | When behind a router you might need to do some port forwarding. |
18 | | -Both TCP and UDP traffic must be able to travel from client to server on port 7777. |
19 | 15 |
|
20 | | -To skip the menu and launch the game as server or spectator directly, you can use the following commandline options: |
| 16 | +To skip the menu and launch the game as server directly, you can use the following command: |
| 17 | + |
| 18 | +``` |
| 19 | +FSDS.exe /Game/TrainingMap?listen |
| 20 | +``` |
| 21 | +This opens the TrainingMap and allows external clients (spectators) to connect. |
| 22 | + |
| 23 | +Within the `settings.json` you can configure the server password. |
| 24 | +Using the password is usefull to prevent trolls and curious people from connecting to the simulator and breaking the simulator. |
21 | 25 |
|
22 | | -**Run the game as a server** |
23 | 26 | ``` |
24 | | -FSDS.exe /Game/TrainingMap?listen -log |
| 27 | +{ |
| 28 | + "SpectatorPassword": "password", |
| 29 | + ... |
25 | 30 | ``` |
26 | | -This runs the simulator like normal but now external clients (spectators) are welcome to connect. |
| 31 | +If the password is not configured in the settings.json, the password is set to `password`. |
| 32 | +At this moment it is not possible to start a server without password. |
| 33 | + |
| 34 | +## Launching the spectator |
| 35 | +Spectators can enter the ip of the server in the main menu to connect to a running simulator. |
| 36 | +Multiple simultaneous spectators in a single world should work as well. |
| 37 | +If a spectator loses connection to the server it will go back to the main menu. |
27 | 38 |
|
| 39 | +To skip the menu and launch the spectator directly, you can use the following command: |
28 | 40 |
|
29 | | -**Running the spectator** |
30 | 41 | ``` |
31 | | -FSDS.exe 0.0.0.0 -log |
| 42 | +FSDS.exe 0.0.0.0?password=123456 |
32 | 43 | ``` |
33 | | -Where `0.0.0.0` is replaced by the external ip of the server. |
| 44 | +Where `0.0.0.0` is replaced by the external ip of the server and `123456` is replaced by the server password. |
34 | 45 |
|
| 46 | +**If you enter a wrong password you are taken back to the main menu. No error will be shown.** |
35 | 47 |
|
36 | 48 | ## Using the spectator |
37 | 49 |
|
|
0 commit comments