Decals ok in hammer, but not in game?!

F

fon

Guest
Hello again,
I posted recently to get some help with ambient lighting, and I'm glad to inform you that it's all worked out. I'm not exactly sure how, but I think it had to do with making a skybox even though I had an indoor map.

However, this question has been driving me nuts all day, and I'm hoping someone can shed some light on it for me. I seem to be missing some of my textures when I *Run* the map from the editor. Specifically, I was looking into getting some custom posters on the wall. I started out simple, by loading in some of the posters from the provided single player maps, and saving them out as prefabs. This worked perfectly in the editor, but when I tried to run the map... they wouldn't show up.

I thought maybe that hammer was allowing me to assign textures that were outside the scope of the game type I was building my level for. It will probably end up being a server side mod, but I'm not there yet. Anyways, I extracted some of the poster textures out of the GCF file, and put them in MYMOD's materials directory... which did allow them to show up twice in the editor (once in the original location (decals/) and then outside of a dir structure (in my materials dir):

C:\Program Files\Valve\Steam\SteamApps\SourceMods\MYMOD\materials

I know hammer was looking to MYMODs material dir since other custom textures I was playing with showed up in the editor as well.

I also tried copying all the files to my USERNAME materials directory, and the regular HL2 deathmatch material's directory, but nothing would get them to show up in the game. I've lost an entire day of map making trying to get this working, and I'm about to toss in the towel! Any and all help would be appreciated!!

Below there is a little extra bit on the feedback both the game and the editor gave me. Perhaps I've just got one simple little thing configured wrong?

Thanks for reading!
Carl

There might be some related errors in the console, but they reference some automatically generated vtf files or something:

"materials/maps/MYMAP/c-2618_2559_195.vtf": can't be found on disk
Couldn't find texture maps/MYMAP/c-2618_2559_195
"materials/maps/MYMAP/c-3082_2559_206.vtf": can't be found on disk
Couldn't find texture maps/MYMAP/c-3082_2559_206
"materials/maps/MYMAP/c-3320_2559_200.vtf": can't be found on disk
Couldn't find texture maps/MYMAP/c-3320_2559_200


*******************************************************************************************
START CONSOLE
*******************************************************************************************
Game .dll loaded for "Half-Life 2 Deathmatch"
CSoundEmitterSystem::AddSoundsFromFile(scripts/npc_sounds_citizen.txt): Entry NPC_Citizen.die duplicated, skipping
CSoundEmitterSystem::AddSoundsFromFile(scripts/npc_sounds_metropolice.txt): Entry NPC_MetroPolice.Die duplicated, skipping
CSoundEmitterSystem: Registered 5135 sounds
CResponseSystem: scripts/talker/response_rules.txt (217 rules, 214 criteria, and 208 responses)
Heap: 255.87 Mb
Sound Initialization
DS:5.1 speaker configuration detected
Set primary sound buffer format: yes
5 channel(s)
16 bits/sample
44100 samples/sec
3d surround sound initialization successful
DirectSound initialized
Sound sampling rate: 44100
Parsed 23 text messages
execing config.cfg
cc_lang =
2 CPUs (1 physical), Frequency: 2.8 Ghz, Features: GenuineIntel SSE SSE2 MMX RDTSC CMOV FCMOV
GetAllManifestFiles: Unable to load maplist.txt
execing valve.rc
material "vgui/steam/games/icon_cs" not found
--- Missing Vgui material vgui/steam/games/icon_cs
material "vgui/steam/games/icon_hl2mp" not found
--- Missing Vgui material vgui/steam/games/icon_hl2mp
material "vgui/steam/games/icon_dod" not found
--- Missing Vgui material vgui/steam/games/icon_dod
Network: IP 192.168.0.100, mode MP, dedicated No, ports 27015 SV / 27005 CL
Spawn Server MYMAP
Begin loading faces (loads materials)
End loading faces (loads materials)
"materials/maps/MYMAP/c-2618_2559_195.vtf": can't be found on disk
Couldn't find texture maps/MYMAP/c-2618_2559_195
"materials/maps/MYMAP/c-3082_2559_206.vtf": can't be found on disk
Couldn't find texture maps/MYMAP/c-3082_2559_206
"materials/maps/MYMAP/c-3320_2559_200.vtf": can't be found on disk
Couldn't find texture maps/MYMAP/c-3320_2559_200
execing skill.cfg
Executing listen server config file
Model sprites/redglow1 not found!
Error reading weapon data file for: weapon_citizensuitcase
Error reading weapon data file for: weapon_citizenpackage
Error reading weapon data file for: weapon_bugbait
Error reading weapon data file for: weapon_annabelle
CInstancedSceneResourceManager: 1096 .vcds total 0 bytes, 0.00 % of
capacity
Created class baseline: 12 classes, 2017 bytes.
2 player server started
couldn't exec listenserver.cfg
Client USERNAME connected (127.0.0.1:27005).
Node Graph out of Date. Rebuilding...
Connected to 127.0.0.1:27015
Binding uncached material "vgui/white_additive", artificially incrementing refcount
Compressing fragments (19604 -> 9413 bytes)
Adding master server 207.173.177.11:27011
Adding master server 207.173.177.12:27011

Deathmatch
Map: MYMAP
Players: 1 / 2
Build 2301
Server Number 1
FCVAR_CHEAT cvars reverted to defaults.
FCVAR_CHEAT cvars reverted to defaults.
FCVAR_CHEAT cvars reverted to defaults.
SetConVar: sv_skyname = "sky_wasteland02"
SetConVar: sv_cheats = "1"
Initializing renderer...
Couldn't find customization file 'sound/player/jingle.wav'.
WARNING: Level contains NPCs but has no path nodes
Compressing fragments (6405 -> 4721 bytes)
#Game_connected
Signon traffic "CLIENT": incoming 17.392 Kb, outgoing 743 bytes
crow1 thinking for 13.76ms!!! (SCHED_CROW_FLY_AWAY); r13.72 (c0.04, pst0.00, ms13.68), p-r0.01, m0.00
*******************************************************************************************
END CONSOLE
*******************************************************************************************

********************************************************************************************
START HAMMER COMPILE OUTPUT
********************************************************************************************
** Executing...
** Command: "c:\program files\valve\steam\steamapps\USERNAME\sourcesdk\bin\vbsp.exe"
** Parameters: -game "c:\program files\valve\steam\steamapps\SourceMods\MYMOD" "C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP"

Valve Software - vbsp.exe (Jan 19 2005)
2 threads
materialPath: c:\program files\valve\steam\steamapps\SourceMods\MYMOD\materials
Loading C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.vmf
fixing up env_cubemap materials on brush sides...
ProcessBlock_Thread: 0...1...2...3...4...5...6...7...8...9...10 (0)
ProcessBlock_Thread: 0...1...2...3...4...5...6...7...8...9...10 (0)
Processing areas...done (0)
Building Faces...done (0)
Chop Details...done (0)
Find Visible Detail Sides...
Merged 14 detail faces...done (0)
Merging details...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.prt...done (0)
Creating default cubemaps for env_cubemap using skybox sky_wasteland02...
Run buildcubemaps in the engine to get the correct cube maps.
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) (65924 bytes)
Emitting linux collision data (use -nolinuxdata to disable).
Building Physics collision data...
done (0) (65924 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Writing C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.bsp
2 seconds elapsed
Memory leak: mempool blocks left in memory: 48
Memory leak: mempool blocks left in memory: 2

** Executing...
** Command: "c:\program files\valve\steam\steamapps\USERNAME\sourcesdk\bin\vvis.exe"
** Parameters: -game "c:\program files\valve\steam\steamapps\SourceMods\MYMOD" "C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP"

Valve Software - vvis.exe (Dec 15 2004)
2 threads
reading c:\program files\valve\steam\steamapps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.bsp
reading c:\program files\valve\steam\steamapps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.prt
218 portalclusters
586 numportals
BasePortalVis: 0...1...2...3...4...5...6...7...8...9...10 (0)
PortalFlow: 0...1...2...3...4...5...6...7...8...9...10 (3)
Optimized: 28 visible clusters (0.00%)
Total clusters visible: 22318
Average clusters visible: 102
Building PAS...
Average clusters audible: 216
visdatasize:14113 compressed from 13952
writing c:\program files\valve\steam\steamapps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.bsp
3 seconds elapsed

** Executing...
** Command: "c:\program files\valve\steam\steamapps\USERNAME\sourcesdk\bin\vrad.exe"
** Parameters: -game "c:\program files\valve\steam\steamapps\SourceMods\MYMOD" "C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP"

Valve Software - vrad.exe (Jan 18 2005)
----- Radiosity Simulator ----
2 threads
[Reading texlights from 'lights.rad']
[45 texlights parsed from 'lights.rad']

Loading c:\program files\valve\steam\steamapps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.bsp
1052 faces
146811 square feet [21140812.00 square inches]
0 displacements
0 square feet [0.00 square inches]
1052 patches before subdivision
10004 patches after subdivision
6 direct lights
BuildFacelights: 0...1...2...3...4...5...6...7...8...9...10 (15)
BuildVisLeafs: 0...1...2...3...4...5...6...7...8...9...10 (7)
transfers 355126, max 249
transfer lists: 2.7 megs
GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)
Bounce #1 added RGB(543, 1229, 854)
GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (1)
Bounce #2 added RGB(82, 169, 101)
GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)
Bounce #3 added RGB(17, 32, 17)
GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)
Bounce #4 added RGB(4, 6, 3)
GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)
Bounce #5 added RGB(1, 2, 1)
GatherLight: 0...1...2...3...4...5...6...7...8...9...10 (0)
Bounce #6 added RGB(0, 0, 0)
Build Patch/Sample Hash Table(s).....Done<0.0127 sec>
FinalLightFace: 0...1...2...3...4...5...6...7...8...9...10 (1)
FinalLightFace Done
Ready to Finish
0 of 0 (0% of) surface lights went in leaf ambient cubes.
ComputePerLeafAmbientLighting: 0...1...2...3...4...5...6...7...8...9...10

