Configure Hammer/Worldcraft to compile and launch Torque
by Charles Savage · 02/02/2004 (3:10 pm) · 6 comments
I just spent seven hours trying to get one of the two level editors Quark and Hammer/Worldcraft to map2dif, and now that I have it, I pass it on and the little extra I figured out to auto-launch the Torque exectuable - though you have to drag in your map yourself. Though you might be able to use the -show option to get it. From what I will give an example for, you should be able to figure this out for yourself.
Useing this doc as a guide, you can configure Worldcraft to compile your map into a dif, and learn the basics of Worldcraft.
I took it one step further and made it auto launch the torque executable.
If you have buried your evil1, or whatever name you chose for your example/starter.fps/data/interiors//maps, you may need to do a Map Network Drive to that directory, because Hammer/Worldcraft doesn't like long paths, at least for the version I have. To solve this, I use two directories, one in torque/my_textures and the evil1/maps directory. I saved my .rmf file in the my_textures directory, and then from there copy the .dif file to the evil1/maps. I show you how to do this automatically later.
To do this, navigate in windows to that directory, then at the top of that window, click tools, Map Network Drive. It gives you a default drive letter, and under it is a blank box and a browse button. You need to click browse, open up Entire Network/Microsoft Windows Network/// Once there, click ok. Make sure reconnect at login is checked and click ok. Remember that drive letter.
That is the drive letter that we'll use in Worldcraft, Tools/Options/Game Configurations. Set Game Directory to that drive letter such as T:\.
Click the Build Programs tab at the top of the Options dialog window.
On the Game executable: box, click browse and find your torque executable. Click it and then click open, it should fill that box with the path and exe.
You should already have the map2dif.exe configured from the above tutorial. Click Ok to close this window.
Load or make a small map, use the above tutorial to make one if you are new to this. Click the mostly invisible icon all the way to the right of the toolbar, or press F9 to run the map.
You probably are confronted (if you followed the above tutorial) with the Run Map [Advanced] screen. If not, click Expert at the bottom left of the screen, and you'll be on this window.
To begin with, the window is configured for Half-life if you didn't do the above tutorial, follow it and make your Torque Configuration.
You'll have one line in your Compile/run commands. It should look like...
$csg_exe $path\$file.$ext
That compiles your map to dif. Yay!
Now to copy and run your .dif map.
click New, then click Cmds - choose Copy File.
-- In Parameters click Parms
---- choose Map Path (no filename)
---- In Parameters type in a "\" - no quotes
---- click Parms, choose Map Filename (no extension)
---- In Parameters type in ".dif " - no quotes, and get that space there.
---- click Parms, choose BSP Directory (I wanted MOD, but that didn't work - bug, I sent to Valve about it)
---- In Paremeters type "\"
---- click Parms, choose Map Filename (no extension)
---- in Paremeters type ".dif"
That's it for the Copy File, now click New again.
-- Click Cmds - choose Change Directory
---- in Paremeters type the absolute path to your executable, but not tha name of it. Such as c:\tools\torque\example
Now to make the command to run the game, click New - choose Game Program.
That's it. If you want to pass any paremeters to the executable, enter them in the parameters list. Such as -show I mentioned above or any other.
Useing this doc as a guide, you can configure Worldcraft to compile your map into a dif, and learn the basics of Worldcraft.
I took it one step further and made it auto launch the torque executable.
If you have buried your evil1, or whatever name you chose for your example/starter.fps/data/interiors/
To do this, navigate in windows to that directory, then at the top of that window, click tools, Map Network Drive. It gives you a default drive letter, and under it is a blank box and a browse button. You need to click browse, open up Entire Network/Microsoft Windows Network/
That is the drive letter that we'll use in Worldcraft, Tools/Options/Game Configurations. Set Game Directory to that drive letter such as T:\.
Click the Build Programs tab at the top of the Options dialog window.
On the Game executable: box, click browse and find your torque executable. Click it and then click open, it should fill that box with the path and exe.
You should already have the map2dif.exe configured from the above tutorial. Click Ok to close this window.
Load or make a small map, use the above tutorial to make one if you are new to this. Click the mostly invisible icon all the way to the right of the toolbar, or press F9 to run the map.
You probably are confronted (if you followed the above tutorial) with the Run Map [Advanced] screen. If not, click Expert at the bottom left of the screen, and you'll be on this window.
To begin with, the window is configured for Half-life if you didn't do the above tutorial, follow it and make your Torque Configuration.
You'll have one line in your Compile/run commands. It should look like...
$csg_exe $path\$file.$ext
That compiles your map to dif. Yay!
Now to copy and run your .dif map.
click New, then click Cmds - choose Copy File.
-- In Parameters click Parms
---- choose Map Path (no filename)
---- In Parameters type in a "\" - no quotes
---- click Parms, choose Map Filename (no extension)
---- In Parameters type in ".dif " - no quotes, and get that space there.
---- click Parms, choose BSP Directory (I wanted MOD, but that didn't work - bug, I sent to Valve about it)
---- In Paremeters type "\"
---- click Parms, choose Map Filename (no extension)
---- in Paremeters type ".dif"
That's it for the Copy File, now click New again.
-- Click Cmds - choose Change Directory
---- in Paremeters type the absolute path to your executable, but not tha name of it. Such as c:\tools\torque\example
Now to make the command to run the game, click New - choose Game Program.
That's it. If you want to pass any paremeters to the executable, enter them in the parameters list. Such as -show I mentioned above or any other.
#2
08/23/2004 (6:39 am)
Did all the above & keep getting an error message..."error, the map file must have a .map extension". What am i doing wrong, little help please.
#3
12/29/2004 (12:39 pm)
Ah ... I kept getting that error too. You need add the extension .rmf when saving the file. It doesn't add the extension by default. Just do a File->Save As..., and save as myBox.rmf.
#4
05/22/2005 (2:57 pm)
Arg, since they reorganized the site, all the links to worldcraft are broken.. what are the new links?
#5
another question, what is "evil1"? is it a zip file or what? where can i get it?
07/05/2005 (8:45 pm)
it seems like the "this doc" link above have broken, does anyone know whats inside that link? another question, what is "evil1"? is it a zip file or what? where can i get it?
#6
The link is: http://home.att.net/~mikey102/worldCraft.html - and hopefully Mike can keep it up...
12/14/2005 (8:21 pm)
The doc link was resurrected by Michael Hense in this thread: http://www.garagegames.com/mg/forums/result.thread.php?qt=31252.The link is: http://home.att.net/~mikey102/worldCraft.html - and hopefully Mike can keep it up...

Rob "R3-D2" Davidson