Setting up a rented server: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{SEO|description=Following this guide you will be able to setup your server in a basic way. I have noticed that some people are having some trouble setting up their server using a rental.}}
Following this guide you will be able to setup your server in a basic way. I have noticed that some people are having some trouble setting up their server using a rental. First of all I would like to say that some hosts have some differences. But it all comes down to the config file.
Following this guide you will be able to setup your server in a basic way. I have noticed that some people are having some trouble setting up their server using a rental. First of all I would like to say that some hosts have some differences. But it all comes down to the config file.


=== server rental: ===
{{Version <!-- Do not change the version until the entire page is up-to-date -->
|release=0|major=6|minor=4}}
== Server rental ==
Rent a server at a host where you think it will be the best place to host. For most games I rented a server at Multiplay or Verygames. In my opionion they are reliable and have good support. But everyone has their own experiences so just choose which you think suits you best.  
Rent a server at a host where you think it will be the best place to host. For most games I rented a server at Multiplay or Verygames. In my opionion they are reliable and have good support. But everyone has their own experiences so just choose which you think suits you best.  


=== What you need: ===
== What you need ==
Download Filezilla and Notepad++. Once your server has the status online go to your control panel and find the FTP access. Use Filezilla to get access to the FTP (if you have trouble connecting to the FTP please look up a guide). Using your normal notepad will work too, but Notepad++ will be easier in use.
Download Filezilla and Notepad++. Once your server has the status online go to your control panel and find the FTP access. Use Filezilla to get access to the FTP (if you have trouble connecting to the FTP please look up a guide). Using your normal notepad will work too, but Notepad++ will be easier in use.


=== Config file: ===
== Config file ==
Once in filezilla and you have the files open, locate the dedicated.cfg file and open it using rmb on the file and clicking "watch/edit" and choose Notepad++ to open the file. Which should look something like this:
Once in filezilla and you have the files open, locate the dedicated.cfg file and open it using rmb on the file and clicking "watch/edit" and choose Notepad++ to open the file. Which should look something like this:
<source lang="xml">
<syntaxhighlight lang="xml" line>
<?xml version="1.0"?>
<?xml version="1.0"?>
<MyConfigDedicated xmlns:xsd="http://www.w4.net/2017/XMLSchema" xmlns:xsi="http://www.w4.net/2017/XMLSchema-instance">
<MyConfigDedicated xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SessionSettings>
  <SessionSettings>
<GameMode>Creative</GameMode>
    <GameMode>Creative</GameMode>
<InventorySizeMultiplier>1</InventorySizeMultiplier>
    <InventorySizeMultiplier>1</InventorySizeMultiplier>
<AssemblerSpeedMultiplier>1</AssemblerSpeedMultiplier>
    <OnlineMode>PUBLIC</OnlineMode>
<AssemblerEfficiencyMultiplier>1</AssemblerEfficiencyMultiplier>
    <MaxPlayers>4</MaxPlayers>
<RefinerySpeedMultiplier>1</RefinerySpeedMultiplier>
    <MaxFloatingObjects>64</MaxFloatingObjects>
<OnlineMode>PUBLIC</OnlineMode>
    <MaxBackupSaves>5</MaxBackupSaves>
<MaxPlayers>8</MaxPlayers>
    <EnableSpectator>false</EnableSpectator>
<MaxFloatingObjects>64</MaxFloatingObjects>
    <EnableCopyPaste>true</EnableCopyPaste>
<EnvironmentHostility>SAFE</EnvironmentHostility>
    <ShowPlayerNamesOnHud>true</ShowPlayerNamesOnHud>
<AutoHealing>true</AutoHealing>
    <AutoSaveInMinutes>5</AutoSaveInMinutes>
<EnableCopyPaste>true</EnableCopyPaste>
    <ProceduralSeed>0</ProceduralSeed>
<WeaponsEnabled>true</WeaponsEnabled>
    <DestructibleBlocks>true</DestructibleBlocks>