Object names Objects/Maxobjs Memory / Maxmem Fullness
------------ --------------- --------------- --------
models 9/1024 432/49152 ( 0.9%)
brushes 167/8192 2004/98304 ( 2.0%)
brushsides 1044/65536 8352/524288 ( 1.6%)
planes 652/65536 13040/1310720 ( 1.0%)
vertexes 1769/65536 21228/786432 ( 2.7%)
nodes 522/65536 16704/2097152 ( 0.8%)
texinfos 413/12288 29736/884736 ( 3.4%)
texdata 31/2048 992/65536 ( 1.5%)
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 1052/65536 58912/3670016 ( 1.6%)
origfaces 608/65536 34048/3670016 ( 0.9%)
leaves 532/65536 29792/3670016 ( 0.8%)
leaffaces 1257/65536 2514/131072 ( 1.9%)
leafbrushes 363/65536 726/131072 ( 0.6%)
surfedges 7261/512000 29044/2048000 ( 1.4%)
edges 4152/256000 16608/1024000 ( 1.6%)
worldlights 6/8192 528/720896 ( 0.1%)
waterstrips 64/32768 640/327680 ( 0.2%)
waterverts 0/65536 0/786432 ( 0.0%)
waterindices 999/65536 1998/131072 ( 1.5%)
cubemapsamples 9/1024 144/16384 ( 0.9%)
overlays 0/512 0/180224 ( 0.0%)
lightdata [variable] 502172/0 ( 0.0%)
visdata [variable] 14113/16777216 ( 0.1%)
entdata [variable] 38219/393216 ( 9.7%)
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/2130 ( 0.0%)
pakfile [variable] 72056/0 ( 0.0%)

