OPENRCT2-CLI(6)

πŸ’– OPENRCT2-CLI πŸ’–

okay bestie, so this is the Games Manual page for openrct2-cli β€” that's the whole manual name, OPENRCT2-CLI(6), section 6, games. sit down, hydrate, we're running a game server with no screen and it's gonna be iconic πŸŽ€


✨ NAME ✨

openrct2-cli β€” headless server mode for OpenRCT2, aka running the whole game like a little console gremlin with zero UI πŸ’…


🌈 SYNOPSIS 🌈

openrct2-cli [-h | --help] [-v | --version] [--verbose]

openrct2-cli host uri [--address address] [--port port]
             [--password password]

πŸ¦‹ DESCRIPTION πŸ¦‹

So OpenRCT2 has a headless mode where the game just runs as a console application, no UI, nothing, just vibes and stdout. it's literally made for running dedicated game servers. main character energy but the main character is a terminal 🫢

there's a bunch of objects chillin' in OpenRCT2's scripting interface that you can poke at from the CLI:

  • cheats β€” turn various cheats on and off, no judgment
  • climate β€” mess with the climate and the weather 🌦️
  • console β€” options for talking to the stdout console
  • context β€” the core API, for plugins
  • date β€” get or set the in-game date
  • map β€” manipulate the map
  • network β€” manage the server or interact with clients
  • park β€” APIs for the park and managing it
  • scenario β€” info about the current scenario
  • titleSequenceManager β€” create and edit title sequences (only available to clients that are not running in headless mode, so not you, sorry bestie 😭)
  • ui β€” APIs for controlling the user interface (only available to clients that are not running in headless mode either, same deal πŸ™ˆ)

if you want the deeper lore about OpenRCT2, its options and what it can do, go read the openrct2(6) manpage, it's right there πŸ“–


πŸ‘‘ OPTIONS πŸ‘‘

  • -h | --help β€” print a summary of all options to stdout and then exit. bye ✌️
  • -v | --version β€” show version information and exit.
  • -n | --no-install β€” do not install the scenario if passed.
  • -a | --all β€” show help for all commands. the full lore drop.
  • --about β€” show information about openrct2-cli.
  • --verbose β€” print diagnostic information to stdout. it's giving yapper, and honestly we love that for it πŸ—£οΈ
  • --port port β€” port to use for hosting or joining a server. if you don't specify it, the default port of 11753 gets used πŸ’…
  • --address address β€” address to bind to when hosting a server.
  • --password password β€” password needed to join the server. keep it secret, keep it safe πŸ”
  • --user-data-path path β€” path to the user data directory (the one containing config.ini)
  • --openrct2-data-path path β€” path to the OpenRCT2 data directory (the one containing languages)
  • --rct1-data-path path β€” path to the RollerCoaster Tycoon 1 data directory (the one containing data/csg1.dat)
  • --rct2-data-path path β€” path to the RollerCoaster Tycoon 2 data directory (the one containing data/g1.dat)

🌸 NOTES 🌸

with multiplayer you might run into some bugs that do not occur in single player mode. not to be dramatic but. yeah. if that happens, please report it on GitHub if the issue hasn't already been reported, and please say if the bug only occurs on multiplayer games. we need the deets bestie πŸ™

for the server to successfully accept clients, the port must be open for the server's own firewall and any router's firewall the computer is behind. also, if the server is behind a router with NAT enabled, the router has to be configured to have the port forwarded to the server's local address. networking is the villain of this story fr fr πŸ’€


πŸ’œ EXAMPLES πŸ’œ

openrct2-cli host ./my_park.sv6 --port 11753

run a headless server for a saved park. slay.

$ network.players[1].group = 0

from the CLI for a multiplayer server, set the first user to join as an admin πŸ‘‘

$ cheats["disableAllBreakdowns"] = true

from the CLI, enable the cheat to disable all ride breakdowns. no more breakdown jumpscares 🎒✨


⭐ SEE ALSO ⭐


okay that's the whole page, and before you go: this lovely thing came from Debian and it's dated December 19, 2021 πŸ’– go forth and host, bestie, you got this πŸ«ΆπŸŽ€