<ShowPlayerNamesOnHud>true</ShowPlayerNamesOnHud>
    <ViewDistance>2600</ViewDistance>
<ThrusterDamage>true</ThrusterDamage>
    <Enable3rdPersonView>true</Enable3rdPersonView>
<CargoShipsEnabled>true</CargoShipsEnabled>
    <EnableSunRotation>true</EnableSunRotation>
<EnableSpectator>false</EnableSpectator>
    <PhysicsIterations>4</PhysicsIterations>
<RemoveTrash>false</RemoveTrash>
    <SunRotationIntervalMinutes>120</SunRotationIntervalMinutes>
<WorldSizeKm>0</WorldSizeKm>
    <DaysPerSeason>4</DaysPerSeason>
<RespawnShipDelete>true</RespawnShipDelete>
    <MaxSolarAltitude>0.41</MaxSolarAltitude>
<ResetOwnership>false</ResetOwnership>
    <EnableVoxelDestruction>true</EnableVoxelDestruction>
<WelderSpeedMultiplier>1</WelderSpeedMultiplier>
    <EnableStructuralSimulation>true</EnableStructuralSimulation>
<GrinderSpeedMultiplier>1</GrinderSpeedMultiplier>
    <MessageOfTheDay />
<RealisticSound>false</RealisticSound>
    <ServerSideChatLogging>true</ServerSideChatLogging>
<ClientCanSave>true</ClientCanSave>
    <EnableLargeDynamicGridDecay>true</EnableLargeDynamicGridDecay>
<HackSpeedMultiplier>0.33</HackSpeedMultiplier>
    <ResourceDecayTime>300</ResourceDecayTime>
<PermanentDeath>true</PermanentDeath>
    <AbandonedGridDecayTime>168</AbandonedGridDecayTime>
<AutoSaveInMinutes>30</AutoSaveInMinutes>
    <MaximumBots>10</MaximumBots>
<SpawnShipTimeMultiplier>1</SpawnShipTimeMultiplier>
    <EnableHostileAI>true</EnableHostileAI>
<DestructibleBlocks>true</DestructibleBlocks>
    <EnableFastTravel>true</EnableFastTravel>
<EnableIngameScripts>true</EnableIngameScripts>
    <EnableTravelReachability>true</EnableTravelReachability>
<ViewDistance>20000</ViewDistance>
    <MaxActiveFracturePieces>50</MaxActiveFracturePieces>
<EnableToolShake>true</EnableToolShake>
  </SessionSettings>
<VoxelGeneratorVersion>0</VoxelGeneratorVersion>
  <Scenario Type="ScenarioDefinition" Subtype="SafeAreaStart" />
<EnableOxygen>false</EnableOxygen>
  <LoadWorld />
<Enable3rdPersonView>true</Enable3rdPersonView>
  <IP>0.0.0.0</IP>
<EnableEncounters>true</EnableEncounters>
  <SteamPort>8766</SteamPort>
<EnableStructuralSimulation>true</EnableStructuralSimulation>
  <ServerPort>27016</ServerPort>
<EnableBarbarians>true</EnableBarbarians>
  <AsteroidAmount>4</AsteroidAmount>
<MaxActiveFracturePieces>24</MaxActiveFracturePieces>
  <Administrators />
<GameDayInRealMinutes>20</GameDayInRealMinutes>
  <Banned />
<DayNightRatio>0.6666667</DayNightRatio>
  <Mods />
<EnableAnimals>true</EnableAnimals>
  <GroupID>0</GroupID>
<MaximumBots>10</MaximumBots>
  <ServerName />
</SessionSettings>
  <WorldName />
<Scenario Type="MyObjectBuilder_ScenarioDefinition" Subtype="Quickstart Planet"/>
  <PauseGameWhenEmpty>false</PauseGameWhenEmpty>
<LoadWorld/>
  <IgnoreLastSession>false</IgnoreLastSession>
<IP>_SERvERIP_</IP>
  <RemoteApiEnabled>true</RemoteApiEnabled>
