Nem's Tools Batch Compiler

Avatar
Interitus
145 Posts
Posted Nov 22, 2007
msleeper claims I can use this for compiling my portal maps. I gave it a shot, and it couldnt find a lot of the entities, and a lot of the other entities were really dark.
For those not knowing, check it out here: http://nemesis.thewavelength.net/index.php?p=3

I pointed the vbsp and such to <steam dir>\SteamApps\<my username>\sourcesdk\bin\orangebox\bin\vbsp.exe

And I used the spec "Source Tools Normal" as a base for my batch preset. In the setup menu, under the Variables tab, there's the options of "Binroot" and "Valve Project"... should those be filled out?

Advertisement
Registered users don't see ads! Register now!
Avatar
msleeper
4,095 Posts
Member
Posted Nov 22, 2007
Replied 19 minutes later
I honestly haven't dicked around with this program in a while, much less for Portal, but pretty much the only thing you need to set are the VBSP, VVIS, and VRAD directories as well as the location to your BSP. This program does what the Compile dialog in Hammer does, only without requiring Hammer to be open.

Post up what Nem's exports into the batch file, you probably have a setting wrong or some parameter you don't need.

Avatar
Interitus
145 Posts
Posted Nov 22, 2007
Replied 19 minutes later
Hmm.. Well, from what I can see, orangebox is set up a little different, so I'm not sure the tools will compile properly.
Maybe it will, but I dont feel like messing around with it when hammer compiles just fine when I havent done something stupid like carving with circular brushes.
Avatar
Interitus
145 Posts
Posted Nov 22, 2007
Replied 24 minutes later

Quote:
@echo off
echo ###################################################
echo # Batch Compiler #
echo ###################################################
echo ###################################################
echo # Please report bugs to: [email protected] #
echo ###################################################
echo.
echo Written At: 11/21/2007 10:04 PM
echo BC Version: 3.1.2.0
echo.
"\SteamApps\\sourcesdk\bin\orangebox\bin\vbsp.exe" "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7"
if ERRORLEVEL 1 goto failed
"\SteamApps\\sourcesdk\bin\orangebox\bin\vvis.exe" "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7"
if ERRORLEVEL 1 goto failed
"\SteamApps\\sourcesdk\bin\orangebox\bin\vrad.exe" "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7"
if ERRORLEVEL 1 goto failed
if not exist "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7.bsp" goto nocopybsp
copy "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7.bsp" "\SteamApps\\portal\portal\maps"
echo IntLvl2_7.bsp copied to \SteamApps\\portal\portal\maps.
:nocopybsp

goto succeeded
:failed
echo.
echo There was a problem compiling your map, check your IntLvl2_7.log file for errors.
:succeeded
echo.
if exist "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7.log" "C:\WINDOWS\system32\notepad.exe" "\SteamApps\\sourcesdk_content\portal\mapsrc\IntLvl2_7.log"

If you're looking for the settings, they're here:

Avatar
Interitus
145 Posts
Posted Nov 22, 2007
Replied 4 minutes later
Ah, there's lots of error msgs in the compile .log.

Things like
Material not found!: CONCRETE/CONCRETE_MODULAR_WALL001_GRADIENT00
material "metal/metalwall048b" not found.

Error loading studio model "models/props/portal_cleanser_1.mdl"!
Error loading studio model "models/props/door_01_frame_reference.mdl"!

There was a huge list of all the portal-related textures and models.

All of which were before the line: "fixing up env_cubemap materials on brush sides..."
Starts with
materialPath: <steam directory>\steamapps\the_interitus\half-life 2\hl2\materials
Loading <steam directory>\SteamApps\the_interitus\sourcesdk_content\portal\mapsrc\IntLvl2_7.vmf

Advertisement
Registered users don't see ads! Register now!
Avatar
Interitus
145 Posts
Posted Nov 22, 2007
Replied 10 minutes later
Alrighty, with msleeper's help in IRC, we've determined its because the SourceSDK reset itself to hl2 when I ran nem's tools.
Now it compiles properly.