TF2 map crashes to desktop about 15 to 20 seconds after launching it without warning

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
I built a simple test map (koth) with lighting, spawnpoints, spawnrooms, everything and if I load the map from the TF2 client, my TF2 crashes to desktop without warning. If I run it from SRCDS, I get the message srcds.exe has stopped working. I look in the console of the server and there are no error messages. I put my compile log through Interlopers.net and here is the only error it gave me:

can't load skybox file skybox/sky_dustbowl_01 to build the default cubemap!
Description:
You have entered a skybox texture which doesn't seem to be valid. Make sure you don't specify the last three letter (_UP, _DN, etc) of any skybox texture you use. You may also need to fix your vmt files if they are broken. It may also be caused by compiling a non-HDR skybox texture.

Solution:
WIKI: Skybox


The affected object may not work/appear properly

This is my first time making a map and I really appreciate anyone who helps me out! Thank you!
 
Mar 23, 2013
1,013
347
the skybox error appears with every TF2 skybox. It's harmless you can ignore it. Your issue is something else
 

sooshey

:3c
aa
Jan 7, 2015
514
410
It may be an unrelated issue like your custom hud, your mods, or maybe even physics objects if your map had any. Does it still crash in regular servers?
 

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
@soosh What do you mean as in regular servers? I made a dedicated server and the server crashed when I was playing, but my gane didn't
 

sooshey

:3c
aa
Jan 7, 2015
514
410
What do you mean as in regular servers? I made a dedicated server and the server crashed when I was playing, but my gane didn't
Regular servers meaning any other server -- valve, community, anything else. Sorry for the poor wording. Also, you just said it crashed to desktop, that means your game crashed.
 

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
@soosh I currently only can run the map in my game or on a dedicated server. The map only crashes to deskop when I open my TF2 game and type "map test_room" and play it that way instead of using a sever.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
First, try validating your game cache to make sure the issue is with your map and not corrupt game files. If it's the map, use Alt+P in Hammer to check for any problems, and then go through all your entity I/O to see if you have any logic errors (which may not be recognized as errors by Hammer, but can still crash at runtime).

There are several other reasons why a map would crash, but I'd only be shooting in the dark without a vmf to look at.
 

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
@killohurtz Ok, I did as you said and my I/O's do not point to anything that doesn't exist. I pressed ALT+P and got "There is no player startpoint." I fixed this error by placing a info_player_start in the center of the map, but can players spawn on this? If they can, won't this kind of break my map? This also has seemed to have fixed the crashing issue.

UPDATE: This actually did not fix the crashing issue.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
Oh, I suppose I should have clarified that; the missing player start error can be safely ignored because TF2 uses info_player_teamspawn, not info_player_start. The latter is meant for single player Source games, so including one in your TF2 map or leaving it out won't affect anything.

Are you willing to provide the vmf so I can take a look?
 

theatreTECHIE

Yet another Techie for the net...
aa
Jun 19, 2015
455
458
I compiled the map, and it ran fine for me, including when I used the map [mapname] command. Out of curiosity, what are your system specs?

One thing I did notice though was that you had a large skybox-textured box around the whole map. Don't get into the habit of doing this, as it can slow performance and take up more storage space than is needed.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
The vmf looked fine to me, so I compiled it, ran around and tested all the doors and logic, and never crashed. Are you sure you don't have corrupted game files that need to be validated, or some faulty custom hud or mod like soosh mentioned earlier? And you're compiling this map in a Hammer configured for TF2?
 

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
@theatreTECHIE @killohurtz Yes, Hammer is configured for TF2. I plan on changing the skybox later as it was only a quick test. I will remove all custom files and try again in a second, but I did do a fresh reinstall of TF2 before adding my custom files back in. My System specs are:

Intel i5 2500K
GTX 980Ti
Dual monitors, one running 1920x1080, one running 2560x1440, TF2 is running on the 1440p one.
 

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
@theatreTECHIE @killohurtz Does it matter that I am using nav_generate and then tf_bot_add 11 in the console? Also, I removed all custom content and I still crash. UPDATE: Not spawning any bots has seemed to fix the issue? Could it be all of the explosions, projectiles, and bullets all in one small area thats causing this?
 
Last edited:

toxxicxmodz

L1: Registered
Mar 26, 2016
16
1
@Muddy Ok, test_room is my map name,so I went to SteamApps/common/TF2/tf/maps and deleted test_room.nav, launched TF2, loaded test_room, typed nav_generate, disconnected, quit to desktop, relaunch TF2, load test_room, add 11 bots, play for 20 seconds, crash. It appears this is not the issue.