Skip to content

Instantly share code, notes, and snippets.

@csprance
Last active February 14, 2022 00:41
Show Gist options
  • Save csprance/2add2f24cec08c97f8a0e04b330afd93 to your computer and use it in GitHub Desktop.
Save csprance/2add2f24cec08c97f8a0e04b330afd93 to your computer and use it in GitHub Desktop.
Miscreated dedicated server instructions. Deprecated

Self Hosted Servers

This is an alternate method of installing the server. You should instead install directly from the Steam Library During the entire beta phase of Miscreated self hosted servers are NOT officially supported and will mostly likely be changed during each update.

Due to the fact that self hosted server admins can adjust item spawns the Items tab on Amalgamated kiosks is disabled on self hosted servers - the Skins tab remains fully functional.

It's recommended server admins join our community Discord server for help: http://discord.gg/miscreated - Help requests go in the #self-hosted-help channel. It's also recommended players wishing to run a server use the Simplified Miscreated Server Setup script as that script sets up a server, and it keeps a server properly updated and running.

START INSTALL INSTRUCTIONS - CUSTOMIZE TO YOUR NEEDS

  • Create a new folder for SteamCMD - c:\steamcmd, for example
  • Download SteamCMD for Windows and extract the contents into your newly created SteamCMD folder - https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
  • Execute the steamcmd.exe program to install and update the Steam command line tools
  • After updating you will be at the Steam> prompt. Type quit to exit steamcmd.
  • Create a new folder for the Miscreated dedicated server - c:\miscreatedserver, for example
  • In your newly created Miscreated dedicated server folder create a file named start_server.bat and paste the following lines into it:
echo off
:start 
c:\steamcmd\steamcmd.exe +login YOUR_STEAM_USERNAME +force_install_dir c:\SelfHostedServer\ +app_update 302200 validate +quit
Bin64_dedicated\MiscreatedServer.exe -sv_port 64090 +http_startserver +sv_maxplayers 50 +map islands +sv_servername "SERVER NAME" 
goto start
  • Edit the steamcmd.exe line and and replace <steam_account> with your Steam account name (Remove the <> from your steam account name) It is also possible to use +login anonymous
  • Edit the MiscreatedServer.exe line and change the <server_description> to whatever you'd like - keep the quotation marks around the description, but remove the <>.
  • Edit the filepaths c:\SelfHosted\ and c:\steamcmd\steamcmd.exe to be where you installed your server and steamcmd at
  • Save and exit the bat file

NOTE: Any server trying to pretend to be an official server will have the IP address permanently blocked and will be unable to run. NO exceptions.

-- FINISH INSTALL INSTRUCTIONS --

Performance Concerns

The Miscreated server can currently use up to 4GB of ram when the game is fully loaded (a lot of information gets dynamically loaded as the server runs). An additional 30MB of RAM will be used for each concurrent player. On a fully loaded 50 player server expect the server to use up to around 6GB of RAM. Servers are forced to restart every 24 hours. Use the value "schedule_shutdown_utc" mentioned below to set an exact time each day.

Server Database

All of the data for each server will be saved in a miscreated.db (SQLite) file in the root install folder. It's strongly recommended you do NOT edit the miscreated.db file - you could destroy all persistent data for your server by doing so. It's strongly recommended you backup the miscreated.db file on a regular basis.

Additional command line options

the leading - or + is required

  • -sv_bind x.x.x.x (to specify which interface to use in a multihomed server)
  • -sv_port x (default is 64090 - the game will use the starting port and the 3 ports after it as well, so default is using ports 64090-64093 - both UDP and TCP are used)
  • -mis_whitelist (add if you want the server to only allow whitelisted steamids to be able to connect to it)
  • +http_startserver (starts the remote console system so admins can issue rcon commands to alter the server while running - see below)

hosting.cfg File

