Warbirds 3 free server configurations

Discussion in 'Warbirds Czech & Slovak' started by alemao, Jan 7, 2008.

  1. alemao

    alemao Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    45
    Location:
    Brazil
    This is the script to change Windows HOSTS file to play Warbids 3 in TabaHost new server.

    It just update HOSTS file with a redirection IP. Save the script with some cute name, as "warbirds-patch.cmd", and run it once in Windows environment.

    P.S.: Don't use FreeHost Launcher. Just open the game and chose Play Online

    ---cut here----------------------------
    @ECHO OFF
    REM *************************************************
    REM Configure HOSTS file to run TahaHost Warbirds III
    REM José Antonio Meira da Rocha 2008-01-07
    REM TabaHost Team
    REM *************************************************

    ECHO.
    ECHO *********************************************
    ECHO Making a Warbirds III redirect in HOSTS file.
    ECHO Do you want make this change?
    ECHO The iEN game host will be unreachable.
    ECHO Press CTRL+C to abort the operation
    ECHO or any key to go ahead
    ECHO *********************************************
    PAUSE
    ECHO.

    SET HOSTPATH=%SystemRoot%\system32\drivers\etc\
    SET LINE=62.75.138.245 arnalist.warbirdsiii.com
    SET COMMENT=# TABAHOST WARBIRDS III redirect

    REM Clear old Warbirds line
    FIND /V /I "arnalist.warbirdsiii.com" < %HOSTPATH%HOSTS > %HOSTPATH%HOSTS-TMP

    REM Clear old warbirds comment
    FIND /V /I "# TABAHOST WARBIRDS III redirect" < %HOSTPATH%HOSTS-TMP > %HOSTPATH%HOSTS-TMP2

    REM Write redirection
    ECHO %COMMENT% >> %HOSTPATH%HOSTS-TMP2
    ECHO %LINE% >> %HOSTPATH%HOSTS-TMP2

    REM Make backup and clean the house
    MOVE %HOSTPATH%HOSTS %HOSTPATH%HOSTS-OLD
    MOVE %HOSTPATH%HOSTS-TMP2 %HOSTPATH%HOSTS
    DEL %HOSTPATH%HOSTS-TMP

    ECHO *****************************************
    ECHO Your Warbirds III game is redirected.
    ECHO We have inserted the lines:
    ECHO.
    ECHO %COMMENT%
    ECHO %LINE%
    ECHO.
    ECHO in the HOSTS file.
    ECHO.
    ECHO The new HOSTS are:
    ECHO.
    ECHO %HOSTPATH%HOSTS
    ECHO.
    ECHO The backup HOSTS are:
    ECHO.
    ECHO %HOSTPATH%HOSTS-OLD
    ECHO *****************************************
    ECHO.
    pause
    ---cut here----------------------------