[Windows] Batch scripts to run Spectre and Official Client

Discussion in 'Developer Support' started by SlashnHax, Feb 14, 2016.

  1. For both, change the javaPath variable to wherever your 32-bit JRE is installed.
    For Spectre, change the spectrePath variable to wherever the Spectre jar is (mine is in the same folder and named "spectre.jar").

    The Spectre jar gives you the option to add arguments.
    The Client jar gives you the choice of rs3(default), osrs, or dark.

    Windows
    Spectre (launch_spectre.bat):
    Code (Text):
    1. @ECHO OFF
    2. SET javaPath="%ProgramFiles(x86)%\Java\jdk1.8.0_74\bin\java.exe"
    3. SET spectrePath="spectre.jar"
    4. ECHO Using Java: %javaPath%
    5. ECHO Spectre path: %spectrePath%
    6. SET /p args=Enter Spectre arguments (-sdk etc.):
    7. %javaPath% -jar %spectrePath% %args%
    Client (launch_client.bat):
    Code (Text):
    1. @ECHO OFF
    2. SET javaPath="%ProgramFiles(x86)%\Java\jre1.8.0_74\bin\java.exe"
    3. SET officialClientPath="%HOMEDRIVE%\%HOMEPATH%\jagexcache\jagexlauncher\bin\jagexappletviewer.jar"
    4. ECHO Using Java: %javaPath%
    5. ECHO Using Client: %officialClientPath%
    6. SET config="http://www.runescape.com/l=en/jav_config.ws"
    7. IF “%~1”==”” SET /p modeInput=Enter game mode [rs3(default), osrs, dark]:
    8. ELSE SET modeInput=”%~1”
    9. IF "%modeInput%"=="osrs" SET config="http://oldschool.runescape.com/l=en/jav_config.ws"
    10. ELSE IF "%modeInput%"=="dark" SET config="http://www.runescape.com/jav_config_beta.ws"
    11. ELSE SET config="http://www.runescape.com/l=en/jav_config.ws"
    12. ECHO Using config: %config%
    13. %javaPath% -Dsun.java2d.nodraw=true -Dcom.jagex.config=%config% -jar %officialClientPath% runescape
    Linux
    Spectre (launch_spectre.sh):
    Code (Text):
    1. javaPath="java"
    2. spectrePath="spectre.jar"
    3. echo "Using Java: $javaPath"
    4. echo "Spectre path: $spectrePath"
    5. echo "Using args: $*"
    6. $javaPath -jar $spectrePath $*
    Client (launch_client.sh):
    Code (Text):
    1. javaPath="java"
    2. officialClientPath="$HOME/.config/runescape/bin/jagexappletviewer.jar"
    3. echo "Using Java: $javaPath"
    4. echo "Using Client: $officialClientPath"
    5. if [ "$#" = "0" ]
    6. then
    7. echo -n "Enter game mode [rs3(default), osrs, dark]:"
    8. read modeInput
    9. else
    10. modeInput="$1"
    11. fi
    12. if [ "$modeInput" = "osrs" ]
    13. then
    14. config="http://oldschool.runescape.com/l=en/jav_config.ws"
    15. elif [ "$modeInput" = "dark" ]
    16. then
    17. config="http://www.runescape.com/jav_config_beta.ws"
    18. else
    19. config="http://www.runescape.com/l=en/jav_config.ws"
    20. fi
    21. echo "Using config: $config"
    22. $javaPath -Dsun.java2d.nodraw=true -Dcom.jagex.config=$config -jar $officialClientPath runescape
     
    #1 SlashnHax, Feb 14, 2016
    Last edited: Feb 17, 2016

Share This Page

Loading...