HowTo: Dedicated Brink Server unter Linux [Wine]

Wer hÁ¤tte das gedacht: Dedicated Server sind noch nicht tot :)

Yet there is no Dedicated Server for Linux, but its comming soon: Source

Eins vorweg: es gibt noch keine Linux Serverfiles, deshalb führt erstmal kein Weg an einer Grafischen OberflÁ¤che = Wine vorbei. (Alldergins kann man es mit Xvfb nutzen) Diese Anleitung kann genauso für Windows verwendet werden, die Befehle sind ja (fast) gleich.

PPA in die sources.list eintragen für aktuelle wine Version:


sudo sh -c 'echo "deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu lucid main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu lucid main" >> /etc/apt/sources.list'

Wine installieren

sudo apt-get wine

Win HLDS Tool installieren und Serverfiles laden:

wget http://www.steampowered.com/download/hldsupdatetool.exe
wine hldsupdatetool.exe
wine ~/.wine/drive_c/Program\ Files/Valve/HLServer/HldsUpdateTool.exe -command update -game brink -dir ~/server/brink

Sollte Wine/HLDS folgende Fehlermeldung bringen: ERROR: delete of HldsUpdateTool.exe failed, Win32 Error 32 "Sharing violation"einfach folgende zwei Befehle ausführen und den letzen Befehl wiederholen:


rm ~/.wine/drive_c/Program\ Files/Valve/HldsUpdateTool.exe
mv ~/.wine/drive_c/Program\ Files/Valve/HldsUpdateToolNew.exe HldsUpdateTool.exe

Nun noch meine Beispiel Config laden und den Server mit dieser Zeile starten:


cd ~/server/brink
wget http://wiiare.in/download/server2.cfg
wine brink.exe +set net_serverDedicated 1 +set exec_maxThreads 1 +set net_serverPort 27015 +set net_serverPortMaster 27016 +set net_serverPortAuth 8766 +exec server2.cfg

Sollte nun der Server nicht starten, versucht dies:

wget http://winetricks.org/winetricks

und dann

sh winetricks physx d3dx9 dsound xact vcrun2005 d3dx10 d3dx11_42 d3dx11_43 d3dxof mfc42 vcrun2008

[spoiler effect="blind" show="Brink Server Sample Config"]
si_adminName "lordfiSh"
si_email "[email protected]"
si_irc "irc.euirc.net/wiiare-in"
si_motd_1 "Willkommen :)"
si_motd_2 ""
si_motd_3 ""
si_motd_4 ""
si_website "wiiare.in"
si_serverURL

//Max players
//This seems to be broken, I think?
si_maxPlayers 16

//Amount of players required to start a match
si_minPlayers 2

//Max players per team
si_maxTeamSize 8

//max HUMAN players
si_maxPlayersHuman 16

//Game Rules
//si_rules sdGameRulesStopWatch
//si_rules sdGameRulesObjective
//si_rules sdGameRulesChallenge
//si_rules sdGameRulesCampaign
si_rules sdGameRulesObjective

//Server Configuration
//Standard
//Advanced
//Competition
//Old Skool
//Custom
applyServerConfig Advanced

//ADMINSettings
net_serverRemoteConsolePassword "rconlies"
//net_clientRemoteConsoleAddress //net_clientRemoteConsolePassword

//Set the name of your server
si_name "wiiare.in #2 Server"

//Password your server?
//0 = No
//1 = Yes
si_needpass 0

//Password for your server - si_needpass NEEDS to be set to 1!
g_password "mylongpassword"

//Set the play mode
//si_playmode 0 = solo
//si_playmode 1 = Co-op
//si_playmode 2 = versus
si_playmode 2

//Allow server to be borrowed by players who are using matchmaking service?
//This will allow the match making service to use your server when it is empy!
net_allowServerHijacking 1

//Set who can join your server
//0 = SOLO
//1 = INVITE ONLY
//2 = FRIENDS & INVITES
//3 = EVERYONE
si_onlineMode 3

//Friendly fire
//0 = Off
//1 = On
si_teamDamage 0

//Enable spectating
//0 = Off
//1 = On
si_spectators 1

//Server time limit
si_timelimit 30

//Set if players can only join the smaller size team
//0 = Off
//1 = On
si_teamForceBalance 1

//Diable Voting?
//0 = Off
//1 = On
si_disableVoting 0

//Bot Difficulty
//-1 = ANY
//0 = EASY
//1 = NORMAL
//2 = HARD
si_botDifficulty -1

//Percentage of players that need to ready up to start a match
si_readyPercent 80

//Allow players to spawn and play during warm-up period
//0 = Off
//1 = On
si_warmupSpawn 1

//Rim lighting tints on enemies
//0 = Off
//1 = On
si_enemyTintEnabled 1

//Enable rank restrictons
//0 = Off
//1 = On
si_rankRestricted 1

//Restrict player ranks
//si_maxRank 0 = Rank 1 players only
//si_maxRank 1 = Rank 1 and 2 players only
//si_maxRank 2 = Rank 1, 2 and 3 players only
//si_maxRank 3 = Rank 1, 2, 3 and 4 players only
//si_maxRank 4 = All player ranks can join
si_maxRank 4

//////////////////////////////////////// /////////
//ONLY ENABLE ONE MAP ROTATION - FIXED OR VOTE!//
//////////////////////////////////////// /////////

//Maprotation - FIXED!
//The server will run the below maps in the order listed.
g_mapRotationFixed "mp/aquarium,mp/ccity,mp/reactor,mp /refuel,mp/resort,mp/sectow,mp/shipyard, mp/terminal"

//Maprotation - VOTE!
//Server will allow the players to vote which map to play at the end of each round! They can ONLY choose from the maps listed below!
g_mapRotationVote "mp/aquarium,mp/ccity,mp/reactor,mp /refuel,mp/resort,mp/sectow,mp/shipyard, mp/terminal"

//SPAWN SERVER (Start Server with map aquarium)
spawnServer mp/aquarium.entities
[/spoiler]

No comments yet