batch compiling and you - or, a story of fail XD

Discussion in 'Mapping' started by flasche, Jan 12, 2009.

  1. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    after getting annoyed enough by that compile thing in hammer (F9) i finally decided to set up a batch compile ...

    i followed this tutorial tutorial

    it would be nice, but when vbsp.exe comes to the physics calculation thing it crashes ... im compiling with F9 atm and cant tab back to write the actual thing whre it crashes but ill edit that post later on.

    thats the code of the batch file
    Code:
    echo off
    
    cls
    echo =============================
    echo compile of %~n1
    echo =============================
    echo.
    
    cd C:\Spiele\Steam\steamapps\SourceMods\Empires\mapsrc\
    
    del %~n1.log
    
    SET toolpath=C:\Spiele\Steam\steamapps\flasche235\sourcesdk\bin\orangebox\bin\
    SET gamedir=C:\Spiele\Steam\steamapps\SourceMods\Empires\
    SET gamepath=C:\Spiele\Steam\steamapps\SourceMods\Empires\maps\
    
    title Compiling: %~n1 - BSP
    echo.
    echo BSP compile
    echo =====================================
    echo.
    
    %toolpath%vbsp.exe -game %gamedir% %1
    
    title Compiling: %~n1 - VIS
    echo.
    echo VIS compile
    echo =====================================
    echo.
    
    %toolpath%vvis.exe -fast -game %gamedir% %1
    
    title Compiling: %~n1 - RAD
    echo.
    echo RAD compile
    echo =====================================
    echo.
    %toolpath%vrad.exe -bounce 2 -noextra %1
    
    del %~n1.prt
    
    copy %~n1.bsp %gamepath%%~n1.bsp
    
    SET toolpath=
    SET gamepath=
    
    title Compile finished
    pause
    
    cd\
    
    many thanks in advance


    EDIT:
    oh sorry i maybe should have posted that to technical problems stuff ... if some mod would be so kind to move it? thx
     
    Last edited: Jan 12, 2009
  2. Solokiller

    Solokiller Member

    Messages:
    4,861
    Likes Received:
    7
    Trophy Points:
    0
  3. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    many thanks, i thought it doesnt work with 2.2 so i didnt even think about that ...

    its working fine and i can actually view compile progress now :D
     

Share This Page