Thinclient Live / Test server switcher.

Discussion in 'General Archive' started by MegaNuker, May 25, 2015.

Dear forum reader,

if you’d like to actively participate on the forum by joining discussions or starting your own threads or topics, please log into the game first. If you do not have a game account, you will need to register for one. We look forward to your next visit! CLICK HERE
Thread Status:
Not open for further replies.
  1. MegaNuker

    MegaNuker Forum Ambassador

    This program was writen to ...
    1. Check where your game is installed.
    2. Ask you what server you wanted to connect to.
    3. Stop you form dowloanding all of the files if you switch from live to test servers.

    #######################
    #This is for the Thinclient only.. #
    #######################

    Code:
    @Echo off
     
    rem #####
    rem #Checks if the game is installed in the Program files or x86
    rem #####
     
    if EXIST "C:\Program Files\Drakensang Online\thinclient.exe" (
        set Drakensang="C:\Program Files\Drakensang Online\thinclient.exe"
        ) ELSE (
            if EXIST "C:\Program Files (x86)\Drakensang Online\thinclient.exe" (
             set Drakensang="C:\Program Files (x86)\Drakensang Online\thinclient.exe"
            ) ELSE (
     
                echo Drakensange is not installed correctly
                Pause
                Goto:oef
     
                )
        )
     
    rem #####
    rem #What server did you want to connect to
    rem #####
     
    :Question
    SET /P Answer=[T]est/[L]ive? T/L
    IF /i %Answer%==t Goto Test
    IF /i %Answer%==l Goto Live
    Echo Wrong Answer!!!!!
    Goto Question
     
    rem #####
    rem #Move the temp folder around if you played on the live server last time
    rem #####
     
    :Test
    if EXIST %temp%\DSOClient-Live (
    start "" %Drakensang% -stable
    ) Else (
    ren %temp%\DSOClient DSOClient-Live
    ren %temp%\DSOClient-test DSOClient
    start "" %Drakensang% -stable
    )
    Goto:eof
     
    rem #####
    rem #Move the temp folder around if you played on the test server last time
    rem #####
     
    :Live
    if EXIST %temp%\DSOClient-Live (
    ren %temp%\DSOClient DSOClient-test
    ren %temp%\DSOClient-Live DSOClient
    start "" %Drakensang%
    ) Else (
    start "" %Drakensang%
    )
    
     
    YouWinOrYouDie likes this.
  2. _Baragain_

    _Baragain_ Living Forum Legend

    Nice coding. Me, I'm lazy. I have the client set up to run the Test Server, and I just run the real deal on the web. It bugs me when there are errors and I can't refresh the page in the client like I can in browser.

    In other news, I couldn't sleep last night and was examining the .exe for plaintext... Did you know there are also flags for -bigfeature and -daily? Neither work. The daily build goes to a blank screen and bigfeature (PvP version of test server) just loads and loads and then tells you all connection attempts have failed. The plain text also revealed the url it points to, but opening them in a browser doesn't have any better luck.
     
Thread Status:
Not open for further replies.