<SteamPort>29016</SteamPort>
  <PublicRemoteApiEnabled>true</PublicRemoteApiEnabled>
<ServerPort>29015</ServerPort>
  <RemoteSecurityKey>LuQbPZSSdIDx3XoonXCWNw==</RemoteSecurityKey>
<AsteroidAmount>0</AsteroidAmount>
  <RemoteApiPort>8080</RemoteApiPort>
<Administrators />
<Banned />
<Mods/>
<GroupID>0</GroupID>
<ServerName>TEST Server</ServerName>
<WorldName/>
<PauseGameWhenEmpty>true</PauseGameWhenEmpty>
<IgnoreLastSession>false</IgnoreLastSession>
</MyConfigDedicated>
</MyConfigDedicated>
</source>
</syntaxhighlight>


=== Settings: ===
== Settings ==
If you are new to this, this is a lot to look at. But once you get used to it, it is easy. (some of the displayed code will not be the same, like server name, dedicated config etc.) Most things you can leave as is. I will take a look with you at the crucial parts.
If you are new to this, this is a lot to look at. But once you get used to it, it is easy. (some of the displayed code will not be the same, like server name, dedicated config etc.) Most things you can leave as is. I will take a look with you at the crucial parts.


==== Gamemode ====
=== Gamemode ===
Choosing game mode: If you want to play creative use: <source lang="xml"><GameMode>Creative</GameMode></source> if you want to play survival change it to: <source lang="xml"><GameMode>Survival</GameMode></source>
Choosing game mode: If you want to play creative use: <code><GameMode>Creative</GameMode></code> if you want to play survival change it to: <code><GameMode>Survival</GameMode></code>
Everything up to Loadworld is pretty straight forward, so just adjust if you want to. NOTE: some things are set for Space Engineers and won't do anything when you change them or might crash your server.
Everything up to Loadworld is pretty straight forward, so just adjust if you want to. NOTE: some things are set for Space Engineers and won't do anything when you change them or might crash your server.


==== Loading a world Pt. 1 ====
=== Loading a world Part 1 ===
At first the line will say: <source lang="xml"><LoadWorld/></source> which basically means it wont load a world. So let's keep it like that and jump to <source lang="xml"><WorldName/></source> Fill this in with how you want to name your world for example:
At first the line will say: <code><LoadWorld/></code> which basically means it wont load a world. So let's keep it like that and jump to <code><WorldName/></code> Fill this in with how you want to name your world for example:
<source lang="xml"><WorldName>TEST</WorldName></source> Keep it like that and don't restart the server yet. We will get back to this.
<code><WorldName>TEST</WorldName></code> Keep it like that and don't restart the server yet. We will get back to this.


==== Naming the server ====
=== Naming the server ===
Jump to: <source lang="xml"><ServerName>Test server</ServerName></source> If it doesn't have a server name set yet it will probably look like this: <source lang="xml"><ServerName/></source>. So go ahead and change it to this: <source lang="xml"><ServerName>Test server</ServerName></source> (where it says Test server just change to the name the server you want it to be called).
Jump to: <code><ServerName>Test server</ServerName></code> If it doesn't have a server name set yet it will probably look like this: <code><ServerName/></code> So go ahead and change it to this: <code><ServerName>Test server</ServerName></code> (where it says Test server just change to the name the server you want it to be called).


