cmd script toggle ISI tools between rF1 and rF2

Discussion in 'Track Modding' started by mianiak, Jan 10, 2012.

  1. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    does someone have the toggle link?...the link is dead in 1st post
     
  2. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    try click it a few times, my host is being weird lately, always takes me 3 goes to log into ftp.

    Failing that, just copy this, paste it into note pad and save as cmd.

    Code:
    @ECHO OFF
    REM rFactor to rFactor2 ISI 3ds Max tools toggle script by mianiak
    REM Check to see if the installed files exist
    echo Checking to see if all the correct files are in place
    echo .
    if exist 3dsmax.exe goto :next
    echo Cannot find 3dsmax.exe, you need to put this script into your 3dmax root directory
    pause
    goto :eof
    :next
    if exist hardwareshaders\CoreShaders.mas goto :next1
    echo Cannot find CoreShaders.mas, please make sure to install the ISI tools first.
    pause
    goto :eof
    :next1
    if exist plugins\Converter.dlu goto :next2
    echo Cannot find Converter.dlu,  please make sure to install the ISI tools first.
    pause
    goto :eof
    :next2
    if exist plugins\Material.dlt goto :next3
    echo Cannot find Material.dlt,  please make sure to install the ISI tools first.
    pause
    goto :eof
    :next3
    if exist plugins\Texture.dlt goto :next4
    echo Cannot find Texture.dlt,  please make sure to install the ISI tools first.
    pause
    goto :eof
    :next4
    REM Check to see if the files are setup properly for the toggle
    REM CoreShaders.mas
    if exist isitools\CoreShaders.mas.rf1 goto :next5
    echo Cannot fine CoreShaders.mas.rf1, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next5
    if exist isitools\CoreShaders.mas.rf2 goto :next6
    echo Cannot fine CoreShaders.mas.rf2, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next6
    REM Converter.dlu
    if exist isitools\Converter.dlu.rf1 goto :next7
    echo Cannot find Converter.dlu.rf1, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next7
    if exist isitools\Converter.dlu.rf2 goto :next8
    echo Cannot find Converter.dlu.rf2, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next8
    REM Material.dlt
    if exist isitools\Material.dlt.rf1 goto :next9
    echo Cannot find Material.dlt.rf1, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next9
    if exist isitools\Material.dlt.rf2 goto :next91
    echo Cannot find Material.dlt.rf2, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next91
    REM Texture.dlt
    if exist isitools\Texture.dlt.rf1 goto :next92
    echo Cannot find Texture.dlt.rf1, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next92
    if exist isitools\Texture.dlt.rf2 goto :next93
    echo Cannot find Texture.dlt.rf2, make sure you have set up the directory properly. Please read rf1torf2ISImaxtoolstoggleHELP.txt.
    pause
    goto :eof
    :next93
    echo All files present and accounted for sir!
    echo .
    REM Ask what version is required to be toggled on
    set /p rfver= Type 1 to toggle rf1 tools ON, Type 2 to togle rf2 tools ON and press Enter. 
    if %rfver% EQU 2 goto :rf2
    REM toggle rf2 tools to rf1
    del hardwareshaders\CoreShaders.mas
    del plugins\Converter.dlu
    del plugins\Material.dlt
    del plugins\Texture.dlt
    copy isitools\CoreShaders.mas.rf1 hardwareshaders\CoreShaders.mas
    copy isitools\Converter.dlu.rf1 plugins\Converter.dlu
    copy isitools\Material.dlt.rf1 plugins\Material.dlt
    copy isitools\Texture.dlt.rf1 plugins\Texture.dlt
    ECHO DONE! 3dmax is now ready to work with rFactor
    pause
    goto :eof
    :rf2
    REM toggle rf1 tools to rf2
    del hardwareshaders\CoreShaders.mas
    del plugins\Converter.dlu
    del plugins\Material.dlt
    del plugins\Texture.dlt
    copy isitools\CoreShaders.mas.rf2 hardwareshaders\CoreShaders.mas
    copy isitools\Converter.dlu.rf2 plugins\Converter.dlu
    copy isitools\Material.dlt.rf2 plugins\Material.dlt
    copy isitools\Texture.dlt.rf2 plugins\Texture.dlt
    ECHO DONE! 3dmax is now ready to work with rFactor2
    pause
    
     
  3. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    cheers mate :cool:
     

Share This Page