Every Time I Try To Open My Map, It Crashes

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.
  • If you're asking a question make sure to set the thread type to be a question!
  • Something not downloading? Download authors read this.

Alaxe

L1: Registered
Jun 16, 2016
16
4
I just booted up Hammer Editor, and when I went to select my map save, it gets to 5% and then just crashes.

It was working fine yesterday
 

Nicky

Lets try something new!
aa
Jul 28, 2015
909
1,732
Were you editing entities before? As in typing anything in the properties for a certain entity? If you type quotation marks in any field in the properties for an entity, it can break your map file due to how VMF files are written. To fix this, you would have to open the VMF in a text editor, like Notepad ++, and delete the certain quotation marks. There is a chance that this isn't your problem though. Maybe send us your VMF and see if we can open it or fix it?
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,276
It could also be a brush that somehow got saved with invalid coordinates - in those cases, Hammer usually gives you a line number where it found those coordinates before closing. Deleting the affected brush(es) from the text file should allow you to open it again. If you're not sure how to do this, you can post your vmf and I'd be happy to take a look for you.
 

Alaxe

L1: Registered
Jun 16, 2016
16
4
Were you editing entities before? As in typing anything in the properties for a certain entity? If you type quotation marks in any field in the properties for an entity, it can break your map file due to how VMF files are written. To fix this, you would have to open the VMF in a text editor, like Notepad ++, and delete the certain quotation marks. There is a chance that this isn't your problem though. Maybe send us your VMF and see if we can open it or fix it?

I opened the .vmf in notepad++ but to be honest with you, I wasn't completely confident in my ability to edit it and not screw it up even worse. Ill just upload it. Thanks again for taking a look at it. Its my first map, a Pyro reflect training map, so there are probably going to be errors here and there.

I have 2 quick questions if you feel like answering them.

1. Why do some props such as computers, cosmetics, ambulances, ect not load in when it runs the map. Is there a way to tell which models i can and cannot use?

2. Is there a way to spawn bots with specific weapons such as a crossbow?
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,276
I went through the entire vmf and it turns out the problem is the outputs in your logic_auto. If you scroll all the way to the bottom, you'll see this entity class. Just delete the 3 lines in the "connections" block and the vmf should open again.
Code:
entity
{
    "id" "11681"
    "classname" "logic_auto"
    "spawnflags" "1"
    connections
    {
        "OnMapSpawn" "Servercommand,Command,bot -team red -class Medic -name Medic,3,-1"
        "OnMapSpawn" "Servercommand,Command,bot_command Medic "use tf_weapon_crossbow",3.1,-1"
        "OnMapSpawn" "Servercommand,Command,bot_selectweaponslot 1 Medic,4,-1"
    }
    "origin" "-169 -231.618 78.0022"
    editor
    {
        "color" "220 30 220"
        "visgroupshown" "1"
        "visgroupautoshown" "1"
        "logicalpos" "[0 500]"
    }
}
I've never worked with point_servercommands spawning bots, so unfortunately I don't know the correct outputs to use. At least with this information, you can keep trying different things until it works :p
 

Viemärirotta

sniffer
aa
Feb 5, 2016
1,015
590
If you're doing a reflect map, replace the crossbow medic with a soldier.
 

Alaxe

L1: Registered
Jun 16, 2016
16
4
If you're doing a reflect map, replace the crossbow medic with a soldier.

I was hoping to make a map for reflecting everything a pyro can reflect....but unfortunately, I dont think spawning them with different weapons is possible. So this map will have to remain unfinished.
 

Viemärirotta

sniffer
aa
Feb 5, 2016
1,015
590
I understand. But most Pyro's play dodgeball for airblast reflect training anyways.
 
Sep 10, 2015
142
39
I was hoping to make a map for reflecting everything a pyro can reflect....but unfortunately, I dont think spawning them with different weapons is possible. So this map will have to remain unfinished.

If you aren't heartset on using bots, there's this https://developer.valvesoftware.com/wiki/Tf_point_weapon_mimic. Which basically spawns a projectile that can have a custom speed, model, sounds, etc. But it has to be based on a projectile type in the game.