==== Mods ====
=== Mods ===
Mods can be a pain, some may crash the server or might not be supported. I recommend testing the mods in singleplayer first. But look up a mod you want in your server on Steam in the workshop. If you have the mod page open just right click the page and click Copy page address. And paste it somewhere like in word or notepad. At the end of the link, you'll see a code for example 766857004. Copy this code, you'll need it. Go the the config file and look up: <source lang="xml"><mods/></source> Change it to this:
Mods can be a pain, some may crash the server or might not be supported. I recommend testing the mods in singleplayer first. But look up a mod you want in your server on Steam in the workshop. If you have the mod page open just right click the page and click Copy page address. And paste it somewhere like in word or notepad. At the end of the link, you'll see a code for example 766857004. Copy this code, you'll need it. Go the the config file and look up:  
<source lang="xml">
<syntaxhighlight lang="xml" line>
<Mods/>
</syntaxhighlight>  
Change it to this:
<syntaxhighlight lang="xml" line>
<Mods>
<Mods>
<unsignedLong></unsignedLong>
<unsignedLong></unsignedLong>
</Mods>
</Mods>
</source>
</syntaxhighlight>
Now just go ahead and take the code you saved in word or notepad or wherever and paste it in-between the unsignedlong arrows like this:
Now just go ahead and take the code you saved in word or notepad or wherever and paste it in-between the unsignedlong arrows like this:
<source lang="xml">
<syntaxhighlight lang="xml" line>
<Mods>
<Mods>
<unsignedLong>766857004</unsignedLong>
<unsignedLong>766857004</unsignedLong>
</Mods>
</Mods>
</source>
</syntaxhighlight>
If you have more than one mod just copy the: <unsignedLong></unsignedLong> line and paste it under the other one and fill in the code of the other mod. A small example:
If you have more than one mod just copy the: <unsignedLong></unsignedLong> line and paste it under the other one and fill in the code of the other mod. A small example:
<source lang="xml">
<syntaxhighlight lang="xml" line>
<Mods>
<Mods>
<unsignedLong>766857004</unsignedLong>
<unsignedLong>766857004</unsignedLong>
Line 108: Line 107:
<unsignedLong>754646325</unsignedLong>
<unsignedLong>754646325</unsignedLong>
</Mods>
</Mods>
</source>
</syntaxhighlight>
This would mean i have 3 different mods in my server.
This would mean i have 3 different mods in my server.


==== Adding mods after save file has been created (ONLY DO THIS WHEN YOU FOLLOWED THE BASIC GUIDE TO STARTING THE SERVER, ONLY USE THIS WHEN THE SERVER IS ALREADY LAUNCHED AND YOU WANT TO ADD NEW MODS)====
=== Adding mods after save file has been created ===
<span style="font-size:120%;">'''(ONLY DO THIS WHEN YOU FOLLOWED THE BASIC GUIDE TO STARTING THE SERVER, ONLY USE THIS WHEN THE SERVER IS ALREADY LAUNCHED AND YOU WANT TO ADD NEW MODS)'''</span>
 
Once you have setup your server and you have played in it you might come across new mods that you want to install. This can be fairly tough and took me some time to figure out how to add them. '''Simply adding them to the Mods line does not work''' Here is a guide how to do it.
Once you have setup your server and you have played in it you might come across new mods that you want to install. This can be fairly tough and took me some time to figure out how to add them. '''Simply adding them to the Mods line does not work''' Here is a guide how to do it.


Save and backup your world using FTP. Then change the config code so it will make a new map by changing: <source lang="xml"><WorldName/> to <WorldName>TEST2</WorldName></source> Reset the LoadWorld line from: <source lang="xml"><LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld></source> to: <source lang="xml"><LoadWorld/></source>. And then restart the server. The server will create a new world and download the new mods into the new map.
Save and backup your world using FTP. Then change the config code so it will make a new map by changing: <code><WorldName/> to <WorldName>TEST2</WorldName></code> Reset the LoadWorld line from: <code>LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld></code> to: <code><LoadWorld/></code> Then restart the server. The server will create a new world and download the new mods into the new map.


Check the server if it has the new mods enabled. If so, go to "Saves" in the FTP. There you will find the new map "TEST2" (in this case). Open the World config file using RMB and find a section where it says mods which should look like this:  
Check the server if it has the new mods enabled. If so, go to "Saves" in the FTP. There you will find the new map "TEST2" (in this case). Open the World config file using RMB and find a section where it says mods which should look like this:  
<source lang="xml">
<syntaxhighlight lang="xml" line>
<ModItem>
<Mods>
<Name>363037395sbm</Name>
    <Mod>
