Skip to content

Lock server settings

Matthias Mailรคnder edited this page Mar 7, 2023 · 3 revisions

It is possible to lock lobby settings on the server side. Assuming you want to do this for your Red Alert dedicated server (otherwise replace ra by the ID of the mod your server is for), follow these steps:

Add the following line to the Rules section of the mod.yaml file your server uses:

	ra|rules/server-overrides.yaml

Now create the server-overrides.yaml file in ./mods/ra/rules/. You can use the following as template for its content:

Player:
	Shroud:
		ExploredMapCheckboxEnabled: false
		FogCheckboxEnabled: true
	PlayerResources:
		DefaultCash: 5000
	DeveloperMode:
		CheckboxEnabled: false
	# The following three are not present in all mods
	LobbyPrerequisiteCheckbox@GLOBALBOUNTY:
		Enabled: false
	LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY:
		Enabled: true
	LobbyPrerequisiteCheckbox@REUSABLEENGINEERS:
		Enabled: false

World:
	CrateSpawner:
		CheckboxEnabled: true
	MapBuildRadius:
		AllyBuildRadiusCheckboxEnabled: true
		BuildRadiusCheckboxEnabled: true
	MapOptions:
		ShortGameCheckboxEnabled: true
		TechLevel: unrestricted # possible values: infantryonly, low, medium, nosuperweapons, unrestricted
		GameSpeed: default # possible values: slowest, slower, default, fast, faster, fastest
	MPStartLocations:
		SeparateTeamSpawnsCheckboxEnabled: true
	SpawnMPUnits:
		StartingUnitsClass: none # possible values: none, light, heavy
	TimeLimitManager:
		TimeLimitLocked: true

You can view more details on the traits and values at: https://docs.openra.net/en/release/traits/

Players ๐ŸŽฒ

Modders โœ๏ธ

Developers ๐Ÿ”ง

Clone this wiki locally