Every Time I Try To Open My Map, It Crashes

Discussion in 'Mapping Questions & Discussion' started by Alaxe, Jun 17, 2016.

  1. Alaxe

    Alaxe L1: Registered

    Messages:
    14
    Positive Ratings:
    7
    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
     
  2. Nicky

    aa Nicky Lets try something new!

    Messages:
    912
    Positive Ratings:
    1,698
    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?
     
    • Agree Agree x 2
  3. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    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.
     
  4. Alaxe

    Alaxe L1: Registered

    Messages:
    14
    Positive Ratings:
    7
    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?
     
  5. Nicky

    aa Nicky Lets try something new!

    Messages:
    912
    Positive Ratings:
    1,698
    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.
     
  6. Nicky

    aa Nicky Lets try something new!

    Messages:
    912
    Positive Ratings:
    1,698
    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.
     
  7. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    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
     
    • Agree Agree x 1
  8. Nicky

    aa Nicky Lets try something new!

    Messages:
    912
    Positive Ratings:
    1,698
    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.
     
  9. Viperi

    aa Viperi not actually a snek

    Messages:
    962
    Positive Ratings:
    533
    If you're doing a reflect map, replace the crossbow medic with a soldier.
     
  10. Alaxe

    Alaxe L1: Registered

    Messages:
    14
    Positive Ratings:
    7
    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.
     
  11. Viperi

    aa Viperi not actually a snek

    Messages:
    962
    Positive Ratings:
    533
    I understand. But most Pyro's play dodgeball for airblast reflect training anyways.
     
  12. Gabe Noodle from Volvo

    Gabe Noodle from Volvo L3: Member

    Messages:
    142
    Positive Ratings:
    32
    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.