Every Time I Try To Open My Map, It Crashes

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
 

nickybakes

You should've played Rumbleverse
aa
Jul 28, 2015
912
1,741
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,277
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?
 

nickybakes

You should've played Rumbleverse
aa
Jul 28, 2015
912
1,741
2. Is there a way to spawn bots with specific weapons such as a crossbow?
I don't believe Valve ever coded bots to use different weapons other than the stock ones. So I dont think you can have a medic bot use a crossbow.
 

nickybakes

You should've played Rumbleverse
aa
Jul 28, 2015
912
1,741
Also, I just noticed, your vmf has a capital letter in it. Only have lowercase letters, numbers, and underscores in a vmf (and bsp) file name. Probably isn't the reason why it crashes, but it will help prevent future errors.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
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
 

nickybakes

You should've played Rumbleverse
aa
Jul 28, 2015
912
1,741
When you asked about pawning puppet bots (bots that dont do anything unless you tell them), I mean't typing the bot commands in the console after you load the map in the game. Just seems easier in my opinion.
 

Viemärirotta

sniffer
aa
Feb 5, 2016
1,013
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,013
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.