<?xml version="1.0"?>
<rss version="2.0"><channel><title>Articles: Computer</title><link>https://gamercide.com/articles/news/consoles/computer/?d=1</link><description>Articles: Computer</description><language>en</language><item><title>7 Days to Die Server Utility</title><link>https://gamercide.com/articles/news/consoles/computer/7-days-to-die-server-utility-r1046/</link><description><![CDATA[
<p>Installation Instructions:</p><p>Place 7dServerUtility.exe in the same directory as 7DaysToDie.exe and run once. It will create a default INI file that you will need to modify for your server. Once you have modified the ini, restart the script and enjoy.</p><p>If you want to use Putty to safely shutdown the server, then visit <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" rel="external nofollow">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a> and download puttytel.exe .</p><p>Place puttytel.exe in the same directory as 7dServerUtility.exe</p><p>Remote Restart Instructions:</p><p>Run 7dServerRemoteRestart.exe from anywhere. It will create a default INI file that you must modify. Modify the INI file and fill in the server IP and Restart Port. Optionally you can fill in the password field and it will save it so you don't have to type it each time.</p><p>7dServerUtility.au3</p><p></p><div></div><pre class="ipsCode">#include #include &lt;Date.au3&gt;#include &lt;Process.au3&gt;;User VariablesIf FileExists("7dServerUtility.ini") Then   Local $GamePort = IniRead("7dServerUtility.ini", "GameServerPort", "GamePort", "25000")   Local $ConfigFile = IniRead("7dServerUtility.ini", "GameConfigFile", "ConfigFile", "serverconfig.xml")   Local $UseRemoteRestart = IniRead("7dServerUtility.ini", "Use_Remote_Restart?yes/no", "UseRemoteRestart", "no")   Local $g_IP = IniRead("7dServerUtility.ini", "IP_To_Listen_On", "ListenIP", "127.0.0.1")   Local $g_Port = IniRead("7dServerUtility.ini", "Port_To_Listen_On", "ListenPort", "57539")   Local $RestartCode = IniRead("7dServerUtility.ini", "Remote_Restart_Password", "RestartCode", "FVtb2DXgp8SYwj7J")   Local $RestartDaily= IniRead("7dServerUtility.ini", "Restart_Daily?yes/no", "RestartDaily", "no")   Local $HotHour = IniRead("7dServerUtility.ini", "Restart_Time_Hour?00-23", "HotHour", "00")   Local $HotMin = IniRead("7dServerUtility.ini", "Restart_Time_Minute?00-59", "HotMin", "01")   Local $ExMem = IniRead("7dServerUtility.ini", "Excessive_Memory_Amount", "ExMem", "2000000000")   Local $ExMemRestart = IniRead("7dServerUtility.ini", "Restart_On_Excessive_Mem_Use?yes/no", "ExMemRestart", "no")Else   IniWrite("7dServerUtility.ini", "GameServerPort", "GamePort", "25000")   IniWrite("7dServerUtility.ini", "GameConfigFile", "ConfigFile", "serverconfig.xml")   IniWrite("7dServerUtility.ini", "Use_Remote_Restart?yes/no", "UseRemoteRestart", "no")   IniWrite("7dServerUtility.ini", "IP_To_Listen_On", "ListenIP", "127.0.0.1")   IniWrite("7dServerUtility.ini", "Port_To_Listen_On", "ListenPort", "57539")   IniWrite("7dServerUtility.ini", "Remote_Restart_Password", "RestartCode", "FVtb2DXgp8SYwj7J")   IniWrite("7dServerUtility.ini", "Restart_Daily?yes/no", "RestartDaily", "no")   IniWrite("7dServerUtility.ini", "Restart_Time_Hour?00-23", "HotHour", "00")   IniWrite("7dServerUtility.ini", "Restart_Time_Minute?00-59", "HotMin", "01")   IniWrite("7dServerUtility.ini", "Excessive_Memory_Amount", "ExMem", "2000000000")   IniWrite("7dServerUtility.ini", "Restart_On_Excessive_Mem_Use?yes/no", "ExMemRestart", "no")   MsgBox(4096, "Default INI File Made", "Please Modify Default Values and Restart Script")   ExitEndIfOnAutoItExitRegister("CloseServer")Func CloseServer()   If FileExists(@ScriptDir &amp; "\puttytel.exe") Then	  $PuttyPort = $GamePort+3	  Run(@ScriptDir &amp; "\puttytel.exe -P "&amp; $PuttyPort &amp; " "&amp; $g_IP)	  WinWait($g_IP &amp;" - PuTTYtel","")	  Local $CrashCheck = WinWait("PuTTYtel Fatal Error","",5)	  If $CrashCheck = 0 Then		 ControlSend($g_IP &amp;" - PuTTYtel", "", "", "{enter}")		 ControlSend($g_IP &amp;" - PuTTYtel", "", "", "shutdown{enter}")		 WinWait("PuTTYtel Fatal Error","",10)		 Local $PID = ProcessExists("puttytel.exe")		 If $PID Then			ProcessClose($PID)		 EndIf	  Else 		 Local $PID = ProcessExists("puttytel.exe")		 Local $PID2 = ProcessExists("7DaysToDie.exe")			If $PID Then			   ProcessClose($PID)			EndIf			If $PID2 Then			   ProcessClose($PID2)			EndIf	  EndIf   Else      Local $PID = ProcessExists("7DaysToDie.exe")	  If $PID Then		 ProcessClose($PID)	  EndIf   EndIfEndFuncFunc _TCP_Server_ClientIP($hSocket)   Local $pSocketAddress, $aReturn   $pSocketAddress = DllStructCreate("short;ushort;uint;char[8]")   $aReturn = DllCall("ws2_32.dll", "int", "getpeername", "int", $hSocket, "ptr", DllStructGetPtr($pSocketAddress), "int*", DllStructGetSize($pSocketAddress))   If @error Or $aReturn[0] &lt;&gt; 0 Then Return $hSocket	  $aReturn = DllCall("ws2_32.dll", "str", "inet_ntoa", "int", DllStructGetData($pSocketAddress, 3))   If @error Then Return $hSocket	  $pSocketAddress = 0   Return $aReturn[0] EndFunc ;==&gt;_TCP_Server_ClientIPIf $UseRemoteRestart = "yes" Then; Start The TCP ServicesTCPStartup()Local $MainSocket = TCPListen($g_IP, $g_Port, 100)If $MainSocket = -1 Then ExitEndIfwhile True	if WinExists("Oops!") Then		ControlSend("Oops!", "", "", "{enter}")		Sleep (10000)	EndIfIf $UseRemoteRestart = "yes" ThenLocal $ConnectedSocket = TCPAccept($MainSocket)If $ConnectedSocket &gt;= 0 Then;TrayTip("Connected","Someone connected to server.",3)$Count = 0While $Count &lt; 30$RECV = TCPRecv($ConnectedSocket,512)   If $RECV = $RestartCode Then   Local $PID = ProcessExists("7DaysToDie.exe") ; Will return the PID or 0 if the process isn't found.   	  If $PID Then		 $IP = _TCP_Server_ClientIP($ConnectedSocket)		 Local $MEM = ProcessGetStats($PID, 0)		 FileWriteLine(@ScriptDir &amp; "\7dServerUtility_RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _		 " --Peak Memory:"&amp; $MEM[1] &amp;" Restart Requested by Remote Host: "&amp; $IP)		 ;ProcessClose($PID)		 CloseServer()		 Sleep (10000)		 ExitLoop	  EndIf   EndIf$Count += 1Sleep (1000)WEndIf $ConnectedSocket &lt;&gt; -1 Then TCPCloseSocket($ConnectedSocket)EndIfEndIfLocal $PID = ProcessExists("7DaysToDie.exe")If $PID = 0 Then   Run(@ScriptDir &amp; "\7DaysToDie.exe -quit -batchmode -nographics -configfile="&amp; $ConfigFile &amp;" -dedicated")   Sleep (70000)Else    Local $MEM = ProcessGetStats($PID, 0)   If $MEM[0] &gt; $ExMem And $ExMemRestart = "no" Then	  FileWriteLine(@ScriptDir &amp; "\7dServerUtility_ExcessiveMemoryLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _        " --Peak Memory:"&amp; $MEM[1])	  Sleep (10000)   ElseIf $MEM[0] &gt; $ExMem And $ExMemRestart = "yes" Then	  FileWriteLine(@ScriptDir &amp; "\7dServerUtility_RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _	  " --Peak Memory:"&amp; $MEM[1] &amp;" Excessive Memory Use - Restart Requested by 7dServerUtility Script")	  ;ProcessClose($PID)	  CloseServer()	  Sleep (10000)   EndIfEndIf       If @HOUR = $HotHour And @MIN = $HotMin And $RestartDaily = "yes" Then    Local $PID = ProcessExists("7DaysToDie.exe")	  If $PID Then		 Local $MEM = ProcessGetStats($PID, 0)		 FileWriteLine(@ScriptDir &amp; "\7dServerUtility_RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _		 " --Peak Memory:"&amp; $MEM[1] &amp;" Daily Restart Requested by 7dServerUtility Script")		 ;ProcessClose($PID)		 CloseServer()	  EndIf   Sleep (10000)    EndIfSleep (500)WEnd  </pre><p>7dServerRemoteRestart.au3</p><p></p><div></div><pre class="ipsCode">; Start The TCP Services    ;==============================================    TCPStartup()   ; Set Some reusable info   ;--------------------------   Local $ConnectedSocket, $szDataIf FileExists("7dServerRemoteRestart.ini") Then   Local $szIPADDRESS = IniRead("7dServerRemoteRestart.ini", "GameServerIP", "szIPADDRESS", "127.0.0.1")   Local $nPORT = IniRead("7dServerRemoteRestart.ini", "RestartServerPort", "nPORT", "57539")   Local $RPassword = IniRead("7dServerRemoteRestart.ini", "DefaultRestartPassword", "RPassword", "")Else   IniWrite("7dServerRemoteRestart.ini", "GameServerIP", "szIPADDRESS", "127.0.0.1")   IniWrite("7dServerRemoteRestart.ini", "RestartServerPort", "nPORT", "57539")   IniWrite("7dServerRemoteRestart.ini", "DefaultRestartPassword", "RPassword", "")   MsgBox(4096, "Default INI File Made", "Please Modify Default Values and Restart Script")   ExitEndIf    ; Initialize a variable to represent a connection    ;==============================================    $ConnectedSocket = -1    ;Attempt to connect to SERVER at its IP and PORT 57539    ;=======================================================    $ConnectedSocket = TCPConnect($szIPADDRESS, $nPORT)    ; If there is an error... show it    If @error Then	    MsgBox(4112, "Error", "TCPConnect failed with WSA error: " &amp; @error)	    ; If there is no error loop an inputbox for data	    ;   to send to the SERVER.    Else	    ;Loop forever asking for data to send to the SERVER	    While 1		    ; InputBox for data to transmit		    $szData = InputBox("Reset The 7 Days to Die Server", @LF &amp; @LF &amp; "Enter the code to Reset The 7 Days to Die Server:",$RPassword)		    ; If they cancel the InputBox or leave it blank we exit our forever loop		    If @error Or $szData = "" Then ExitLoop		    ; We should have data in $szData... lets attempt to send it through our connected socket.		    ; convert AutoIt native UTF-16 to UTF-8		    TCPSend($ConnectedSocket, StringToBinary($szData, 4))            ExitLoop		    ; If the send failed with @error then the socket has disconnected		    ;----------------------------------------------------------------		    If @error Then ExitLoop	    WEnd     EndIfIf $ConnectedSocket &lt;&gt; -1 Then TCPCloseSocket($ConnectedSocket)TCPShutdown()</pre><p></p>
]]></description><guid isPermaLink="false">1046</guid><pubDate>Fri, 23 Aug 2013 19:44:00 +0000</pubDate></item><item><title>Cube World Server Utility</title><link>https://gamercide.com/articles/news/consoles/computer/cube-world-server-utility-r1034/</link><description><![CDATA[
<p>Batch File and AutoIT Script designed to work together. The AutoIT Script is not required, but they work better together.  There is a stand alone AutoIT Script below that doesn't require the Batch file.  Finally, I have included a AutoIT Script to remotely restart the server when used with one of the Server Scripts.</p><p>The remote restart will require you edit the source of the AutoIT scripts if you wish to change the listening IP, port, and password required for restart. They should work together by default, but you will need to open port 54321 on the Server.</p><div></div><pre class="ipsCode">::V1.1-Added Task Kill of AutoIT Script to be used along side batch----------::::V1.0-Initial Version Created. Simple Loop Script for Server Crashes--------::::-----Also added ability to log server to file------------------------------::</pre><p></p><p>Batch File:</p><div></div><pre class="ipsCode">@ECHO OFFtitle Cube Server Loop Utility::By Dateranoth - July 7, 2013::Used by http://www.gamercide.org on their server.::Feel free to change, adapt, and distribute::Download batch file here-::http://www.dateranoth.com/gamercide/CWServerUtility.zip::V1.1-Added Task Kill of AutoIT Script to be used along side batch----------::::V1.0-Initial Version Created. Simple Loop Script for Server Crashes--------::::-----Also added ability to log server to file------------------------------::::-----------------------------------------------------------------------------------::::--------------------User Variables--------------------------------- ----------------::::-----------------------------------------------------------------------------------::::Set Server.exe Directory (Be sure to include Trailing Slash)SET ServerPath=C:\Games\Cube World\::Set Time between server Failed or Stopped and Server Restarted (in seconds)SET Timer=10::-----------------------------------------------------------------------------------::::----------------Logging Options - Enable Logging Here------------------------------::::-----------------------------------------------------------------------------------::::If Logging is enabled, the Console will not output current server status. ::All status will be written to file. You can check current status through the log file.::Log Server to file containing todays date. (yes or no)set EnableLog=no::LogPath is the path to the folder where the log file will be saved (Be sure to include Trailing Slash)set LogPath=C:\Games\Cube World\Logs\::LogFileExt is the extension to be used set LogFileExt=.log::LogFile is a descriptive name that will be added after the dateset LogFile=CubeWorldServerLog::Include Time In Log File Name? (yes or no)::Including time will create a log file on each Server.exe start.  Not including time will create Daily Log files.set IncludeTime=no::Set the format you would like the date to appear on log files. Default is year(%%g)-month(%%e)-day(%%f). Your windows time format may differ.:: If it does or you would like something different then rearrange the parameters below until satisfied. Results will be format1-format2-format3set dateformat1=%%gset dateformat2=%%eset dateformat3=%%f::------------------------------------------------------------------------------------------------------------------------------::::!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!No Setting Changes Below Here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!::::------------------------------------------------------------------------------------------------------------------------------:::Start::start /wait /min /d "%ServerPath%" Server.exeIF /i %EnableLog%==yes (goto LoggingStart) ELSE (goto NoLogStart):NoLogStartECHO.ECHO Starting Server Loop.ECHO.cd /d "%ServerPath%""%ServerPath%"Server.exegoto RemainingLoop:LoggingStartsetlocalset LogFileName=%LogFile%%LogFileExt%for /f "tokens=1-5 delims=/\ " %%d in ("%date%") do SET Date1=%dateformat1%-%dateformat2%-%dateformat3%for /f "tokens=1-5 delims=: " %%d in ("%time%") do SET Time1=%%d%%eIF /i %IncludeTime%==yes (set MyLogFile=%Date1%--%Time1%) ELSE (set MyLogFile=%Date1%)set MyLogFile=%LogPath%%MyLogFile%_%LogFileName%If NOT Exist "%LogPath%" (goto makelogdirectory) ELSE (goto checknewlog):makelogdirectorymd "%LogPath%"goto checknewlog::Note that the quotes are REQUIRED around %MyLogFIle% in case it contains a space:checknewlogIf NOT Exist "%MyLogFile%" (goto noseparator)Echo.&gt;&gt;"%MyLogFile%"Echo.===================&gt;&gt;"%MyLogFile%":noseparatorecho.%Date% &gt;&gt;"%MyLogFile%"echo.%Time% &gt;&gt;"%MyLogFile%":startbatchECHO.ECHO Starting Server Loop and Logging.ECHO.ECHO.ECHO Server will not display to Console while logging to file is enabled.ECHO.ECHO To check server status, open:ECHO %MyLogFile%ECHO.ECHO Type q to quit.ECHO.cd /d "%ServerPath%""%ServerPath%"Server.exe &gt;&gt; "%MyLogFile%"goto RemainingLoop::Checks if timer has counted down to 0. If so restarts backup:RemainingLoopsetlocal enableDelayedExpansionfor /l %%N in (%Timer% -1 1) do (  set /a "min=%%N/60, sec=%%N%%60, n-=1"  if !sec! lss 10 set sec=0!sec!  cls  choice /c:CR1 /n /m "Server Restart in !min!:!sec! - Press R to Restart Server Now, or C to Cancel. " /t:1 /d:1  if not errorlevel 3 goto :CheckAnswer):CheckAnswerif errorlevel 2 (goto Start) else (goto End)::Shut Down The Batch File.:Endchoice /c:YN /m "Do you really want to quit"If Errorlevel 2 goto StartIf Errorlevel 1 goto Shutdown:Shutdowntaskkill /f /im "CWServerUtility.exe"Exit::Here in case of any major errors.:CatchAllEndpauseExit</pre><p></p><p>Autoit Script (Use with Batch):</p><p> </p><div></div><pre class="ipsCode">#include &lt;Date.au3&gt;#include &lt;Process.au3&gt;;User VariablesLocal $g_IP = "127.0.0.1" ;IP Restart Command Should Listen OnLocal $g_Port = "54321" ;Port Restart Command Should Listen OnLocal $RestartCode = "Restart" ;Code to Reset Server;End User VariablesLocal $HotMin = "01"If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer$sInputBoxAnswer = InputBox("Cube World Auto Restart and Daily Restart","What hour of the day do you want to Restart?" &amp; @CRLF &amp; @CRLF &amp; "Note:  Please use a number value between 00 and 23" &amp; @CRLF &amp; "           00 means midnight, 14 would be 2pm, etc." &amp; @CRLF,"10", " M2","400","180","350","350","60")SelectCase @Error = 0 ;OK - The string returned is valid   Local $HotHour = $sInputBoxAnswerCase @Error = 1 ;The Cancel button was pushed   Exit     ; finishedCase @Error = 2 ;Timeout Reached   Local $HotHour = "10"Case @Error = 3 ;The InputBox failed to open   Exit     ; finishedEndSelectFunc _TCP_Server_ClientIP($hSocket)   Local $pSocketAddress, $aReturn   $pSocketAddress = DllStructCreate("short;ushort;uint;char[8]")   $aReturn = DllCall("ws2_32.dll", "int", "getpeername", "int", $hSocket, "ptr", DllStructGetPtr($pSocketAddress), "int*", DllStructGetSize($pSocketAddress))   If @error Or $aReturn[0] &lt;&gt; 0 Then Return $hSocket	  $aReturn = DllCall("ws2_32.dll", "str", "inet_ntoa", "int", DllStructGetData($pSocketAddress, 3))   If @error Then Return $hSocket	  $pSocketAddress = 0   Return $aReturn[0] EndFunc ;==&gt;_TCP_Server_ClientIP; Start The TCP ServicesTCPStartup()Local $MainSocket = TCPListen($g_IP, $g_Port, 100)If $MainSocket = -1 Then Exitwhile True	if WinExists("Server.exe") Then		ControlSend("Server.exe", "", "", "{enter}")		Sleep (10000)	EndIfIf Not WinExists("Cube Server Loop Utility") Then   ;Run(@ScriptDir &amp; "\Server.exe")   Run(@ComSpec &amp; " /c " &amp; 'CWServerUtility.bat', @ScriptDir)   Sleep (10000)EndIFLocal $ConnectedSocket = TCPAccept($MainSocket)If $ConnectedSocket &gt;= 0 Then;TrayTip("Connected","Someone connected to server.",3)$Count = 0While $Count &lt; 30$RECV = TCPRecv($ConnectedSocket,512)   If $RECV = $RestartCode Then   Local $PID = ProcessExists("Server.exe") ; Will return the PID or 0 if the process isn't found.   	  If $PID Then		 $IP = _TCP_Server_ClientIP($ConnectedSocket)		 Local $MEM = ProcessGetStats($PID, 0)		 FileWriteLine(@ScriptDir &amp; "\RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _		 " --Peak Memory:"&amp; $MEM[1] &amp;" Restart Requested by Remote Host: "&amp; $IP)		 ProcessClose($PID)		 Sleep (10000)		 ExitLoop	  EndIf   EndIf$Count += 1Sleep (1000)WEndIf $ConnectedSocket &lt;&gt; -1 Then TCPCloseSocket($ConnectedSocket)EndIf	 Local $PID = ProcessExists("Server.exe")  If $PID Then   Local $MEM = ProcessGetStats($PID, 0)   If $MEM[0] &gt; 600000000 Then	  FileWriteLine(@ScriptDir &amp; "\ExcessiveMemoryLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _        " --Peak Memory:"&amp; $MEM[1])	  Sleep (10000)   ;ElseIf $MEM[0] &gt; 700000000 Then	  ;ProcessClose($PID)	  ;ControlSend("Cube Server Loop Utility", "", "", "q {enter}")	  ;Sleep (10000)   EndIfEndIf       If @HOUR = $HotHour And @MIN = $HotMin Then    Local $PID = ProcessExists("Server.exe")	  If $PID Then		 Local $MEM = ProcessGetStats($PID, 0)		 FileWriteLine(@ScriptDir &amp; "\RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _		 " --Peak Memory:"&amp; $MEM[1] &amp;" Restart Requested by CWServerUtility Script")	     ;ControlSend("Cube Server Loop Utility", "", "", "q {enter}")		 ProcessClose($PID)	  EndIf   Sleep (70000)    EndIfSleep (500)WEnd  </pre><p></p><p><a href="http://www.dateranoth.com/gamercide/CWServerUtilityStandAlone.zip" rel="external nofollow">AutoIT Script (Stand Alone . No Batch File Required)</a></p><div></div><pre class="ipsCode">#include &lt;Date.au3&gt;#include &lt;Process.au3&gt;;User VariablesLocal $g_IP = "127.0.0.1" ;IP Restart Command Should Listen OnLocal $g_Port = "54321" ;Port Restart Command Should Listen OnLocal $RestartCode = "Restart" ;Code to Reset Server;End User VariablesLocal $HotMin = "01"If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer$sInputBoxAnswer = InputBox("Cube World Auto Restart and Daily Restart","What hour of the day do you want to Restart?" &amp; @CRLF &amp; @CRLF &amp; "Note:  Please use a number value between 00 and 23" &amp; @CRLF &amp; "           00 means midnight, 14 would be 2pm, etc." &amp; @CRLF,"10", " M2","400","180","350","350","60")SelectCase @Error = 0 ;OK - The string returned is valid   Local $HotHour = $sInputBoxAnswerCase @Error = 1 ;The Cancel button was pushed   Exit     ; finishedCase @Error = 2 ;Timeout Reached   Local $HotHour = "10"Case @Error = 3 ;The InputBox failed to open   Exit     ; finishedEndSelectFunc _TCP_Server_ClientIP($hSocket)   Local $pSocketAddress, $aReturn   $pSocketAddress = DllStructCreate("short;ushort;uint;char[8]")   $aReturn = DllCall("ws2_32.dll", "int", "getpeername", "int", $hSocket, "ptr", DllStructGetPtr($pSocketAddress), "int*", DllStructGetSize($pSocketAddress))   If @error Or $aReturn[0] &lt;&gt; 0 Then Return $hSocket	  $aReturn = DllCall("ws2_32.dll", "str", "inet_ntoa", "int", DllStructGetData($pSocketAddress, 3))   If @error Then Return $hSocket	  $pSocketAddress = 0   Return $aReturn[0] EndFunc ;==&gt;_TCP_Server_ClientIP; Start The TCP ServicesTCPStartup()Local $MainSocket = TCPListen($g_IP, $g_Port, 100)If $MainSocket = -1 Then Exitwhile True	if WinExists("Server.exe") Then		ControlSend("Server.exe", "", "", "{enter}")		Sleep (10000)	EndIfLocal $ConnectedSocket = TCPAccept($MainSocket)If $ConnectedSocket &gt;= 0 Then;TrayTip("Connected","Someone connected to server.",3)$Count = 0While $Count &lt; 30$RECV = TCPRecv($ConnectedSocket,512)   If $RECV = $RestartCode Then   Local $PID = ProcessExists("Server.exe") ; Will return the PID or 0 if the process isn't found.   	  If $PID Then		 $IP = _TCP_Server_ClientIP($ConnectedSocket)		 Local $MEM = ProcessGetStats($PID, 0)		 FileWriteLine(@ScriptDir &amp; "\RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _		 " --Peak Memory:"&amp; $MEM[1] &amp;" Restart Requested by Remote Host: "&amp; $IP)		 ProcessClose($PID)		 Sleep (10000)		 ExitLoop	  EndIf   EndIf$Count += 1Sleep (1000)WEndIf $ConnectedSocket &lt;&gt; -1 Then TCPCloseSocket($ConnectedSocket)EndIfLocal $PID = ProcessExists("Server.exe")If $PID = 0 Then   Run(@ComSpec &amp; " /c " &amp; 'Server.exe', @ScriptDir)   Sleep (70000)Else    Local $MEM = ProcessGetStats($PID, 0)   If $MEM[0] &gt; 600000000 Then	  FileWriteLine(@ScriptDir &amp; "\ExcessiveMemoryLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _        " --Peak Memory:"&amp; $MEM[1])	  Sleep (10000)   ;ElseIf $MEM[0] &gt; 700000000 Then	  ;ProcessClose($PID)	  ;Sleep (10000)   EndIfEndIf       If @HOUR = $HotHour And @MIN = $HotMin Then    Local $PID = ProcessExists("Server.exe")	  If $PID Then		 Local $MEM = ProcessGetStats($PID, 0)		 FileWriteLine(@ScriptDir &amp; "\RestartLog.txt", @MON &amp;"-"&amp; @MDAY &amp;"-"&amp; @YEAR &amp;" "&amp; @HOUR &amp;":"&amp; @MIN &amp;" --Work Memory:"&amp; $MEM[0] &amp; _		 " --Peak Memory:"&amp; $MEM[1] &amp;" Restart Requested by CWServerUtility Script")		 ProcessClose($PID)	  EndIf   Sleep (10000)    EndIfSleep (500)WEnd </pre><p></p><p><a href="http://www.dateranoth.com/gamercide/CWServerRemoteRestart.zip" rel="external nofollow">Remote Server Restart AutoIT Script (Not required for either utility)</a></p><div></div><pre class="ipsCode">    ; Start The TCP Services    ;==============================================    TCPStartup()   ; Set Some reusable info   ;--------------------------   Local $ConnectedSocket, $szData   ; Set $szIPADDRESS to wherever the SERVER is. We will change a PC name into an IP Address   ;   Local $szServerPC = @ComputerName   ;Local $szIPADDRESS = "127.0.0.1" ;@IPAddress1   ;Local $szIPADDRESS = TCPNameToIP("gamercide.org")   Local $nPORT = 54321 ;Change If you change Server PortIf Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer$sInputBoxAnswer = InputBox("Cube World Remote Restart","What is the IP of the Server you wish to Restart?" &amp; @CRLF &amp; @CRLF &amp; "Note:  Please use IPv4 Only!" &amp; @CRLF &amp; "    Example: 127.0.0.1" &amp; @CRLF,"127.0.0.1", " ","400","180","350","350","60")SelectCase @Error = 0 ;OK - The string returned is valid   Local $szIPADDRESS = $sInputBoxAnswerCase @Error = 1 ;The Cancel button was pushed   Exit     ; finishedCase @Error = 2 ;Timeout Reached   Local $szIPADDRESS = "127.0.0.1"Case @Error = 3 ;The InputBox failed to open   Exit     ; finishedEndSelect    ; Initialize a variable to represent a connection    ;==============================================    $ConnectedSocket = -1    ;Attempt to connect to SERVER at its IP and PORT 54321    ;=======================================================    $ConnectedSocket = TCPConnect($szIPADDRESS, $nPORT)    ; If there is an error... show it    If @error Then        MsgBox(4112, "Error", "TCPConnect failed with WSA error: " &amp; @error)        ; If there is no error loop an inputbox for data        ;   to send to the SERVER.    Else        ;Loop forever asking for data to send to the SERVER        While 1            ; InputBox for data to transmit            $szData = InputBox("Reset The CW Server", @LF &amp; @LF &amp; "Enter the code to Reset The CW Server:")            ; If they cancel the InputBox or leave it blank we exit our forever loop            If @error Or $szData = "" Then ExitLoop            ; We should have data in $szData... lets attempt to send it through our connected socket.            ; convert AutoIt native UTF-16 to UTF-8            TCPSend($ConnectedSocket, StringToBinary($szData, 4))			ExitLoop            ; If the send failed with @error then the socket has disconnected            ;----------------------------------------------------------------            If @error Then ExitLoop        WEnd	 EndIfIf $ConnectedSocket &lt;&gt; -1 Then TCPCloseSocket($ConnectedSocket)TCPShutdown()</pre><p></p>
]]></description><guid isPermaLink="false">1034</guid><pubDate>Sun, 07 Jul 2013 17:50:00 +0000</pubDate></item><item><title>Tomb Raider PC: nVidia working to resolve</title><link>https://gamercide.com/articles/news/consoles/computer/tomb-raider-pc-nvidia-working-to-resolve-r1010/</link><description><![CDATA[
<p><em>Graphics card maker nVidia has issued an apology to GeForce GPU users who have encountered "major performance and stability issues" with Tomb Raider in maximum settings. </em></p><p><em>Tomb Raider (2013) Screenshot nVidia's Andrew Burnes placed the blame on Crystal Dynamics failing to provide a final build of the game with enough lead time ahead of its release, which introduced new issues that were not present in previously-provided builds. </em></p><p><em>"We are aware of major performance and stability issues with GeForce GPUs running Tomb Raider with maximum settings," said Burnes.</em></p><p>Read on</p><p>Source/Credit [<a href="http://www.computerandvideogames.com/394749/tomb-raider-pc-nvidia-working-to-resolve-major-issues/" rel="external nofollow">CVG</a>]</p>
]]></description><guid isPermaLink="false">1010</guid><pubDate>Wed, 06 Mar 2013 22:24:00 +0000</pubDate></item><item><title>The Showdown Effect</title><link>https://gamercide.com/articles/news/consoles/computer/the-showdown-effect-r1008/</link><description><![CDATA[
<p>
</p><div class="ipsEmbeddedVideo " contenteditable="false"><div><iframe width="480" height="270" src="https://www.youtube.com/embed/eNg-oVmn--w?feature=oembed" frameborder="0" allowfullscreen="true" loading="lazy"></iframe></div></div><p>Released today.</p><p><a href="http://store.steampowered.com/app/204080/?snr=1_7_15__13" rel="external nofollow">Buy on Steam</a></p>
]]></description><guid isPermaLink="false">1008</guid><pubDate>Tue, 05 Mar 2013 18:52:00 +0000</pubDate></item></channel></rss>
