{"id":427,"date":"2018-04-30T11:26:43","date_gmt":"2018-04-30T19:26:43","guid":{"rendered":"https:\/\/lagnet.org\/blog\/?p=427"},"modified":"2018-05-05T19:49:21","modified_gmt":"2018-05-05T19:49:21","slug":"halo-online-eldewrito-0-6-dedicated-server-setup-guide","status":"publish","type":"post","link":"https:\/\/gravemind.sh\/blog\/?p=427","title":{"rendered":"Halo Online (Eldewrito 0.6) Dedicated Server Setup Guide"},"content":{"rendered":"<p>This will be a guide for those not using the <a href=\"https:\/\/github.com\/DomiStyle\/docker-eldewrito\">Docker container<\/a> provided by DomiStyle.<\/p>\n<p>In the guide we will be using Debian 9 Stretch and the latest wine-staging release (3.7 at the time of writing).<\/p>\n<p>&nbsp;<\/p>\n<p>Starting with installing wine-staging, let&#8217;s follow the instructions that <a href=\"https:\/\/wine-staging.com\/installation.html\">wine-staging.com<\/a> provides:<\/p>\n<p><!--more-->Wine consists of a 32-bit and optional 64-bit part. In order to install i386 packages on a 64-bit system, you have to run the following command as a first step:<\/p>\n<pre class=\"lang:default decode:true \">sudo dpkg --add-architecture i386<\/pre>\n<p>&nbsp;<\/p>\n<p>Afterwards import the key for our repository:<\/p>\n<pre class=\"lang:default decode:true\">wget -nc https:\/\/repos.wine-staging.com\/wine\/Release.key sudo apt-key add Release.key<\/pre>\n<p>&nbsp;<\/p>\n<p>And add our repository at the end of your file: <span class=\"lang:default decode:true crayon-inline \">\/etc\/apt\/sources.list<\/span><br \/>\nFor Debian Stretch:<\/p>\n<pre class=\"lang:default decode:true\">deb https:\/\/dl.winehq.org\/wine-builds\/debian\/ stretch main<\/pre>\n<p>&nbsp;<\/p>\n<p>Update and install dependencies:<\/p>\n<pre class=\"lang:sh decode:true \">sudo apt-get update\r\nsudo apt-get install winehq-staging cabextract xvfb<\/pre>\n<p>&nbsp;<\/p>\n<p>Download winetricks and use it to install winhttp:<\/p>\n<pre class=\"\">wget https:\/\/raw.githubusercontent.com\/Winetricks\/winetricks\/master\/src\/winetricks\r\nchmod +x winetricks\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Now we can begin to prepare the wine prefix that we will use for the dedicated server. We set the prefix path, use a 64 bit prefix, use wineboot to generate the bare prefix, winetricks to install winhttp, and use Xvfb start a fake X display so that we can install our C++ 2012 dependency headless. We&#8217;ll need the fake X display to run the server too.<\/p>\n<pre class=\"lang:sh decode:true \" title=\"Wine prefix setup\">export WINEPREFIX=\/home\/user\/Halo_Online1\/prefix\r\nexport WINEARCH=win64\r\nwineboot\r\n~\/winetricks winhttp vcrun2012\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>After that is complete we need to make an adjustment to our DLL overrides. Open <span class=\"lang:default decode:true crayon-inline \">prefix\/user.reg<\/span> with your text editor and add the following line under <span class=\"lang:default decode:true crayon-inline\">[Software\\\\Wine\\\\DllOverrides]<\/span><\/p>\n<pre class=\"lang:default decode:true\">\"rasapi32\"=\"native\"<\/pre>\n<p>&nbsp;<\/p>\n<p>We can now make a simple launch script for the server.<\/p>\n<pre class=\"lang:sh decode:true\" title=\"dedicated_server.sh\">#!\/bin\/bash\r\n\r\nXvfb :1 -screen 0 320x240x24 &amp;\r\nexport DISPLAY=:1\r\nexport WINEPREFIX=\/home\/user\/Halo_Online1\/prefix\r\nwineconsole \/home\/user\/Halo_Online1\/eldorado.exe -launcher -dedicated -minimize<\/pre>\n<p>&nbsp;<\/p>\n<p>I run several servers so what I did was make another script to handle launching the different server instances and then call it with cron at reboot time.<\/p>\n<pre class=\"lang:sh decode:true\" title=\"start_servers.sh\">#!\/bin\/bash\r\n\r\nscreen -dmS Halo_Online1 \/home\/user\/Halo_Online1\/dedicated_server.sh\r\nsleep 2\r\nscreen -dmS Halo_Online2 \/home\/user\/Halo_Online2\/dedicated_server.sh\r\nsleep 2\r\nscreen -dmS Halo_Online3 \/home\/user\/Halo_Online3\/dedicated_server.sh\r\nsleep 2\r\nscreen -dmS Halo_Online4 \/home\/user\/Halo_Online4\/dedicated_server.sh<\/pre>\n<p>&nbsp;<\/p>\n<p>Edit your crontab with <span class=\"lang:default decode:true crayon-inline \">crontab -e<\/span> and add:<\/p>\n<pre class=\"lang:sh decode:true\">@reboot \/home\/user\/Halo_Online_Shared\/start_servers.sh &gt;\/dev\/null 2&gt;&amp;1<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will be a guide for those not using the Docker container provided by DomiStyle. In the guide we will be using Debian 9 Stretch and the latest wine-staging release (3.7 at the time of writing). &nbsp; Starting with installing wine-staging, let&#8217;s follow the instructions that wine-staging.com provides:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-427","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=\/wp\/v2\/posts\/427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=427"}],"version-history":[{"count":3,"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=\/wp\/v2\/posts\/427\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=\/wp\/v2\/posts\/427\/revisions\/431"}],"wp:attachment":[{"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gravemind.sh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}