Win32 Specific Data:
physics [variable] 65924/4194304 ( 1.6%)
==== Total Win32 BSP file data space used: 959928 bytes ====

Linux Specific Data:
physicssurface [variable] 65924/6291456 ( 1.0%)
==== Total Linux BSP file data space used: 959928 bytes ====

Total triangle count: 2725
Writing c:\program files\valve\steam\steamapps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.bsp
24 seconds elapsed

** Executing...
** Command: Copy File
** Parameters: "C:\Program Files\Valve\Steam\SteamApps\USERNAME\sourcesdk_content\hl2mp\mapsrc\MYMAP.bsp" "c:\program files\valve\steam\steamapps\SourceMods\MYMOD\maps\MYMAP.bsp"


** Executing...
** Command: "c:\program files\valve\steam\steamapps\USERNAME\half-life 2 deathmatch\hl2.exe"
** Parameters: -game "c:\program files\valve\steam\steamapps\SourceMods\MYMOD" -dev -console +sv_lan 1 +map "MYMAP"
********************************************************************************************
END HAMMER COMPILE OUTPUT
********************************************************************************************
 
OUCH!

Problem Solved... There was nothing wrong with the paths or the images or shaders or configuration, etc... it was simply how far I had placed the infodecal from the wall in editor. Apparently you can get it close enough to show up in the editor, but far enough that it wouldn't render in the game. Simply moving the infodecal guide boxes to intersect with the surface it was projecting onto was all it needed. I placed mine so the origin x was just about flush on the surface (see pic, if that works)

I hope my pain will help others avoid this same pitfall!

fon


click for pic
 
LOL, usually decals are place ON something.... lol.. floating decals..
 
Back
Top