Game Development Community

Torque 3D Beta 1 Bug: compile.bat doesnt like sln names with spaces

by Fyodor -bank- Osokin · in Torque 3D Professional · 05/05/2009 (1:52 pm) · 3 replies

If trying to start compile.bat in "FTP Genre Kit" (or any project with space in name) getting following error:
Quote:
vcbuild.exe : warning VCBLD6002: invalid option Kit.sln specified. The option was ignored.
vcbuild.exe : warning VCBLD6002: invalid option Release|Win32 specified. The option was ignored.
Error: project file 'FPS' was not found or not a valid project file.
Project file 'FPS' could not be loaded.
The project is either missing from disk or access was denied.
The problem is, it's passing the name of solution without quotes, so the name is parsed like separate parameters.

Fix is easy in compile.bat change the line 46 -- put in quotes the "%%a" like so (second and third):
for %%a in (*.sln) do %BUILDCMD% "%%a" %OPTIONS% & IF ERRORLEVEL 1 goto error_compile & %BUILDCMD% "%%a" %OPTIONS% & IF ERRORLEVEL 1 goto error_compile

#1
05/06/2009 (11:09 am)
Logged as THREED-423
#2
05/13/2009 (6:16 pm)
Should be fixed in Beta 2.
#3
05/13/2009 (6:33 pm)
Matt! Your alive!