Difference between revisions of "Unturned"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m (Online Server for Unturned)
m (Unturned Client Paths)
 
(26 intermediate revisions by 2 users not shown)
Line 29: Line 29:
 
  loadout 255/2/15/81/104/121/138/253/334/1175
 
  loadout 255/2/15/81/104/121/138/253/334/1175
  
==LAN Server via SteamCMD==
+
== Unturned Server ==
===installation===
+
see: [[Unturned: Server]]
install SteamCMD (if you dont already have it) - Ubuntu/Mint
+
sudo apt install steamcmd
+
sudo add-apt-repository multiverse
+
sudo dpkg --add-architecture i386
+
sudo apt update
+
sudo apt-get install lib32gcc1
+
  
Microsoft Windows Users try:
+
===LAN Server via SteamCMD===
* [https://linuxmint.com/download.php Best Option for Windows 10 Users].
+
see: [[Unturned: Server]]
  
Once installed, start your server from the command prompt like this:
+
== Game Play ==
./ServerHelper.sh +LanServer/MyServer
+
Salvage Object:  If you are server admin you can salvage faster, and if you are in single-player than you salvage everything really fast. In multiplayer it takes a bit longer to salvage stuff you can not change that.   Players can only salvage structures that they place.
The full path to the ServerHelper.sh script for Unturned is...
+
* Server settings -> Buildables -> Salvage Speed ->1.00-10.00 (setting for singleplayer mode)
~/.local/share/Steam/steamapps/common/Unturned/ServerHelper.sh
+
  ~/.local/share/Steam/steamapps/common/U3DS/ServerHelper.sh
+
''note: Not sure what the difference is in the script at each location above.''
+
  
The configuration file for your server with the default parameters including difficulty level, map, etc, is stored in a file called Commands.dat
+
===screenshots===
vi ~/.local/share/Steam/steamapps/common/U3DS/Servers/MyServer/Server/Commands.dat
+
The default screenshot key is F12.  Screenshots are stored in your player data folder ~/Steam/userdata/XXXXXXXXXXX/760/remote/304930/screenshots
Replace the text "MyServer" with the name of your server.  The default name is actually MyServer, yours will be named that unless you specified otherwise.
+
  
Configuration file for additional parameters
+
If more than one Steam user shares a computer the second user screenshots may not appear in any player data folder.
vi ~/.local/share/Steam/steamapps/common/U3DS/Servers/MyServer/Config.json
+
  
Workshop Mods
+
== Game Client Support ==
ls ~/.local/share/Steam/steamapps/workshop/content/304930
+
===Steam64 ID===
 +
It is useful to know your Steam User ID. it is in the form of Steam ID 64. 
  
=== Creating a Server using a New Map (New Server New Map) ===
+
go to the http://steamcommunity.com/ page and log in if you are not yet connected to the steam page. Then click on your Username in the top menu. The numbers are your Steam ID (in this example, so the ID is 7612312351242. Note yours somewhere.
With SteamCMD and Unturned both installed, the next step is to setup and configure the server with a map of your choice.
+
  
Consider a name for your new server.  It is a good idea to incorporate the name of the map into your server name to aide in your organization if you eventually have multiple servers.  For this example we will use the Hawaii map.
+
===Unturned Client Paths===
 +
The SteamID for the Unturned game itself is 304930
  
You must start the server once, then terminate it, to allow the binary to create all of the necessary configuration files.
+
Unturned Curated and Official Maps linux
  cd ~/.local/share/Steam/steamapps/common/U3DS
+
* ~/.local/share/Steam/steamapps/common/Unturned/Maps/
./ServerHelper.sh +LanServer/HawaiiLuau
+
Unturned Curated and Official maps windows
When finished loading you should see the last line in console look something like this:
+
* C:\Program Files (x86)\Steam\SteamApps\common\Unturned\Maps\
Total: 132.052000 ms (FindLiveObjects: 3.179000 ms CreateObjectMapping: 1.160000 ms MarkObjects: 126.958000 ms  DeleteObjects: 0.754000 ms)
+
Now shut it down by issuing the 'shutdown' command in the server console.  you wont see the first letter of shutdown so it will actually look like you typed 'hutdown'
+
shutdown
+
Create the mail configuration file 'Commands.dat' which specifies among other things, the map you will be using.  It wont exist until you create it.  Observe correct case and path.
+
vi Servers/HawaiiLuau/Server/Commands.dat
+
Populate the file with the correct parameters including the name of the map.
+
name A discreption of your map and game rules for the server poll list
+
map Hawaii
+
maxplayers 6
+
welcome Give your map a clever MOTD for players to read when they connect
+
mode Hard
+
owner 12345678901234567
+
cheats Enabled
+
perspective Both
+
loadout 255/2/253/1175/1445/1446/1508
+
password blah123
+
port 27015
+
In this example we choose some useful parameters.  The map name must match the name of a curated map identifier or one that you have manually installed. 
+
  
If you try to run the server at this point you will see the following error because Hawaii is a custom map:
+
''workshop maps, those created by players, will not appear in the folders above but instead in workshop/content/304930 - see workshop items below.''
Attempting to load curated map 'Hawaii'? Include its workshop file ID (1753134636) in the WorkshopDownloadConfig.json File_IDs array.
+
Failed to find map Hawaii, defaulting to PEI!
+
Install the custom map on the server (if necessary depending on your setup).  There are a couple options for you to accomplish this.  The first is to manually place the files on the server.  The second and best option is to configure the server to automatically download the map, which also triggers connecting clients to automatically download and install the map when they attempt to connect to your game server.  Here the second best option is described.
+
  
Determine the ID of the custom map.  In the Unturned game client goto WORKSHOP -> MANAGE and look for the map workshop item, then click 'View Details.'  Take note of the map ID number.  In our example Hawaii is '1753134636'. Back to the server you will edit:
+
Screenshots linux
vi ~/.local/share/Steam/steamapps/common/U3DS/Servers/HawaiiLuau/WorkshopDownloadConfig.json
+
* ~/.local/share/Steam/userdata/<your steam id>/???/remote/304930/screenshots/
looks like:
+
Screenshots Windows
{
+
*
  "File_IDs": [
+
    1753134636
+
  ],
+
  "Query_Cache_Max_Age_Seconds": 600,
+
  "Max_Query_Retries": 2,
+
  "Use_Cached_Downloads": true,
+
  "Should_Monitor_Updates": true,
+
  "Shutdown_Update_Detected_Timer": 600,
+
  "Shutdown_Update_Detected_Message": "Workshop file update detected, shutdown in: {0}",
+
  "Shutdown_Kick_Message": "Shutdown for Workshop file update."
+
}
+
save and launch the server
+
./ServerHelper.sh +LanServer/HawaiiLuau
+
You should see among a bunch of other messages:
+
1753131903 'Hawaii Assets' queued for download
+
Downloading workshop item: 1753134636
+
That's good.  Server is ready for play.
+
  
== Online Server for Unturned ==
+
Client logs linux
You can use your existing LAN server (assuming that you set one up using the guide you found here) to operate an online game server for others on the Internet to connect to and use.  For those of you with a great Internet connection and a static IP address or your own subnet, you will have it made.  However, the average Internet user as an asymmetrically proportioned residential broadband connection with dynamic IP addressing. This does not make the hosting of an online game server impossible, it just is far from ideal and depending on your Internet provider anywhere from somewhat more difficult to impossible.  You will likely have to understand how to set up a port forward in your CPE (firewall/router) and dedicate a port for your server.
+
* ~/.local/share/Steam/steamapps/common/Unturned/Logs
 +
Client logs windows
 +
* C:\Program Files (x86)\Steam\SteamApps\common\Unturned\Logs
  
When sharing your at home Unturend game server to the Internet community is not working out you can consider the option of purchasing a rental game server from one of the commercial providers available online.  Typical monthly fees range from $12/mo on up to $40/mo for the vast selection of purpose built providers.
+
===workshop item downloads===
 +
Again, the SteamID for the Unturned game itself is 304930
  
In order to assist you in your search for a good Unturned Game Server Host there is our [[Unturned: Dedicated Hosting Providers]] page.  Information listed is based on individual experiences and opinion.  I would consider it the most unbiased and useful guide available for reviews of Unturned Game Hosting Providers as of late 2021.  In your search try to find a host that uses [[Linux]] rather than Microsoft as a Linux server will more efficiently manage available memory and should offer you a better price since the provider is not wasting money on expensive Windows licensing fees.  An Unturned server runs quite nicely on Linux and well perform much better on equivalent hardware.
+
Workshop files linux
 +
* ~/.local/share/Steam/steamapps/workshop/content/304930/
 +
Workshop files windows
 +
* C:\Program Files (x86)\Steam\SteamApps\workshop\content\304930\
  
== Mods for Unturned ==
+
If you do a list on that path you might see many folders with names that are entirely numeric.  Each of these directory names is the ID for the workshop item it represents.  If unsubscribing from a workshop item does not resolve an issue you can manually delete these directories to ensure a fresh copy is downloaded next time you launch the game.  Delete the folders only when the game is not running.
=== Rocket / RocketMod / RocketMod 4 for Unturned Server ===
+
see: [[Unturned: RocketMod]]
+
  
== Miscellaneous Support ==
+
===setting a custom map===
===Steam64 ID===
+
Edit two files:
It is useful to know your Steam User ID. it is in the form of Steam ID 64.
+
* ../unturned/Server/Commands.dat
 +
* ../unturned/WorkshopDownloadConfig.json
  
go to the http://steamcommunity.com/ page and log in if you are not yet connected to the steam page. Then click on your Username in the top menu. The numbers are your Steam ID (in this example, so the ID is 7612312351242. Note yours somewhere.
+
In the Commands.dat file change the MAP parameter to the name of the custom map. Example:
 +
Map Ireland
 +
In the WorkshopDownloadConfig.json you need to add the steam workshop ID for any map that is not vanilla or curated.
  
===Linux Unturned Client Paths===
+
===Black Vehicle and Map Assets===
Workshop files
+
Black Assets / Missing Asset Texture - Sometimes certain assets on the map or plugin items like a vehicle appear black, as if the skin was missing. Even for different player account on the same computer, for one player it is fine, the other has the black asset appearance problem.  Unsubscribing from workshop does not resolve.  Anyone experience this or have a link to some known issue and resolution?
* ~/.local/share/Steam/steamapps/workshop/
+
  
Custom Workshop Maps
+
Resolution: Goto Settings  GRAPHICS -> then scroll down to the bottom and change "Render Mode" to "Deferred [Recommended]".
* ~/.local/share/Steam/steamapps/common/Unturned/Maps/
+
 
 +
If it is set to "Forward [legacy]" then you may notice that the skin or color of some modded assets will not render correctly. They will appear all black with no lighting.
 +
 
 +
INCOMPATIBLE WITH LINUX:
 +
 
 +
Some maps are NOT Linux compatible.  Here is a quote from one mapmapker's steam workshop page, "IF YOU HAVE FRANCE INSTALLED, YOU DO NOT NEED TO INSTALL FRANCE+ , I use France+ because normal France assets do not work on Linux."
 +
 
 +
VULKAN VS OPENGL
 +
 
 +
Older maps use OpenGL map shaders and are not compatible with the newer vulkan graphics renderer used by Unity.  There are Unity command line switches that work with Unturned.  If you are playing a custom map, like Ireland, and rock formations appear black then you can force OpenGL
 +
  -force-glcore
 +
 
 +
If you are having problems with gizmos then you can force Vulkan
 +
  -force-vulkan
 +
 
 +
 
 +
===Build Mode aka Admin Edit Position Indicator aka Gizmos Absent Since 3.22.14.0 Update===
 +
Those playing Unturned on Linux are impacted by this new bug.  No longer able to use builder mode aka admin edit to move structures and barricades effectively.  The red green blue three arrow point indicator is invisible.  Referring to the mode used by players from the game client to edit the position of structures and barricades while playing the game.
 +
 
 +
Nelson calls the arrow indicators "Gizmos."
 +
 
 +
Resolution provided by Smartly Dressed Games, Nelson Sexton himself (the developer): The bug impacts linux users that are using OpenGL.  temporary workaround:
 +
# Right-click Unturned in your Steam Library
 +
# Select Properties... > General
 +
# Find the Launch Options field
 +
# Type "-force-vulkan" without quotes
 +
 
 +
As an FYI you can force the game to use either via command line parameter in the same way
 +
* -force-vulkan
 +
* -force-glcore
  
 +
GIZMOS LIKE THE BUILDER MODE ARROWS use the command line switches for the Ireland Map.  Because the Ireland map is not Vulkan compatible. 
 +
  -force-glcore -FallbackGizmos
  
 
[[Category:Computer_Technology]]
 
[[Category:Computer_Technology]]
 
[[Category:Software]]
 
[[Category:Software]]
 
[[Category:PC Gaming]]
 
[[Category:PC Gaming]]

Latest revision as of 13:50, 8 October 2022

Unturned is a 2014 Survival Sandbox game by Nelson Sexton, founder of Smartly Dressed Games.. A combination of a Wide Open Sandbox and Survival Horror game. You're dumped completely naked into a Zombie Apocalypse and have to find a way to survive. You can scavenge supplies from the abandoned towns and facilities or take to the wilderness to build a new settlement and grow your own food.

Unturned Commands

Open the chat box to enter an Unturned command. To use the command, start with the character "@" or "/" before your command.

Unturned Loadout Command

Give players each item when spawning. Using SkillsetID of 255 gives the item set to everyone. Can only be used in the server console or the servers commands.dat file.

The syntax:

/loadout [Skillset ID] [Item IDs]

Argument information and help:

  • Skillset ID - The skillset ID of the skillset you wish to set the loadout for - use 255 to set the loadout for all players/skillsets
  • Item IDs - A slash-separated list of item IDs you wish to set the loadout to - e.g. 2/3/4

The following loadouts can be use to replicate the default single-player ones.

loadout 0/180/214
loadout 1/233/234/241
loadout 2/223/224/225
loadout 3/1171/1172
loadout 4/242/243/244
loadout 5/509/511/510
loadout 6/211/213
loadout 7/232/2/240
loadout 8/230/231/239
loadout 9/1156/1157
loadout 10/311/312

A good loadout for beginner players in Normal difficulty game maps.

loadout 255/2/15/81/104/121/138/253/334/1175

Unturned Server

see: Unturned: Server

LAN Server via SteamCMD

see: Unturned: Server

Game Play

Salvage Object: If you are server admin you can salvage faster, and if you are in single-player than you salvage everything really fast. In multiplayer it takes a bit longer to salvage stuff you can not change that. Players can only salvage structures that they place.

  • Server settings -> Buildables -> Salvage Speed ->1.00-10.00 (setting for singleplayer mode)

screenshots

The default screenshot key is F12. Screenshots are stored in your player data folder ~/Steam/userdata/XXXXXXXXXXX/760/remote/304930/screenshots

If more than one Steam user shares a computer the second user screenshots may not appear in any player data folder.

Game Client Support

Steam64 ID

It is useful to know your Steam User ID. it is in the form of Steam ID 64.

go to the http://steamcommunity.com/ page and log in if you are not yet connected to the steam page. Then click on your Username in the top menu. The numbers are your Steam ID (in this example, so the ID is 7612312351242. Note yours somewhere.

Unturned Client Paths

The SteamID for the Unturned game itself is 304930

Unturned Curated and Official Maps linux

  • ~/.local/share/Steam/steamapps/common/Unturned/Maps/

Unturned Curated and Official maps windows

  • C:\Program Files (x86)\Steam\SteamApps\common\Unturned\Maps\

workshop maps, those created by players, will not appear in the folders above but instead in workshop/content/304930 - see workshop items below.

Screenshots linux

  • ~/.local/share/Steam/userdata/<your steam id>/???/remote/304930/screenshots/

Screenshots Windows

Client logs linux

  • ~/.local/share/Steam/steamapps/common/Unturned/Logs

Client logs windows

  • C:\Program Files (x86)\Steam\SteamApps\common\Unturned\Logs

workshop item downloads

Again, the SteamID for the Unturned game itself is 304930

Workshop files linux

  • ~/.local/share/Steam/steamapps/workshop/content/304930/

Workshop files windows

  • C:\Program Files (x86)\Steam\SteamApps\workshop\content\304930\

If you do a list on that path you might see many folders with names that are entirely numeric. Each of these directory names is the ID for the workshop item it represents. If unsubscribing from a workshop item does not resolve an issue you can manually delete these directories to ensure a fresh copy is downloaded next time you launch the game. Delete the folders only when the game is not running.

setting a custom map

Edit two files:

  • ../unturned/Server/Commands.dat
  • ../unturned/WorkshopDownloadConfig.json

In the Commands.dat file change the MAP parameter to the name of the custom map. Example:

Map Ireland

In the WorkshopDownloadConfig.json you need to add the steam workshop ID for any map that is not vanilla or curated.

Black Vehicle and Map Assets

Black Assets / Missing Asset Texture - Sometimes certain assets on the map or plugin items like a vehicle appear black, as if the skin was missing. Even for different player account on the same computer, for one player it is fine, the other has the black asset appearance problem. Unsubscribing from workshop does not resolve. Anyone experience this or have a link to some known issue and resolution?

Resolution: Goto Settings GRAPHICS -> then scroll down to the bottom and change "Render Mode" to "Deferred [Recommended]".

If it is set to "Forward [legacy]" then you may notice that the skin or color of some modded assets will not render correctly. They will appear all black with no lighting.

INCOMPATIBLE WITH LINUX:

Some maps are NOT Linux compatible. Here is a quote from one mapmapker's steam workshop page, "IF YOU HAVE FRANCE INSTALLED, YOU DO NOT NEED TO INSTALL FRANCE+ , I use France+ because normal France assets do not work on Linux."

VULKAN VS OPENGL

Older maps use OpenGL map shaders and are not compatible with the newer vulkan graphics renderer used by Unity. There are Unity command line switches that work with Unturned. If you are playing a custom map, like Ireland, and rock formations appear black then you can force OpenGL

 -force-glcore

If you are having problems with gizmos then you can force Vulkan

 -force-vulkan


Build Mode aka Admin Edit Position Indicator aka Gizmos Absent Since 3.22.14.0 Update

Those playing Unturned on Linux are impacted by this new bug. No longer able to use builder mode aka admin edit to move structures and barricades effectively. The red green blue three arrow point indicator is invisible. Referring to the mode used by players from the game client to edit the position of structures and barricades while playing the game.

Nelson calls the arrow indicators "Gizmos."

Resolution provided by Smartly Dressed Games, Nelson Sexton himself (the developer): The bug impacts linux users that are using OpenGL. temporary workaround:

  1. Right-click Unturned in your Steam Library
  2. Select Properties... > General
  3. Find the Launch Options field
  4. Type "-force-vulkan" without quotes

As an FYI you can force the game to use either via command line parameter in the same way

  • -force-vulkan
  • -force-glcore

GIZMOS LIKE THE BUILDER MODE ARROWS use the command line switches for the Ireland Map. Because the Ireland map is not Vulkan compatible.

 -force-glcore -FallbackGizmos