<PublishedFileId>363037395</PublishedFileId>
      <Name>835149524.sbm</Name>
</ModItem>
      <PublishedFileId>835149524</PublishedFileId>
</source>
      <FriendlyName />
    </Mod>
</Mods>
</syntaxhighlight>
Copy those lines of the NEW mods and open your former world file where you want to add them. Go over to mods again in that file and add the new mod lines shown above. Save and close the notepad and go back to your settings config file.
Copy those lines of the NEW mods and open your former world file where you want to add them. Go over to mods again in that file and add the new mod lines shown above. Save and close the notepad and go back to your settings config file.
Change the <source lang="xml"><Worldname>TEST</WorldName></source> back to: <source lang="xml"><WorldName/></source> and change <source lang="xml"><LoadWorld/></source> back to: <source lang="xml"><LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld></source> so it is basically set back to its original values.
Change the <code><Worldname>TEST</WorldName></code> back to: <code><WorldName/></code> and change <code><LoadWorld/></code> back to: <code>LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld></code> so it is basically set back to its original values.


=== Adding admins ===
== Adding admins ==
To add admins first find you SteamID64 using: https://steamid.io/
To add admins first find you SteamID64 using: https://steamid.io/
Copy the SteamID64 which is a code that will look like this: 79561398041061710
Copy the SteamID64 which is a code that will look like this: 79561398041061710


Head into the config file and find: <source lang="xml"><Administrators /></source>
Head into the config file and find: <code><Administrators /></code>


Change the line to:
Change the line to:
<source lang="xml">
<syntaxhighlight lang="xml"line>
<Administrators>
<Administrators>
<unsignedLong>79561398041061710</unsignedLong>
  <unsignedLong>79561398041061710</unsignedLong>
</Administrators>
</Administrators>
</source>
</syntaxhighlight>


If you want to add more admins, just find their SteamID64 and add them in the list just like the mods looking like this:
If you want to add more admins, just find their SteamID64 and add them in the list just like the mods looking like this:
<source lang="xml">
<syntaxhighlight lang="xml" line>
<Administrators>
<Administrators>
<unsignedLong>79561398041061710</unsignedLong>
  <unsignedLong>79561398041061710</unsignedLong>
<unsignedLong>89561398041561710</unsignedLong>
  <unsignedLong>89561398041561710</unsignedLong>
</Administrators>
</Administrators>
</source>
</syntaxhighlight>
(This would mean my server would have 2 different admins).
(This would mean my server would have 2 different admins).


=== Start the server ===
== Start the server ==
Once on the server, leave again, and stop the server.
Once on the server, leave again, and stop the server.


=== Loading a world 2 ===
== Loading a world Part 2 ==
Go to the FTP files and find the folder: Saves. Open this folder and find the folder which contains your world. In the case I displayed above it would be called: TEST. Find the FTP URL to this map. Usually through properties. Otherwise open the: RecentWorlds file with notepad and look for the last saved world named TEST (or the name you gave your world) and copy the link it gives you. Which will probably look a bit like this: <pre>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</pre>
Go to the FTP files and find the folder: Saves. Open this folder and find the folder which contains your world. In the case I displayed above it would be called: TEST. Find the FTP URL to this map. Usually through properties. Otherwise open the: RecentWorlds file with notepad and look for the last saved world named TEST (or the name you gave your world) and copy the link it gives you. Which will probably look a bit like this: <pre>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</pre>
Paste this link like in between the config file line like this: <source lang="xml"><LoadWorld></LoadWorld></source> So it looks like this: <source lang="xml"><LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld></source>
Paste this link like in between the config file line like this: <code><LoadWorld></LoadWorld></code> So it looks like this: <code>LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld></code>
THIS IS VERY IMPORTANT!! If you don't do that it will create a new world every time the server resets or restarts!


Now go ahead and and change the line: <source lang="xml"><WorldName>TEST</WorldName></source> to: <source lang="xml"><Worldname/></source>. THIS IS VERY IMPORTANT!! If you don't do that it will create a new world every time the server resets or restarts!
 
