Miscreated

Miscreated

Not enough ratings
PowerShell Miscreated server install and Manage with Steam-Server-Manager
By Robomikel
Using Powershell to Download Steamcmd, download a miscreated server, creates hosting.cfg, Used to start, stop, monitor with discord alerts, and backup server files.


[2/11/20] - Updated
   
Award
Favorite
Favorited
Unfavorite
PREREQUISITES
Dependencies

Visual C++ 2010 Service Redistributable
x64
https://www.microsoft.com/en-us/download/details.aspx?id=13523
x86
https://www.microsoft.com/en-us/download/details.aspx?id=8328

Open ports on Firewall and forward if necessary
default is 64090 and 4 ports after the configured port - Default ports 64090-64094
Can change if needed later during and after install
64090 - Client
64091 -
64092 - Query
64094 - Rcon Port

Create a User windows account (non-admin) to run scripts and game

Optional Install Miscreated Server RCON
https://github.com/csprance/MisRCON
https://github.com/csprance/MisRCON/releases/tag/v3.0.4

Resource Steam-Server-Manager from GitHub - Powershell scripts
install instructions
https://github.com/Robomikel/Steam-Server-Manager

Server installs in the location same location as Steam-Server-Manager




Install Miscreated server using Steam-Server-Manager
Open a Powershell terminal NOT as admin.
Change Directory to steam-server-manager, where you want the server to be.


Optional:
Edit any Default Vars in \config-default\Miscreated_default.ps1 ( can be changed afterwards)
################## Change Default Variables ################# # Server IP ${global:IP} = "${ip}" # Server Port $global:port = 64090 # Rcon Password $global:rconpassword = "$RANDOMPASSWORD" # Maxplayers $global:maxplayers = "32" # Server Name $global:hostname = "SERVERNAME" ##############################/\##############################
Save and close

Install Miscreated Server
.\ssm install miscreated

- It will create the server folder called miscreated in \misserver
- It will prompt if using Anonymous login for steam. With miscreated you can
Press Enter for Anonymous

- It will then create a custom script to hold vars misserver\variables-misserver.ps1 folder
You can change some Launch vars here, like port, max players.
- It will create a hosting.cfg file as well to change any other server vars
C:\Path\To\Steam-server-manager\misserver\HOSTING.CFG
server configuration - hosting.cfg
Server files will be located in C:\Path\To\Steam-server-manager\misserver\
Locate HOSTING.CFG and Change any vars you would like before starting the server.

More info in the C:\Path\To\Steam-server-manager\misserver\README.txt
Managing server with Steam-Server-Manager
use the start command and server folder name for ssm to locate the launch script.
./ssm start miscreated

You should see the server window open and start.

use the stop command to stop process
./ssm stop miscreated

use the check command to check process if running
./ssm query miscreated

use the restart command to stop and start the process
./ssm restart miscreated

use the update command to update server
./ssm update miscreated

use the validate command to stop and validate server files
./ssm validate miscreated

use the backup command to stop and backup server files in zip and place in \backups\
Note: Powershell has a 2GB zip limit. ssm will download a portable version of 7zip to zip server files.
./ssm backup miscreated

use the update ssm command to update ssm scripts
./ssm ssm update

Monitoring server with Steam-Server-Manager and optional discord alert.
A Discord script will be created in \steam-server-manager\misserver\
- Need to install Webhook from Discord channel in Variables-misserver.ps1.
- will send Discord alert if server process is found off

using Powershell to create a Schedule task to run Monitor every 5 minutes.

./ssm monitor-job misserver

If yes. run whether the user is logged in or not ?
The process will run in the background. Can be seen in the task manager.

If no. Run Task only when the user is logged on
Will run in the foreground, you will see the server console window.