Additional server configuration values can be added to a hosting.cfg file in the root install folder. The use of some of the following options could drastically affect the performance of your server. Do NOT edit the existing system.cfg or dedicated.cfg files, only add and edit to a hosting.cfg file. Replace the X for the commands below with your custom value.

  • sv_servername="X" - The server name that's displayed in the server browser window - this overrides the server name specified in the command line
  • http_password=X - The password used to connect via rcon
  • g_pinglimit=X - Max ping a player can have before being kicked (0=disabled), default: 1000
  • g_pingLimitTimer=X - Time in seconds after which a player will be kicked if they are over the specified ping limit, default: 15
  • g_gameRules_Camera=X - Server enforced camera rules, 0=both, 1=first person only, 2=third person only in vehicle
  • wm_disable=X - Completely disable the weather management system
  • wm_timeScale=X - Scale time of day speed, default: 1
  • wm_timeScaleWeather=X - Scale of weather speed, default: 1
  • wm_timeScaleNight=X - Scale of night speed (relative to day), default: 4
  • wm_timeOffset=X - Time offset to system time, negative = random offset, use 24-x for real negative offsets (as positive numbers), default: 0
  • wm_forceTime=X - Force the server time to a specific 24-hour time, default: -1 (disabled), can be from 0.0 through 24.0
  • sv_noBannedAccounts=X - Don't allow any banned steam accounts to join (or those with a private profile), default: 0
  • sv_maxuptime=X - Maximum server uptime until restart in hours, default: 24 (whitelisted), 12 otherwise - cannot exceed 24 hours
  • schedule_shutdown_utc X - Hard shutdown of the game at the specified UTC hour, can have multiples of these in the hosting.cfg file if wanted
  • sv_motd="X" - Server motd to display when players join the server
  • sv_url="X" - Server url to display when players join the server - just a second motd line really
  • sv_msg_conn=X - Announce connections in chat (whitelisted feature only), default: 0
  • sv_msg_death=X - Announce deaths in chat (whitelisted feature only), default: 0
  • g_gameRules_bases=X - Server enforced base placement rules, default: 1 (0=no bases, 1=restricted zones, 2=bases everywhere(whitelisted feature only))
  • g_playerHealthRegen=X - Health regeneration speed, default: 0.111
  • g_playerFoodDecay=X - Food decay speed, default: 0.2777
  • g_playerFoodDecaySprinting=X - Food decay speed when sprinting, default: 0.34722
  • g_playerWaterDecay=X - Water decay speed, default: 0.4861
  • g_playerWaterDecaySprinting=X - Water decay speed when sprinting, default: 0.607638
  • g_playerInfiniteStamina=X - Enable infinite stamina, default: 0
  • g_craftingSpeedMultiplier=X - Scalar to accelerate crafting times, default: 1
  • asm_disable=X - Disable the AI spawner manager system, default: 0
  • asm_percent=X - Set the AI spawner location percentage, default: 33 (max is 90) - this helps control the AI spawn density
  • asm_maxMultiplier=X - Set the multiplier for the AI spawner max amount, default: 1 (max 5)
  • asm_hordeCooldown=X - Set the min cooldown on spawning hordes, default (in seconds): 900
  • pcs_maxCorpses=X - Set the maximum number of player corpses, default: 20
  • pcs_maxCorpseTime=X - Set the maximum time before a player corpse will despawn, default (in seconds): 1200
  • steam_inventory_enable=X - Configure the Steam inventory (kiosk system), default: 0 (0=fully enabled, 3=admin disabled, do not use 1 or 2)

Remote Console (RCON) Access

Rcon allows a server admin to remotely administer a server. The best way to use rcon access is to download and use our tool that's located at: https://github.com/Csprance/misrcon You can also use our web interface at: https://servers.miscreatedgame.com

Useful rcon commands:

  • status - Display the status of all playes and connections
  • wm_startPattern X - Force start a weather pattern (all connected players will be notified - see weather pattern list below)
  • mis_ban_steamid 64BITSTEAMID - Ban Player
  • mis_ban_status - Display the ban list
  • mis_ban_remove 64BITSTEAMID - Remove from ban list
  • mis_kick X 64BITSTEAMID - Kick from server
  • mis_whitelist_add 64BITSTEAMID - Add to whitelist
  • mis_whitelist_remove 64BITSTEAMID - Remove from whitelist
  • mis_whitelist_status X - Display the current whitelist
  • sv_say X - Send a message to all connected players (appears at the top of the screen)
  • sv_chat X - Send a chat message to all connected players (appears in the chat window)
  • do_shutdown X - Do a restart with announcements in x seconds (default: 60 seconds, min: 45 seconds, max: 600 seconds)

Weather Patterns

used with wm_startPattern, the missing values are transitional patterns

  • 1: ClearSky
  • 2: LightRain
  • 3: HeavyRainThunder
  • 4: HeavyStorm
  • 7: TornadoRainThunder
  • 9: LightFog
  • 10: MediumFog
  • 11: HeavyFog
  • 12: TheMist
  • 15: RadStorm
  • 18: NuclearFlashFreeze
  • 21: Snow
  • 24: ClearSkyWindy
  • 25: ClearSkyStormy
  • 26: StormyDistantThunder
  • 27: MediumRain
  • 28: HeavyRain
  • 29: AcidRain
  • 31: Blizzard

There is also an advanced faction system that server admins can use. You can view the details at the bottom of our server help page located here: https://servers.miscreatedgame.com/help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment