Batchfile Compiling
Post Reply
Quote
Re: Batchfile Compiling
Posted by ding on Wed Apr 13th at 6:26pm 2005


Hi people.

Since I was tired of annoying Mephs with my problems of slow compiling on IRC, I tryed to write a batch file so that I can close hammer during compiles. So I searched the internet for some tutorials. The result was very impressive after some modifications on the batch file. Well it is workig now and it is working very proper. - No system freezes anymore!

I am not going to create a tutorial (maybe later) because I am not 100% what exactly I did do get this show on the road!

At least, this is the content of the batch file:

// Note that you have to use your folder names!
//
SET gamepath=D:GamesSteamSteamAppsdevmaps = where the GameInfo.txt is located, I think

%echo off

cls

echo =======================
echo compile of %~n1
echo =======================
echo.

cd D:GamesSteamSteamAppsdevmapsrc

del %~n1.log

SET toolpath=D:GamesSteamSteamAppsdevbin
SET gamepath=D:GamesSteamSteamAppsdevmaps

echo.

title working: bsp

%toolpath%vbsp.exe -game D:GamesSteamSteamAppsdevmaps %1

echo ==============================================
title working: vis

%toolpath%vvis.exe -game D:GamesSteamSteamAppsdevmaps %1
echo ==============================================
title working: rad
%toolpath%vrad.exe -bounce 0 -game D:GamesSteamSteamAppsdevmaps %1

echo delete unnecessary files
echo.
del %~n1.prt

echo copying files
echo.
copy %~n1.bsp %gamepath%%~n1.bsp

SET gamepath=
SET toolpath=
title finished compile of %~n1
pause

EDIT: It seems that it doesn't show the backslash - you know what I am talking about? On the directory locations like D:GamesSteamSteamApps, etc - add one!!
[addsig]




Quote
Re: Batchfile Compiling
Posted by Orpheus on Wed Apr 13th at 6:31pm 2005


? quoting ding


echo delete unnecessary files

whoops, there goes all those killbox vmf's smiley

[addsig]




Quote
Re: Batchfile Compiling
Posted by ding on Wed Apr 13th at 6:34pm 2005


I hope everyone knows what to do with the batchfile. Just Drag'n'Drop your map-file into the icon of the batch file and it will start to compile.

P.S. I will create a tutorial as soon I stopped sucking on the english language. I cut my finger (not completely) and it is hurting like hell so just ignore typos OR things I've forgot to mention.

Thanks - Ding.
[addsig]




Quote
Re: Batchfile Compiling
Posted by habboi on Wed Apr 13th at 9:00pm 2005


This is rather helpful, thankyou. [addsig]




Post Reply