Batchfile Compiling

Batchfile Compiling

Re: Batchfile Compiling Posted by ding on Wed Apr 13th 2005 at 6:26pm
ding
200 posts
Posted 2005-04-13 6:26pm
ding
member
200 posts 280 snarkmarks Registered: May 11th 2004
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!

// <span style="color: cyan;">SET gamepath=D:GamesSteamSteamAppsdevmaps = where the GameInfo.txt is located, I think :smile: </span><br style="color: white;">
<br style="color: cyan;">
%echo off<br style="color: cyan;">
<br style="color: cyan;">
cls<br style="color: cyan;">
<br style="color: cyan;">
echo =======================<br style="color: cyan;">
echo compile of %~n1<br style="color: cyan;">
echo =======================<br style="color: cyan;">
echo.<br style="color: cyan;">
<br style="color: cyan;">
cd D:GamesSteamSteamAppsdevmapsrc<br style="color: cyan;">
<br style="color: cyan;">
del %~n1.log<br style="color: cyan;">
<br style="color: cyan;">
SET toolpath=D:GamesSteamSteamAppsdevbin<br style="color: cyan;">
SET gamepath=D:GamesSteamSteamAppsdevmaps<br style="color: cyan;">
<br style="color: cyan;">
echo.<br style="color: cyan;">
<br style="color: cyan;">
title working: bsp<br style="color: cyan;">
<br style="color: cyan;">
%toolpath%vbsp.exe -game D:GamesSteamSteamAppsdevmaps %1<br style="color: cyan;">
<br style="color: cyan;">
echo ==============================================<br style="color: cyan;">
title working: vis<br style="color: cyan;">
<br style="color: cyan;">
%toolpath%vvis.exe -game D:GamesSteamSteamAppsdevmaps %1<br style="color: cyan;">
echo ==============================================<br style="color: cyan;">
title working: rad<br style="color: cyan;">
%toolpath%vrad.exe -bounce 0 -game D:GamesSteamSteamAppsdevmaps %1<br style="color: cyan;">
<br style="color: cyan;">
echo delete unnecessary files<br style="color: cyan;">
echo.<br style="color: cyan;">
del %~n1.prt<br style="color: cyan;">
<br style="color: cyan;">
echo copying files<br style="color: cyan;">
echo.<br style="color: cyan;">
copy %~n1.bsp %gamepath%%~n1.bsp<br style="color: cyan;">
<br style="color: cyan;">
SET gamepath=<br style="color: cyan;">
SET toolpath=<br style="color: cyan;">
title finished compile of %~n1<br style="color: cyan;">
<span style="color: cyan;">pause

<span style="color: red;">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!!</span>

</span>
Re: Batchfile Compiling Posted by Orpheus on Wed Apr 13th 2005 at 6:31pm
Orpheus
13860 posts
Posted 2005-04-13 6:31pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
ding said:
<BR style="COLOR: cyan"><BR style="COLOR: cyan">echo delete unnecessary files<BR style="COLOR: cyan">
whoops, there goes all those killbox vmf's :heee:
Re: Batchfile Compiling Posted by ding on Wed Apr 13th 2005 at 6:34pm
ding
200 posts
Posted 2005-04-13 6:34pm
ding
member
200 posts 280 snarkmarks Registered: May 11th 2004
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.
Re: Batchfile Compiling Posted by habboi on Wed Apr 13th 2005 at 9:00pm
habboi
782 posts
Posted 2005-04-13 9:00pm
habboi
The Spammer of Snarkpit
member
782 posts 178 snarkmarks Registered: Dec 11th 2004 Location: United Kingdom
This is rather helpful, thankyou.