ficool2 / HammerPlusPlus-Issue-Tracker

Bug and feature request tracker for Hammer++
37 stars 1 forks source link

[BUG] -final Compiling forgets a dash #425

Open Stepa1411 opened 2 weeks ago

Stepa1411 commented 2 weeks ago

For example, I have a file called test.vmf in D:\Hammer\Maps. It's a very basic map: a hollow cube with light source and player_start. If you compile this map with LDR+HDR, it works just fine. But if you try to compile it with -final, it breaks. After crashing, in D:\Hammer\Maps a log file is generated:

materialPath: D:\Steam\steamapps\common\Source SDK Base 2013 Multiplayer\hl2\materials
Loading d:\hammer\maps\test.vmf
Map revision 1
Could not locate GameData file nameoffgd.fgd
fixing up env_cubemap materials on brush sides...
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Processing areas...done (0)
Building Faces...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing d:\hammer\maps\test.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) (2279 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Compacting texture/material tables...
Reduced 3 texinfos to 3
Reduced 1 texdatas to 1 (21 bytes to 21)
Writing d:\hammer\maps\test.bsp
MSG_FILEWRITE - Filesystem was asked to write to 'd:\hammer\maps\test.bsp', but we don't own that location. Allowing.
Wrote ZIP buffer, estimated size 86940, actual size 86726
0 seconds elapsed

12 threads
reading d:\hammer\maps\test.bsp
reading d:\hammer\maps\test.prt
   4 portalclusters
   4 numportals
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 0 visible clusters (0.00%)
Total clusters visible: 16
Average clusters visible: 4
Building PAS...
Average clusters audible: 4
visdatasize:44  compressed from 64
writing d:\hammer\maps\test.bsp
MSG_FILEWRITE - Filesystem was asked to write to 'd:\hammer\maps\test.bsp', but we don't own that location. Allowing.
0 seconds elapsed

[Reading texlights from 'lights.rad']
[1 texlights parsed from 'lights.rad']

Loading d:\hammer\maps\test.bsp
16 faces
1536 square feet [221184.00 square inches]
0 Displacements
0 Square Feet [0.00 Square Inches]
16 patches before subdivision
208 patches after subdivision
1 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 10152, max 96
transfer lists:   0.1 megs
0...1...2...3...4...5...6...7...8...9...10  Bounce #1 added RGB(2973, 1984, 1340)
0...1...2...3...4...5...6...7...8...9...10  Bounce #2 added RGB(663, 295, 135)
0...1...2...3...4...5...6...7...8...9...10  Bounce #3 added RGB(147, 44, 14)
0...1...2...3...4...5...6...7...8...9...10  Bounce #4 added RGB(33, 6, 1)
0...1...2...3...4...5...6...7...8...9...10  Bounce #5 added RGB(7, 1, 0)
0...1...2...3...4...5...6...7...8...9...10  Bounce #6 added RGB(2, 0, 0)
0...1...2...3...4...5...6...7...8...9...10  Bounce #7 added RGB(0, 0, 0)
Build Patch/Sample Hash Table(s).....Done<0.0000 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (0% of) surface lights went in leaf ambient cubes.
0...1...2...3...4...5...6...7...8...9...10Writing leaf ambient...done
Ready to Finish

Object names       Objects/Maxobjs  Memory / Maxmem  Fullness 
------------       ---------------  ---------------  -------- 
models                   1/4096           48/196608   ( 0.0%) 
brushes                  6/32768          72/393216   ( 0.0%) 
brushsides              36/327680        288/2621440  ( 0.0%) 
planes                  40/65536         800/1310720  ( 0.1%) 
vertexes                35/65536         420/786432   ( 0.1%) 
nodes                   27/65536         864/2097152  ( 0.0%) 
texinfos                 3/12288         216/884736   ( 0.0%) 
texdata                  1/2048           32/65536    ( 0.0%) 
dispinfos                0/0               0/0        ( 0.0%) 
disp_verts               0/0               0/0        ( 0.0%) 
disp_tris                0/0               0/0        ( 0.0%) 
disp_lmsamples           0/0               0/0        ( 0.0%) 
faces                   16/65536         896/3670016  ( 0.0%) 
hdr faces                0/65536           0/3670016  ( 0.0%) 
origfaces                6/65536         336/3670016  ( 0.0%) 
leaves                  29/65536         928/2097152  ( 0.0%) 
leaffaces               16/65536          32/131072   ( 0.0%) 
leafbrushes             16/65536          32/131072   ( 0.0%) 
areas                    2/1024           16/8192     ( 0.2%) 
surfedges               88/512000        352/2048000  ( 0.0%) 
edges                   57/256000        228/1024000  ( 0.0%) 
LDR worldlights          1/16384          88/1441792  ( 0.0%) 
HDR worldlights          0/16384           0/1441792  ( 0.0%) 
leafwaterdata            0/32768           0/393216   ( 0.0%) 
waterstrips              0/131072          0/1310720  ( 0.0%) 
waterverts               0/131072          0/1572864  ( 0.0%) 
waterindices             0/131072          0/262144   ( 0.0%) 
cubemapsamples           0/1024            0/16384    ( 0.0%) 
overlays                 0/1024            0/360448   ( 0.0%) 
LDR lightdata         [variable]        4544/0        ( 0.0%) 
HDR lightdata         [variable]           0/0        ( 0.0%) 
visdata               [variable]          44/16777216 ( 0.0%) 
entdata               [variable]         663/393216   ( 0.2%) 
LDR ambient table       29/65536         116/262144   ( 0.0%) 
HDR ambient table       29/65536         116/262144   ( 0.0%) 
LDR leaf ambient        32/65536         896/1835008  ( 0.0%) 
HDR leaf ambient        29/65536         812/1835008  ( 0.0%) 
occluders                0/0               0/0        ( 0.0%) 
occluder polygons        0/0               0/0        ( 0.0%) 
occluder vert ind        0/0               0/0        ( 0.0%) 
detail props          [variable]           1/12       ( 8.3%) 
static props          [variable]           1/12       ( 8.3%) 
pakfile               [variable]       86726/0        ( 0.0%) 
physics               [variable]        2279/4194304  ( 0.1%) 
physics terrain       [variable]           2/1048576  ( 0.0%) 

Level flags = 1

Total triangle count: 32
Writing d:\hammer\maps\test.bsp
0 seconds elapsed

[Reading texlights from 'lights.rad']
[1 texlights parsed from 'lights.rad']

Loading d:\hammer\maps\test.bsp
16 faces
1536 square feet [221184.00 square inches]
0 Displacements
0 Square Feet [0.00 Square Inches]
16 patches before subdivision
208 patches after subdivision
1 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 10152, max 96
transfer lists:   0.1 megs
0...1...2...3...4...5...6...7...8...9...10  Bounce #1 added RGB(2973, 1984, 1340)
0...1...2...3...4...5...6...7...8...9...10  Bounce #2 added RGB(663, 295, 135)
0...1...2...3...4...5...6...7...8...9...10  Bounce #3 added RGB(147, 44, 14)
0...1...2...3...4...5...6...7...8...9...10  Bounce #4 added RGB(33, 6, 1)
0...1...2...3...4...5...6...7...8...9...10  Bounce #5 added RGB(7, 1, 0)
0...1...2...3...4...5...6...7...8...9...10  Bounce #6 added RGB(2, 0, 0)
0...1...2...3...4...5...6...7...8...9...10  Bounce #7 added RGB(0, 0, 0)
Build Patch/Sample Hash Table(s).....Done<0.0000 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (0% of) surface lights went in leaf ambient cubes.
0...1...2...3...4...5...6...7...8...9...10Writing leaf ambient...done
Ready to Finish

Object names       Objects/Maxobjs  Memory / Maxmem  Fullness 
------------       ---------------  ---------------  -------- 
models                   1/4096           48/196608   ( 0.0%) 
brushes                  6/32768          72/393216   ( 0.0%) 
brushsides              36/327680        288/2621440  ( 0.0%) 
planes                  40/65536         800/1310720  ( 0.1%) 
vertexes                35/65536         420/786432   ( 0.1%) 
nodes                   27/65536         864/2097152  ( 0.0%) 
texinfos                 3/12288         216/884736   ( 0.0%) 
texdata                  1/2048           32/65536    ( 0.0%) 
dispinfos                0/0               0/0        ( 0.0%) 
disp_verts               0/0               0/0        ( 0.0%) 
disp_tris                0/0               0/0        ( 0.0%) 
disp_lmsamples           0/0               0/0        ( 0.0%) 
faces                   16/65536         896/3670016  ( 0.0%) 
hdr faces               16/65536         896/3670016  ( 0.0%) 
origfaces                6/65536         336/3670016  ( 0.0%) 
leaves                  29/65536         928/2097152  ( 0.0%) 
leaffaces               16/65536          32/131072   ( 0.0%) 
leafbrushes             16/65536          32/131072   ( 0.0%) 
areas                    2/1024           16/8192     ( 0.2%) 
surfedges               88/512000        352/2048000  ( 0.0%) 
edges                   57/256000        228/1024000  ( 0.0%) 
LDR worldlights          1/16384          88/1441792  ( 0.0%) 
HDR worldlights          1/16384          88/1441792  ( 0.0%) 
leafwaterdata            0/32768           0/393216   ( 0.0%) 
waterstrips              0/131072          0/1310720  ( 0.0%) 
waterverts               0/131072          0/1572864  ( 0.0%) 
waterindices             0/131072          0/262144   ( 0.0%) 
cubemapsamples           0/1024            0/16384    ( 0.0%) 
overlays                 0/1024            0/360448   ( 0.0%) 
LDR lightdata         [variable]        4544/0        ( 0.0%) 
HDR lightdata         [variable]        4544/0        ( 0.0%) 
visdata               [variable]          44/16777216 ( 0.0%) 
entdata               [variable]         663/393216   ( 0.2%) 
LDR ambient table       29/65536         116/262144   ( 0.0%) 
HDR ambient table       29/65536         116/262144   ( 0.0%) 
LDR leaf ambient        32/65536         896/1835008  ( 0.0%) 
HDR leaf ambient        32/65536         896/1835008  ( 0.0%) 
occluders                0/0               0/0        ( 0.0%) 
occluder polygons        0/0               0/0        ( 0.0%) 
occluder vert ind        0/0               0/0        ( 0.0%) 
detail props          [variable]           1/12       ( 8.3%) 
static props          [variable]           1/12       ( 8.3%) 
pakfile               [variable]       86726/0        ( 0.0%) 
physics               [variable]        2279/4194304  ( 0.1%) 
physics terrain       [variable]           2/1048576  ( 0.0%) 

Level flags = 3

Total triangle count: 32
Writing d:\hammer\maps\test.bsp
0 seconds elapsed

materialPath: D:\Steam\steamapps\common\Source SDK Base 2013 Multiplayer\hl2\materials
Loading d:\hammer\maps\test.vmf
Map revision 1
Could not locate GameData file nameoffgd.fgd
fixing up env_cubemap materials on brush sides...
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Processing areas...done (0)
Building Faces...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing d:\hammer\maps\test.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) (2279 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Compacting texture/material tables...
Reduced 3 texinfos to 3
Reduced 1 texdatas to 1 (21 bytes to 21)
Writing d:\hammer\maps\test.bsp
MSG_FILEWRITE - Filesystem was asked to write to 'd:\hammer\maps\test.bsp', but we don't own that location. Allowing.
Wrote ZIP buffer, estimated size 86940, actual size 86726
0 seconds elapsed

12 threads
reading d:\hammer\maps\test.bsp
reading d:\hammer\maps\test.prt
   4 portalclusters
   4 numportals
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 0 visible clusters (0.00%)
Total clusters visible: 16
Average clusters visible: 4
Building PAS...
Average clusters audible: 4
visdatasize:44  compressed from 64
writing d:\hammer\maps\test.bsp
MSG_FILEWRITE - Filesystem was asked to write to 'd:\hammer\maps\test.bsp', but we don't own that location. Allowing.
0 seconds elapsed

Then, in the D:\Hammer folder there's an another log:


[Reading texlights from 'lights.rad']
[1 texlights parsed from 'lights.rad']

Loading d:\hammer\mapstest.bsp
Error opening d:\hammer\mapstest.bsp

It seems that hammer++ tries to open test.bsp, that is located in D:\hammer\map\, but it forgets the last dash. I experimented, and, if you take test.bsp file that is created in D:\hammer\map\, put it in D:\hammer and name it mapstest.bsp, then it works.