Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2013 17:17

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 20, 2013.
    35 changes: 35 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    @echo off
    echo Configuring MESA environment variables for Dota 2.
    echo Credits http://puppet-master.net by Nicolas.Kirsch

    call "..\..\config\mesa_check_env.bat"

    SET SOURCE_BIN_PATH=%STEAMDIR%\steamapps\common\dota 2 beta\bin
    SET GAME_PROJECT=%STEAMDIR%\steamapps\common\Dota 2 beta\dota2
    SET GAME_PROJECT_SRC=%MESADIR%\projects\Dota_2
    SET GAME_PROJECT_NAME="Dota 2"
    SET VPROJECT=%STEAMDIR%\steamapps\common\Dota 2 beta\dota2

    echo "Set Bin directory path, where Studiomdl.exe and "vtex.exe" are located."
    echo ...
    SETX SOURCE_BIN_PATH "%SOURCE_BIN_PATH%"
    echo SOURCE_BIN_PATH=%SOURCE_BIN_PATH%

    echo Set the Game Project Directory, it must be the same path than VPROJECT.
    SETX GAME_PROJECT "%GAME_PROJECT%"
    echo GAME_PROJECT=%GAME_PROJECT%

    echo Maya Project Workspace directory.
    echo ...
    SETX GAME_PROJECT_SRC %GAME_PROJECT_SRC%
    echo GAME_PROJECT_SRC=%GAME_PROJECT_SRC%

    echo Set the name of your Game project here
    echo ...
    SETX GAME_PROJECT_NAME %GAME_PROJECT_NAME%
    echo GAME_PROJECT_NAME=%GAME_PROJECT_NAME%

    echo Set the VPROJECT Directory, it must be the same path than GAME_PROJECT.
    echo ...
    SETX VPROJECT "%VPROJECT%"
    echo VPROJECT=%VPROJECT%