Guest User

Untitled

a guest
Jun 8th, 2021
2,380
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 1 0
  1. Guide to run a headless server for brainlets.
  2.  
  3. Grab those files from this zip file: https://files.catbox.moe/lpzq0l.zip
  4. StartServer.ps1 - Powershell script to start the server
  5. serverparameters.json - Config file for scenario and config folder
  6. Place them into your openrct2 folder.
  7.  
  8. Open serverparameters.json and edit the scenario, paste the full path of the save/scenario you want to load, also edit the server_data_folder to a new folder where you want the server to store the data, like saves and shit. It's a new user folder that will only be used by the server.
  9.  
  10. Example:
  11. {
  12. "scenario": "D:\Games\OpenRCT2\Scenarios\FuckingImpossibleScenario.sv6",
  13. "server_data_folder": "D:\Games\OpenRCT2\Server Data"
  14. }
  15.  
  16. After that, right click on StartServer.ps1, click on "Run with Powershell", a console screen will open.
  17. A firewall prompt may also open, give it permissions to your network. Close the server, the server data folder will be created, open the config.ini in there.
  18.  
  19. Change the parameters you wish to change on this section:
  20.  
  21. [network]
  22. player_name = "Host" <- This is the player name that the headless server will have
  23. default_port = 11753 <- Server port
  24. listen_address = "" <- Leave it empty
  25. default_password = "" <- Pick a password
  26. stay_connected = true <- Don't touch
  27. advertise = false <- False to not be advertised on the master server
  28. advertise_address = "" <- Ignore
  29. maxplayers = 16
  30. server_name = "/vr/ Server"
  31. server_description = ""
  32. server_greeting = ""
  33. master_server_url = "" <- Ignore
  34. provider_name = "" <- Ignore
  35. provider_email = "" <- Ignore
  36. provider_website = "" <- Ignore
  37. known_keys_only = false <- Leave on false, unless you want to use whitelisting
  38. log_chat = true
  39. log_server_actions = true
  40. pause_server_if_no_clients = false <- False if no one besides the headless server is connected
  41. desync_debugging = false
  42.  
  43. Save the file, and run the server again ( right click at StartServer.ps1, Run with a powershell ), you'll get a console screen.
  44. Open your OpenRCT2 and connect to your local server ( ip 127.0.0.1 should work )
  45. Alt tab, change to the server console and type network.players[1].group = 0
  46. Congratulations, your client is now admin. Now you can change permissions directly from the game.
  47.  
  48. This should be enough. I'm not covering port forwarding.
  49. This could have been a .bat but i like powershell.
Add Comment
Please, Sign In to add comment