Dota 2 Dedicated Servers
10 Attachment(s)
It is now possible to run dedicated servers for Dota 2 on all platforms: Windows, Linux, and Mac OS X.
Installation To get started, download Dota 2 using the Steam client or SteamCMD with appid 570. For SteamCMD, you will have to login to an existing Steam account since it is not available when logging in anonymously. For Mac OS X, follow the Linux instructions for SteamCMD usage. The Mac OS X build of SteamCMD can be downloaded here. Next, download the appropriate attachment below for the OS on which you wish to run a server. Extract the files into your Dota 2 install directory. Note that this will overwrite the dedicated.so or dedicated.dylib file on Linux or OS X. By default, the install directory will be one of the following:
For both Linux and Mac OS X, if you don't have the Steam client installed, you will need to still obtain the steamclient binaries from a Steam client install for your OS and copy them to the bin directory of your Dota 2 install. This includes crashhandler, steamclient, libsteam, libtier0_s, and libvstdlib_s. On Linux, these files have a .so extension and can be found in ~/.steam/bin32. On OS X, they have a .dylib extension and can be found in /Applications/Steam.app/Contents/MacOS/osx32. From /Applications/Steam.app/Contents/MacOS, you will also need to copy the Frameworks directory to your server's install directory (NOT bin). Before you run the server, it is highly recommended that you also install the latest snapshot of Metamod:Source and the Dota 2 Fixups plugin in order to fix a number of issues. Note that you must edit the gameinfo.txt file in the "dota" subdirectory in order to install Metamod:Source. For more details on this install method, see the documentation here. (If you chose to use a Steam client install from which you also play the game, you will need to remove the gameinfo edit before launching the Dota client.) Running the Server After installing the necessary files, running the server is easy if you've ever run Source servers before. Open a terminal program (or the command prompt on Windows) and navigate to the directory containing your Dota 2 installation. Then run the following command depending on which OS you are using:
If on Linux and using the copy of steam-runtime shipped with the Steam client, its default path is ~/.steam/bin32/steam-runtime. Special thanks to psychonic for testing this on Linux and for creating the Dota 2 Fixups plugin! |
Re: Dota 2 Dedicated Servers
hi
what I need to edit in gameinfo.txt ? when I start the server it shuts down srcds.exe -console -game dota +map dota +ip x.x.x.x -port xxxxx (windows) "GameInfo" { game "DOTA 2" gamelogo 1 type multiplayer_only nomodels 1 nohimodel 1 nocrosshair 0 GameData "dota.fgd" SupportsDX8 0 FileSystem { SteamAppId 816 // This will mount all the GCFs we need (240=CS:S, 220=HL2). ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc. // // The code that loads this file automatically does a few things here: // // 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin // 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end. // For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it. // 3. For the first "Game" search path, it adds a search path called "MOD". // 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH". // // // Search paths are relative to the base directory, which is where hl2.exe is found. // // |gameinfo_path| points at the directory where gameinfo.txt is. // We always want to mount that directory relative to gameinfo.txt, so // people can mount stuff in c:\mymod, and the main game resources are in // someplace like c:\program files\valve\steam\steamapps\<username>\half-life 2. // SearchPaths { Game |gameinfo_path|. Game platform } } } |
Re: Dota 2 Dedicated Servers
Quote:
Code:
SearchPaths |
Re: Dota 2 Dedicated Servers
Alright!!! So there's a lot of confusion on here and elsewhere on how to run a Dota 2 server of your own, here's a complete(hopefully) rundown:
What you need: steamcmd The latest Metamod:Source 1.11 Snapshot. The latest download of d2fixups. Installation: You'll use steamcmd to install and maintain your Dota installation. Follow these instructions using Dota's appid of 570. So, when you see commands like: PHP Code:
PHP Code:
You'll need a compatible srcds executable for your platform. Get it from DS's original post in this thread above. Extract it into "/dotaserver/", putting the core files (e.g. srcds_linux, srcds.exe) alongside your Dota exectuable. Open up your steamcmd install to the (dotaserver/dota) directory. Metamod:Source goes inside your addons folder. If you look inside of the .rar, you'll see an "addons" folder. This means that it's meant to be merged with your existing addons folder, so drop it inside of dotaserver/dota directly. d2fixups is the same way. After extracting MM:S, extract d2fixups just like that. To get Metamod:Source to load, you need to edit gameinfo.txt in (dotaserver/dota) as per the instruction in this article under "GameInfo". Launching srcds You'll need to run the program with certain parameters. DS's original post brushes over the specifics of executing SRCDS on your platform. Mandatory: PHP Code:
PHP Code:
PHP Code:
In Windows, I like creating a shortcut and editing its "target". This involves creating a shortcut to srcds.exe, opening Right click-> Properties, and adding your parameters after the final quotation mark in the Target: field. You'll need these, for sure: -console -game dota +map dota -maxplayers 10 -port <yourchosenport> -ip <computersLANIP> So, my Target: field looks something like this: "C:\dotaserver\srcds.exe" -console -game dota -port 3003 -ip 192.168.1.4 -maxplayers 10 For -ip, input your computer's LAN address. Windows users can find out how here: http://windows.about.com/od/networkc...-Windows-7.htm Pick any available port for -port. Keep in mind that in addition to any typical networking considerations (firewalls, etc.), if you want to make your server joinable over the network, you need to forward your chosen port. Find your router on this list., and pick a guide for any game. Then, just apply the instructions given, but for whatever port you've chosen. Connecting and Playing To connect clients must enter Code:
connect ip:port Code:
connect 192.168.1.4:27015 Code:
jointeam good Code:
jointeam bad Code:
dota_wait_for_players_to_load 1 |
Re: Dota 2 Dedicated Servers
Thanks a lot for this. It's really cool :up:
Actually, I have some problems running the server. After installing and configuring the server according above instructions, I run it. But it writes: ********************************************* *** * Unable to load Steam support library. * * This server will operate in LAN mode only. * ********************************************* *** How to fix this??? P.S. How to use Sourcemod for this server? |
Re: Dota 2 Dedicated Servers
Quote:
Quote:
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
Quote:
the result of "meta list" is Listing 2 plugins: [01] <ERROR> [02] Dota 2 Fixups (2.0.0) by Nicholas Hastings |
Re: Dota 2 Dedicated Servers
Quote:
Code:
meta load addons/sourcemod/bin/sourcemod_mm |
Re: Dota 2 Dedicated Servers
Quote:
SM_version: 1.6.0-hg4283 |
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
In the meantime, try replacing your srcds_linux with this one, <removed link since first post has now been updated with new bins> |
Re: Dota 2 Dedicated Servers
I have a error :
Code:
user:~$ ~/steam-runtime/run.sh /home/user/OGP_User_Files/Dota2/./srcds_run -game dota +map dota |
Re: Dota 2 Dedicated Servers
Quote:
A workaround is to copy the libc.so.6 (and libm.so.6) from a newer distribution into your Dota 2 directory (next to srcds_linux). |
Re: Dota 2 Dedicated Servers
I've updated the first post with a new srcds binary for Linux.
It should fix the undefined symbol error mentioned earlier. It should also fix another symbol error that occurs when attempting to load the clientprefs extension for SourceMod. |
Re: Dota 2 Dedicated Servers
The first post has been updated once again with a new dedicated binary for Linux and Mac OS X. This fixes an issue where VScript files couldn't be run and some custom game modes wouldn't work as a result.
|
Re: Dota 2 Dedicated Servers
Everything works fine.
Thank you guys. :up: |
Re: Dota 2 Dedicated Servers
Server runs fine. But when me and my friend play on it, it crashes after a short time when game is in progress.
It writes the following on server console: Code:
/home/user/dota2/srcds_run: line 356: 2870 Segmentation fault (core dumped) $HL_CMD sm version: Code:
SourceMod Version Information: Code:
Metamod:Source version 1.11.0-dev Code:
Listing 3 plugins: Code:
[SM] Listing 17 plugins: Code:
[SM] Displaying 7 extensions: P.S. I've opened a new thread about it. But when I saw the url for posting crashes I thought that it is mostly related to this topic. |
Re: Dota 2 Dedicated Servers
Good, i can play dota 2 Lan in offline mode. but, how to fill the empty slot with bots?
I usually use "dota_start_ai_game 1" then, this message appear Can't change replicated ConVar dota_start_ai_game from console of client, only server operator can change its value how to fill the empty slot with bots? |
Re: Dota 2 Dedicated Servers
i use mac os. whenever i try to launch srcds_run on termainal using the command " .../srcds_run -game dota +map dota " an error message follows stating
"ERROR: Invalid game type 'dota' sepecified. Wed Apr 2 14:46:43 IST 2014: Server Failed" |
Re: Dota 2 Dedicated Servers
Quote:
This message Code:
Can't change replicated ConVar dota_start_ai_game from console of client, only server operator can change its value |
Re: Dota 2 Dedicated Servers
Aside from our crashes due to cosmetics on Linux, I'm having another issue now... The server seems to shutdown whenever someone disconnects, for example, if I fail to connect (like I don't have the map or something), the server instantly closes. Same thing if someone disconnects halfway through.
I'm running metamod and sourcemod, as well as d2fixups. I'm not sure what would cause this. The server log just says someone disconnected, and then immediately ends. |
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
I'm having trouble connecting to the server on three windows servers right now, I'm not quite sure why as if I launch the Alien Swarm style setup on the server it works fine, but using the same port in this version I can't connect. This is strange as I can connect to it on my local server. The setups are exactly the same on every server as I have an exe setting everything up. Any ideas why I wouldn't be able to connect? Also, does RCON use TCP or UDP in this? Which is better? Do I need the rcon handshake? |
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
So, I followed these guides:
https://github.com/ash47/Frota#how-d...ay-with-friend[1] http://www.reddit.com/r/Dota2Modding...host_your_own/[2] https://forums.alliedmods.net/showth...03#post2110203[3] But whatever I do, I can't get it to work. I run srcds.exe via the command line and the shortcut but each way it just closes after few seconds. Here's how my folders look: http://imgur.com/a/MgOyl#0 [4] Any idea what could be going wrong? Here's some log file i dug up: Code:
---- Host_NewGame ---- |
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Hello everybody,
I'm trying to setup an offline dota 2 server for a lan party (completly without internet), metamod and the d2fixups are installed, but if i'm trying to host a new game over typing 'map dota' the server kills itself without giving an error or something else. Any ideas about what I can do? #Console initialized. #Adding VPK file: D:\servers\d2server\dota\sound_vo_english #Adding VPK file: D:\servers\d2server\dota\pak01 #Adding VPK file: D:\servers\d2server\platform\pak01 #Could not get IReplayDirector interface from library server.dll#Game.dll loaded for "Dota 2" [D2Fixups] Warning: Failed to setup Test Clint shutdown patch. Unknown command "mat_bloom_scalefactor_scalar" Unknown command "mat_grain_enable" Unknown command "dota_camer_listening_offset" meta version Metamod:Source version 1.10.1-dev Build ID: 863:40f95b364a37-dev Loaded As: GameDLL (gameinfo.txt) Compiled on: Aug 25 2013 Plugin interface version: 15:14 SourceHook version: 5:5 http://www.metamodsource.net/ meta list Listing 1 plugin: [01] Dota 2 Fixups (2.0.1) by Nicholas Hastings |
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
What are the possible causes of this message? The server shuts itself down afterwards.
Code:
************************************************ |
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Quote:
|
Re: Dota 2 Dedicated Servers
Tryed these instructions. Server seems run fine, but i can't connect. Whats wrong with him?
Ubuntu 14.04 Code:
root@udota:/ext/games/dota2# ./run.sh ./srcds_run -debug -game dota +map dota Code:
] connect 6.6.6.17 |
Re: Dota 2 Dedicated Servers
Get rid of the revemu no-steam garbage and it will work.
|
Re: Dota 2 Dedicated Servers
Hello there, let me introduce myself quickly. I'm a french dota 2 player and I'm having a LAN-party soon with some friends.
Of course, your tutorial to run a DotA 2 dedicated server is the best thing I've ever crossed on the Internet for a while, because I really want to play this game offline with no internet connection ! So, having some troubles I've just registered to this forum. First of all, a big thank you for your work ! So here's my trouble : I have installed the server following the guide step by step, and since i work in ITs I have no real problem to understand what I'm doing. When I launch the server, it seems to be stable, but when I use the command "map dota", there are some error messages : http://i.imgur.com/F9LR7s9.png I don't know what the path \\scripts\maps\.txt refers to. And why can't i exec server.cfg ? Thank you for your further help. |
Re: Dota 2 Dedicated Servers
Quote:
You can ignore the "\\scripts\maps\.txt" message, and not being able to exec server.cfg is normal if you don't have one (which is fine). |
Re: Dota 2 Dedicated Servers
Hello Psychonic, thank you for answering so fast ! Unfortunately, your tip doesn't seem to fix my problem.
Here are some detailed screenshots of my procedure to run it : http://i.imgur.com/2Zznk4O.png |
Re: Dota 2 Dedicated Servers
Quote:
|
All times are GMT -4. The time now is 17:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.