path seems too long in hammer compile

path seems too long in hammer compile

Re: path seems too long in hammer compile Posted by mindshift on Tue Jul 19th 2005 at 8:55pm
mindshift
1 post
Posted 2005-07-19 8:55pm
1 post 0 snarkmarks Registered: Jul 19th 2005
hello, i used to map a lot before steam came out, and now ive regained interest in it. I set up hammer according to this guide (http://web.pdx.edu/~anaser/hammer.html) however when i try to run a simple map, nothing compiles. heres a snippit of my compile log:

** Executing...
** Command: C:\PROGRA~1\VALVEH~1\zhlt\hlcsg.exe
** Parameters: c:\PROGRA~1\valve\steam\STEAMA~1\ALEXAN~1

hlcsg v2.5.3 rel Custom Build 1.7 (Dec 9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (merlinis@bigpond.net.au)
----- BEGIN hlcsg -----
Command line: C:\PROGRA~1\VALVEH~1\zhlt\hlcsg.exe c:\PROGRA~1\valve\steam\STEAMA~1\ALEXAN~1
Error: Error opening c:\PROGRA~1\valve\steam\STEAMA~1\ALEXAN~1.map: No such file or directory

----- END hlcsg -----

it seems like the path to my steam directory is cut off, how can i fix this (my username has an @ in it, is this the problem?)
Re: path seems too long in hammer compile Posted by Mephs on Thu Jul 21st 2005 at 6:59am
Mephs
381 posts
Posted 2005-07-21 6:59am
Mephs
member
381 posts 38 snarkmarks Registered: Sep 18th 2004 Occupation: Office Monkey Location: Northern Ireland
If you think the subdirectories are causing you problems, why not just
move/reinstall to "C:\valve\steam" (or even C:\steam if your feeling
saucy)?
Re: path seems too long in hammer compile Posted by Orpheus on Thu Jul 21st 2005 at 9:41am
Orpheus
13860 posts
Posted 2005-07-21 9:41am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
The path issue was resolved ages ago methinks. What the message says is that it cannot find the .map.

Check your paths in the setup. It is usually best to put everything into the maps folder for easier locating.

Visually check to make sure that the .map file is in the folder you chose and be sure you are exporting "TO MAP".

You compile log looks abridged. Do not do that when posting unless... Its glitched and pages long.

The best things in life, aren't things.
Re: path seems too long in hammer compile Posted by Myrk- on Thu Jul 21st 2005 at 1:40pm
Myrk-
2299 posts
Posted 2005-07-21 1:40pm
Myrk-
member
2299 posts 604 snarkmarks Registered: Feb 12th 2002 Occupation: CAD & Graphics Technician Location: Plymouth, UK
When it comes to mapping for HL1, avoid steam at all costs!
-[Better to be Honest than Kind]-
Re: path seems too long in hammer compile Posted by Orpheus on Thu Jul 21st 2005 at 6:08pm
Orpheus
13860 posts
Posted 2005-07-21 6:08pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Myrk- said:
When it comes to mapping for HL1, avoid steam at all costs!
This may be the best advice, but I mapped HL1 with steam and it works just fine.. Its most likely he forgot to export to map, or set the paths incorrectly.

The best things in life, aren't things.
Re: path seems too long in hammer compile Posted by Dagguh on Wed Dec 1st 2010 at 1:09pm
Dagguh
8 posts
Posted 2010-12-01 1:09pm
Dagguh
member
8 posts 1 snarkmarks Registered: Jul 25th 2008
I'm necroing this to provide real solution for people that come here for help.

Use Expert Mode while compiling:
  • Add your first command a Change Directory command with parameter $path.
  • Tick the Use long filenames checkbox on.
  • Add further commands for:
    [list]
  • hlcsg
  • hlbsp
  • hlvis
  • hlrad
all with $file as their params. Provide additional parals if you want.
[*]Add a Copy file command with $file $bsp_path/$file.
[*]Add a Game executable command with +map $file (and others like -dev -console +gl_wireframe 2 +deathmatch 1 if you need them.
[/list]
Keep in mind, that Use long filenames checkbox is independent for each command, so make sure that it is on for all your commands.
Changing directory in the first command lets you use $file alone inestad of $path/$file .

The $bsp_path variable might actually look different, I cannot have Hammer open right now. You can get all the variable names from the GUI.