Now go ahead and and change the line: <code><WorldName>TEST</WorldName></code> to: <code><Worldname/></code>  


Now save the config file again and start up your server! Following the above, it would be perfectly set and will have the mods you need and will keep your world like you left it.
Now save the config file again and start up your server! Following the above, it would be perfectly set and will have the mods you need and will keep your world like you left it.


=== Side Notes ===
== Tips ==
 
* Set auto save in the server to 5 - 10 minutes so in case your server shuts down you dont have to do all your work again.
* Create a backup of all the files before starting to do any changes. In case you mess up you will always have a backup. In case you did mess up and you dont have a backup, use the reinstall server button somewhere on the admin pannel on the website of you server host or contact them and ask them to reinstall the server.
* Make frequent backups of all the files. Especially the map you are using.
* Make your server stranger friendly. Ask people not to destroy stuff when they enter using signs in game. Or use a mod to create a protection around your builds.
* Don´t make someone an admin unless you really trust that person.
* In case you accidentally remove a building using Ctrl - x, either: try to place it back using Ctrl - V or, leave the server at once and restart the server, this in the hopes the server did not save yet and it will remain as you left it.
 
== Side notes ==
Be aware that some hosts have different settings and levels of security. This can also affect changing the config file. For example, some hosts allow you to change the config file using FTP but will not change the settings of the config file in the admin panel. In which case you have to make the same changes in each file.
Be aware that some hosts have different settings and levels of security. This can also affect changing the config file. For example, some hosts allow you to change the config file using FTP but will not change the settings of the config file in the admin panel. In which case you have to make the same changes in each file.


I will change things on this topic if there are new updates changing things.
I will change things on this topic if there are new updates changing things.
[[Category:Multiplayer]]

Latest revision as of 20:36, 18 July 2022

Following this guide you will be able to setup your server in a basic way. I have noticed that some people are having some trouble setting up their server using a rental. First of all I would like to say that some hosts have some differences. But it all comes down to the config file.


Version: 0.6.4

Server rental

Rent a server at a host where you think it will be the best place to host. For most games I rented a server at Multiplay or Verygames. In my opionion they are reliable and have good support. But everyone has their own experiences so just choose which you think suits you best.

What you need

Download Filezilla and Notepad++. Once your server has the status online go to your control panel and find the FTP access. Use Filezilla to get access to the FTP (if you have trouble connecting to the FTP please look up a guide). Using your normal notepad will work too, but Notepad++ will be easier in use.

Config file

Once in filezilla and you have the files open, locate the dedicated.cfg file and open it using rmb on the file and clicking "watch/edit" and choose Notepad++ to open the file. Which should look something like this:

