path seems too long in hammer compile
Post Reply
Quote
Re: path seems too long in hammer compile
Posted by mindshift on Tue Jul 19th at 8:55pm 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~1VALVEH~1zhlthlcsg.exe
** Parameters: c:PROGRA~1valvesteamSTEAMA~1ALEXAN~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~1VALVEH~1zhlthlcsg.exe c:PROGRA~1valvesteamSTEAMA~1ALEXAN~1
Error: Error opening c:PROGRA~1valvesteamSTEAMA~1ALEXAN~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?)





Quote
Re: path seems too long in hammer compile
Posted by Mephs on Thu Jul 21st at 6:59am 2005


If you think the subdirectories are causing you problems, why not just move/reinstall to "C:valvesteam" (or even C:steam if your feeling saucy)?




Quote
Re: path seems too long in hammer compile
Posted by Orpheus on Thu Jul 21st at 9:41am 2005


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.



Quote
Re: path seems too long in hammer compile
Posted by Myrk- on Thu Jul 21st at 1:40pm 2005


When it comes to mapping for HL1, avoid steam at all costs!


-[Better to be Honest than Kind]-



Quote
Re: path seems too long in hammer compile
Posted by Orpheus on Thu Jul 21st at 6:08pm 2005


? quoting Myrk-
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.



Quote
Re: path seems too long in hammer compile
Posted by Dagguh on Wed Dec 1st at 1:09pm 2010


Accepted Answer
I'm necroing this to provide real solution for people that come here for help.

Use Expert Mode while compiling:
  1. Add your first command a Change Directory command with parameter $path.
  2. Tick the Use long filenames checkbox on.
  3. Add further commands for:
    • hlcsg
    • hlbsp
    • hlvis
    • hlrad
    all with $file as their params. Provide additional parals if you want.
  4. Add a Copy file command with $file $bsp_path/$file.
  5. Add a Game executable command with +map $file (and others like -dev -console +gl_wireframe 2 +deathmatch 1 if you need them.

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.





Post Reply