ficool2 / HammerPlusPlus-Website

The website for Hammer++
93 stars 9 forks source link

Hammer++ Run Map issue (for Portal 2) #22

Open jp777jp opened 2 years ago

jp777jp commented 2 years ago

(Actually not sure if this issue is related to Portal 2)

When using Run Map dialog, both in Expert mode or in Normal mode, the bsp file is correctly compiled but is never copied to the specified location, using the Copy File command As a result, when in Portal 2, typing "map testmap" gives the following message :

_] map testmap.bsp CModelLoader::MapIsValid: No such map 'maps/testmap.bsp' map load failed: testmap not found or invalid

The testmap.bsp file should be found in C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\maps), but stays in C:\Program Files (x86)\Steam\steamapps\common\Portal 2\sdk_content\maps When copying the file manually, it's ok.

This issue makes Hammer++ almost unusable, as I have to move the bsp file manually each time I compile.

Here is my config:

Portal2 installed on C drive (with default paths) (Hammer installed on C drive) Hammer++ installed on E drive: E:\SteamLibrary\steamapps\common\Counter-Strike Global Offensive\bin

In Hammer++ config: Place compiled maps in this directory before running the game: C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\maps (=> not working)

Screenshot (29) I tried any combination of relative path and absolute path, with no success.

Any idea? Thank you!

jp777jp commented 2 years ago

Another info about this issue: (copy/paste of the compile process text) In _hammer_run_maplauncher.exe the end of the compile process is as follows:

Total triangle count: 202 Writing c:\program files (x86)\steam\steamapps\common\portal 2\sdk_content\maps\testmap.bsp 0 seconds elapsed CDynamicFunction: Closing library 'Kernel32.dll' (75B40000)


Running command: copy "c:\program files (x86)\steam\steamapps\common\portal 2\sdk_content\maps\testmap.bsp" "C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\maps\testmap.bsp"

Finished. Press a key to close.

In _hammerpluspluscompiler.exe the end of the compile process is as follows:

writing c:\program files (x86)\steam\steamapps\common\portal 2\sdk_content\maps\testmap++.prt...Building visibility clusters... done (0) Finding displacement neighbors... Finding lightmap sample positions... Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10 Building Physics collision data... done (0) (13520 bytes) Placing detail props : 0...1...2...3...4...5...6...7...8...9...10 Compacting texture/material tables... Reduced 68 texinfos to 25 Reduced 8 texdatas to 8 (221 bytes to 221) Writing c:\program files (x86)\steam\steamapps\common\portal 2\sdk_content\maps\testmap++.bsp

nummapplanes: ( 222 / 65536 ) nummapbrushes: ( 35 / 8192 ) nummapbrushsides: ( 210 / 65536 ) num_map_overlays: ( 0 / 512 ) nummodels: ( 6 / 1024 ) num_entities: ( 33 / 16384 )

0 seconds elapsed CDynamicFunction: Closing library 'Kernel32.dll' (75B40000)


Running command: cd "C:\Program Files (x86)\Steam\steamapps\common\bin"

Finished. Press a key to close.

It is not copying the file, just changing directory. I hope this help fixing? Thank you :)

P.S. Sorry for the big letters, I must have been messing with the styling..

stamepicmorg commented 2 years ago

try to symlink folders for someone drive - C or E.

jp777jp commented 2 years ago

For some reason, symlink is not working on my E drive, however I got all my custom stuff correctly processed. I'm using absolute paths everywhere...

jp777jp commented 2 years ago

But this issue is still there, after re-installing...