<?xml version="1.0"?>
<MyConfigDedicated xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SessionSettings>
    <GameMode>Creative</GameMode>
    <InventorySizeMultiplier>1</InventorySizeMultiplier>
    <OnlineMode>PUBLIC</OnlineMode>
    <MaxPlayers>4</MaxPlayers>
    <MaxFloatingObjects>64</MaxFloatingObjects>
    <MaxBackupSaves>5</MaxBackupSaves>
    <EnableSpectator>false</EnableSpectator>
    <EnableCopyPaste>true</EnableCopyPaste>
    <ShowPlayerNamesOnHud>true</ShowPlayerNamesOnHud>
    <AutoSaveInMinutes>5</AutoSaveInMinutes>
    <ProceduralSeed>0</ProceduralSeed>
    <DestructibleBlocks>true</DestructibleBlocks>
    <ViewDistance>2600</ViewDistance>
    <Enable3rdPersonView>true</Enable3rdPersonView>
    <EnableSunRotation>true</EnableSunRotation>
    <PhysicsIterations>4</PhysicsIterations>
    <SunRotationIntervalMinutes>120</SunRotationIntervalMinutes>
    <DaysPerSeason>4</DaysPerSeason>
    <MaxSolarAltitude>0.41</MaxSolarAltitude>
    <EnableVoxelDestruction>true</EnableVoxelDestruction>
    <EnableStructuralSimulation>true</EnableStructuralSimulation>
    <MessageOfTheDay />
    <ServerSideChatLogging>true</ServerSideChatLogging>
    <EnableLargeDynamicGridDecay>true</EnableLargeDynamicGridDecay>
    <ResourceDecayTime>300</ResourceDecayTime>
    <AbandonedGridDecayTime>168</AbandonedGridDecayTime>
    <MaximumBots>10</MaximumBots>
    <EnableHostileAI>true</EnableHostileAI>
    <EnableFastTravel>true</EnableFastTravel>
    <EnableTravelReachability>true</EnableTravelReachability>
    <MaxActiveFracturePieces>50</MaxActiveFracturePieces>
  </SessionSettings>
  <Scenario Type="ScenarioDefinition" Subtype="SafeAreaStart" />
  <LoadWorld />
  <IP>0.0.0.0</IP>
  <SteamPort>8766</SteamPort>
  <ServerPort>27016</ServerPort>
  <AsteroidAmount>4</AsteroidAmount>
  <Administrators />
  <Banned />
  <Mods />
  <GroupID>0</GroupID>
  <ServerName />
  <WorldName />
  <PauseGameWhenEmpty>false</PauseGameWhenEmpty>
  <IgnoreLastSession>false</IgnoreLastSession>
  <RemoteApiEnabled>true</RemoteApiEnabled>
  <PublicRemoteApiEnabled>true</PublicRemoteApiEnabled>
  <RemoteSecurityKey>LuQbPZSSdIDx3XoonXCWNw==</RemoteSecurityKey>
  <RemoteApiPort>8080</RemoteApiPort>
</MyConfigDedicated>

Settings

If you are new to this, this is a lot to look at. But once you get used to it, it is easy. (some of the displayed code will not be the same, like server name, dedicated config etc.) Most things you can leave as is. I will take a look with you at the crucial parts.

Gamemode

Choosing game mode: If you want to play creative use: <GameMode>Creative</GameMode> if you want to play survival change it to: <GameMode>Survival</GameMode> Everything up to Loadworld is pretty straight forward, so just adjust if you want to. NOTE: some things are set for Space Engineers and won't do anything when you change them or might crash your server.

Loading a world Part 1

At first the line will say: <LoadWorld/> which basically means it wont load a world. So let's keep it like that and jump to <WorldName/> Fill this in with how you want to name your world for example: <WorldName>TEST</WorldName> Keep it like that and don't restart the server yet. We will get back to this.

Naming the server

Jump to: <ServerName>Test server</ServerName> If it doesn't have a server name set yet it will probably look like this: <ServerName/> So go ahead and change it to this: <ServerName>Test server</ServerName> (where it says Test server just change to the name the server you want it to be called).

Mods

Mods can be a pain, some may crash the server or might not be supported. I recommend testing the mods in singleplayer first. But look up a mod you want in your server on Steam in the workshop. If you have the mod page open just right click the page and click Copy page address. And paste it somewhere like in word or notepad. At the end of the link, you'll see a code for example 766857004. Copy this code, you'll need it. Go the the config file and look up:

<Mods/>

Change it to this:

<Mods>
<unsignedLong></unsignedLong>
</Mods>

Now just go ahead and take the code you saved in word or notepad or wherever and paste it in-between the unsignedlong arrows like this:

<Mods>
<unsignedLong>766857004</unsignedLong>
</Mods>

If you have more than one mod just copy the: <unsignedLong></unsignedLong> line and paste it under the other one and fill in the code of the other mod. A small example:

<Mods>
<unsignedLong>766857004</unsignedLong>
<unsignedLong>554355435</unsignedLong>
<unsignedLong>754646325</unsignedLong>
</Mods>

This would mean i have 3 different mods in my server.

Adding mods after save file has been created

