batch compile not working

Dario D.

Spy
Joined
Nov 30, 2004
Messages
710
Reaction score
0
This batch file I made following a tutorial isn't working. It's supposed to compile my map, but when I run it it says:

The system cannot find the file specified.
'"D:Half Life 2SteamAppsdariodeesourcesdkbinvbsp.exe"' is not recognized as an i
nternal or external command,
operable program or batch file.

.the batch file looks like this inside:

@echo off
copy "D:Half Life 2SteamAppsdariodeesourcesdkhl2mp_sample_contentmapsdm_plaza17.vmf" "D:Half Life 2SteamAppsdariodeehalf-life 2 deathmatchhl2mpmaps"
"D:Half Life 2SteamAppsdariodeesourcesdkbinvbsp.exe" "D:Half Life 2SteamAppsdariodeehalf-life 2 deathmatchhl2mpmapsdm_plaza17.vmf"
"D:Half Life 2SteamAppsdariodeesourcesdkbinvvis.exe" -fast "D:Half Life 2SteamAppsdariodeehalf-life 2 deathmatchhl2mpmapsdm_plaza17.vmf"
"D:Half Life 2SteamAppsdariodeesourcesdkbinvrad.exe" -fast "D:Half Life 2SteamAppsdariodeehalf-life 2 deathmatchhl2mpmapsdm_plaza17.vmf"
pause
 
You seem to have some kind of problem with the backslashes?
Here's what you should have in your .bat file :

Code:
@echo off
rem I'm not sure about this next line : read below.
copy "D:\Half Life 2\SteamApps\dariodee\sourcesdk\hl2\mp_sample_contentmaps\dm_plaza17.vmf" "D:\Half Life 2\SteamApps\dariodee\half-life 2 deathmatch\hl2mp\maps"
"D:\Half Life 2\SteamApps\dariodee\sourcesdk\bin\vbsp.exe" "D:\Half Life 2\SteamApps\dariodee\half-life 2 deathmatch\hl2mp\maps\dm_plaza17.vmf"
"D:\Half Life 2\SteamApps\dariodee\sourcesdk\bin\vvis.exe" -fast "D:\Half Life 2\SteamApps\dariodee\half-life 2 deathmatch\hl2mp\maps\dm_plaza17.vmf"
"D:\Half Life 2\SteamApps\dariodee\sourcesdk\bin\vrad.exe" -fast "D:\Half Life 2\SteamApps\dariodee\half-life 2 deathmatch\hl2mp\maps\dm_plaza17.vmf"
pause

What I mean by above statement is that I don't know what directory structure you have.
So open explorer and see on the D: drive in your Half Life 2 directory.
See in the "SteamApps\dariodee\sourcesdk" wheter the
directory is hl2 or hl2mp.
If you're not sure, just post a screenshot and I'll try to help you further.

So try to copy and paste the content I gave you here in a new file and name it originalfilename2.bat or something.
Don't erase the old file.
When my file seems to work, you can maybe switch both .bat files.
But if I were you I'd never remove the original bat file.

Also this problem has occured probably due to a misconfiguration/bug in your steam somewhere.
If I were you I'd reinstall Steam completely.
Only try to make the path to your HL2 folder a path without any spaces in it.
(This is known for causes errors in certain parts of the SDK. Not 100% sure which parts are affected.)
So try to install to D:\Games\Steam or something similar
 
Ok, thanks. Got it working perfectly now by putting in the backslashes. Thanks alot for your help.

I emailed the writer of the tutorial I followed and asked him to add backslashes to his tutorial, and he said that he was already waiting for the webmaster to update his tut.

Got it working... now I have 2 compile.bat files and can compile perfectly, one with "fast mode", one without.

(dang though, I've been compiling for the last 14 hours and it's still only on 9 (out of 10) in Portal Flow. This is a nightmare - I dont know if I'll have time to finish my map for the DM contest if I have to wait more than 14 hours just to compile in full mode) It could easily take 20 hours... I'll have to lose a day before the deadline :(

Anyway, ty. Works now.
 
Back
Top