Re: [article] Batch File Compiling for Beginners
Posted by Crono on Wed Sep 22nd at 11:11am 2004
To make it a little more automated, you could put a call command (to the batch file with the map name) from Hammer, and then the next command could be calling HL to load up the map.
Or you could put that part in the batch file and taskkill hammer before beginning the compile.
That would automate it, which is the only reason most people compile with hammer anyway.
Nice overall.

Crono
super admin
6628 posts
633 snarkmarks
Registered: Dec 19th 2003
Location: Oregon, USA
Re: [article] Batch File Compiling for Beginners
Posted by Tracer Bullet on Wed Sep 22nd at 5:51pm 2004
Orph- It is long. Much more so than I had intended. However, I think it is better to explain to people not only what to do and how to do it, but also why each step is needed. Especially for beginners, I felt it was best not to assume any knowledge of BAT files. I myself only just learned to do this, and I was trying to cover all the questions I had in figuring it all out.
Also, no hard feelings about the rating. 8/10 is a perfectly respectable score, and anyway, what would be the point of a rating system if everything was rated 10/10?
Crono - I didn't think of automating it through hammer. And since I was using steam (yes I know I was using WON file paths) I discarded the idea of automatic startup. Is there a way to do that in Steam?
Good ideas though, you obviously know allot more about it than I do. As I said, this was my second batch file ever so I'm not well versed in what all is possible.

Tracer Bullet
member
2271 posts
367 snarkmarks
Registered: May 22nd 2003
Location: Seattle WA, USA
Occupation: Graduate Student (Ph.D)
Re: [article] Batch File Compiling for Beginners
Posted by Crono on Thu Sep 23rd at 6:07am 2004
Steam is the exact same as non-steam in this regard. Just, instead of saying "halflife.exe" you say "steam.exe"
That's pretty much it, almost everything in steam can be executed through the 'applaunch' argument.
The only problem I've come across is how to do the whole command line argument to a batch file thing. That and Hammer's executable abilities are rather limited, but I'm sure it's easy. I'll write something up once I get it going properly.
[EDIT]
By the way, to use spaces you put the path inside double quotes
[/EDIT]

Crono
super admin
6628 posts
633 snarkmarks
Registered: Dec 19th 2003
Location: Oregon, USA
Re: [article] Batch File Compiling for Beginners
Posted by omegaslayer on Thu Sep 23rd at 4:26am 2004
Well I thought it was a 10/10

omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA
Occupation: Sr. DevOPS Engineer
Re: [article] Batch File Compiling for Beginners
Posted by fokker on Sun Oct 3rd at 4:54am 2004
Very handy, though it was long I think it was necessary to explain exactly what needs to be done (it doesn't leave anyone asking any more questions).
fokker
member
39 posts
94 snarkmarks
Registered: Jun 16th 2003
Location: Washington State, USA
Re: [article] Batch File Compiling for Beginners
Posted by Cash Car Star on Wed Oct 6th at 9:07pm 2004
Whoa, new rating system. Or not new and I just haven't looked at a tutorial in half a year. Either way, batch compiling = win. Things like putting the words on 3D boxes in your schematics diagram amuse me, but it's common practice in presentations.

Cash Car Star
member
1260 posts
301 snarkmarks
Registered: Apr 7th 2002
Location: Connecticut (sigh)
Occupation: post-student
Re: [article] Batch File Compiling for Beginners
Posted by Foxpup on Wed Dec 29th at 1:47am 2004
There's a lot more info on this in the Worldcraft/VHE manual...

Foxpup
member
380 posts
38 snarkmarks
Registered: Nov 26th 2004
Location: the Land of Oz
Occupation: Student