(ONLY DO THIS WHEN YOU FOLLOWED THE BASIC GUIDE TO STARTING THE SERVER, ONLY USE THIS WHEN THE SERVER IS ALREADY LAUNCHED AND YOU WANT TO ADD NEW MODS)

Once you have setup your server and you have played in it you might come across new mods that you want to install. This can be fairly tough and took me some time to figure out how to add them. Simply adding them to the Mods line does not work Here is a guide how to do it.

Save and backup your world using FTP. Then change the config code so it will make a new map by changing: <WorldName/> to <WorldName>TEST2</WorldName> Reset the LoadWorld line from: LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld> to: <LoadWorld/> Then restart the server. The server will create a new world and download the new mods into the new map.

Check the server if it has the new mods enabled. If so, go to "Saves" in the FTP. There you will find the new map "TEST2" (in this case). Open the World config file using RMB and find a section where it says mods which should look like this:

<Mods>
    <Mod>
      <Name>835149524.sbm</Name>
      <PublishedFileId>835149524</PublishedFileId>
      <FriendlyName />
    </Mod>
</Mods>

Copy those lines of the NEW mods and open your former world file where you want to add them. Go over to mods again in that file and add the new mod lines shown above. Save and close the notepad and go back to your settings config file. Change the <Worldname>TEST</WorldName> back to: <WorldName/> and change <LoadWorld/> back to: LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld> so it is basically set back to its original values.

Adding admins

To add admins first find you SteamID64 using: https://steamid.io/ Copy the SteamID64 which is a code that will look like this: 79561398041061710

Head into the config file and find: <Administrators />

Change the line to:

<Administrators>
  <unsignedLong>79561398041061710</unsignedLong>
</Administrators>

If you want to add more admins, just find their SteamID64 and add them in the list just like the mods looking like this:

<Administrators>
  <unsignedLong>79561398041061710</unsignedLong>
  <unsignedLong>89561398041561710</unsignedLong>
</Administrators>

(This would mean my server would have 2 different admins).

Start the server

Once on the server, leave again, and stop the server.

Loading a world Part 2

Go to the FTP files and find the folder: Saves. Open this folder and find the folder which contains your world. In the case I displayed above it would be called: TEST. Find the FTP URL to this map. Usually through properties. Otherwise open the: RecentWorlds file with notepad and look for the last saved world named TEST (or the name you gave your world) and copy the link it gives you. Which will probably look a bit like this:

c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST

Paste this link like in between the config file line like this: <LoadWorld></LoadWorld> So it looks like this: LoadWorld>c:\games\183_219_32_169_56015\1144769\medievalengi\Saves\TEST</LoadWorld> THIS IS VERY IMPORTANT!! If you don't do that it will create a new world every time the server resets or restarts!


Now go ahead and and change the line: <WorldName>TEST</WorldName> to: <Worldname/>

Now save the config file again and start up your server! Following the above, it would be perfectly set and will have the mods you need and will keep your world like you left it.

Tips

  • Set auto save in the server to 5 - 10 minutes so in case your server shuts down you dont have to do all your work again.
  • Create a backup of all the files before starting to do any changes. In case you mess up you will always have a backup. In case you did mess up and you dont have a backup, use the reinstall server button somewhere on the admin pannel on the website of you server host or contact them and ask them to reinstall the server.
  • Make frequent backups of all the files. Especially the map you are using.
  • Make your server stranger friendly. Ask people not to destroy stuff when they enter using signs in game. Or use a mod to create a protection around your builds.
  • Don´t make someone an admin unless you really trust that person.
  • In case you accidentally remove a building using Ctrl - x, either: try to place it back using Ctrl - V or, leave the server at once and restart the server, this in the hopes the server did not save yet and it will remain as you left it.

Side notes

Be aware that some hosts have different settings and levels of security. This can also affect changing the config file. For example, some hosts allow you to change the config file using FTP but will not change the settings of the config file in the admin panel. In which case you have to make the same changes in each file.

I will change things on this topic if there are new updates changing things.