out of memory loading solid crash

Discussion in 'Mapping Questions & Discussion' started by basilhs333, Nov 1, 2016.

  1. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    what is this?
    when i open my map i get this and boom hammer crashes
     
  2. Viperi

    aa Viperi not actually a snek

    Messages:
    962
    Positive Ratings:
    533
    Google is love, Google is life.

    Anyways, that happens when you try to load a map with invalid solid structures, the only way to fix this issue and save the map file is either using an autosave or the best option, which the bloody thing. Open up a text editor, (Notepad for example) then find the line that Hammer specified when you tried opening that file, then after tracing the right line, delete the entire solid class in it.
     
  3. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    where can i find it?
     
  4. Viperi

    aa Viperi not actually a snek

    Messages:
    962
    Positive Ratings:
    533
    Same place, where you saved the vmf. It has the exact same name as the vmf file, but is a vmx file. After you fix it, you can create a copy of it and rename the end part to vmf. Basically the vmf is the file you can interact and access a lot with, when the vmx is sorta like the code responsible for the geometry you made with the vmf.
     
  5. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    ok so i see
    }
    solid
    {
    "id" "3"
    side
    {
    "id" "2333"
    "plane" "(-292.688 -169.52 -285) (-292.688 -141.523 -285) (-3.43295 -141.52 -391.276)"
    "material" "MEDIEVAL/WOODTRIM001"
    "uaxis" "[1 0 0 0] 0.25"
    "vaxis" "[0 -1 0 0] 0.25"
    "rotation" "0"
    "lightmapscale" "16"
    "smoothing_groups" "0"
    }
    side
    {
    "id" "2332"
    "plane" "(-293.59 -141.52 -286.842) (-293.59 -169.52 -286.842) (-4.33621 -169.52 -393.119)"
    "material" "MEDIEVAL/WOODTRIM001"
    "uaxis" "[1 0 0 0] 0.25"
    "vaxis" "[0 -1 0 0] 0.25"
    "rotation" "0"
    "lightmapscale" "16"
    "smoothing_groups" "0"
    }
    side
    {
    "id" "2331"
    "plane" "(-293.591 -169.52 -286.841) (-293.591 -141.523 -286.841) (-292.688 -141.52 -285)"
    "material" "MEDIEVAL/WOODTRIM001"
    "uaxis" "[0 1 0 0] 0.25"
    "vaxis" "[0 0 -1 0] 0.25"
    "rotation" "0"
    "lightmapscale" "16"
    "smoothing_groups" "0"
    }
    side
    {
    "id" "2330"
    "plane" "(-4.33466 -141.52 -393.118) (-4.33466 -169.52 -393.118) (-3.43259 -169.52 -391.279)"
    "material" "MEDIEVAL/WOODTRIM001"
    "uaxis" "[0 1 0 0] 0.25"
    "vaxis" "[0 0 -1 0] 0.25"
    "rotation" "0"
    "lightmapscale" "16"
    "smoothing_groups" "0"
    }
    side
    {
    "id" "2329"
    "plane" "(-293.594 -141.52 -286.842) (-4.3371 -141.52 -393.121) (-3.43359 -141.52 -391.277)"
    "material" "MEDIEVAL/WOODTRIM001"
    "uaxis" "[1 0 0 0] 0.25"
    "vaxis" "[0 0 -1 0] 0.25"
    "rotation" "0"
    "lightmapscale" "16"
    "smoothing_groups" "0"
    }
    side
    {
    "id" "2328"
    "plane" "(-4.33984 -169.52 -393.119) (-293.59 -169.52 -286.842) (-292.68 -169.52 -285)"
    "material" "MEDIEVAL/WOODTRIM001"
    "uaxis" "[1 0 0 0] 0.25"
    "vaxis" "[0 0 -1 0] 0.25"
    "rotation" "0"
    "lightmapscale" "16"
    "smoothing_groups" "0"
    }
    editor
    {

    so i see all those i should delete everything where Says
    from

    solid
    }


    }
    editor
    {
     
  6. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    ok i see what i should delete
     
  7. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    That solid is fine. The ones you're looking for have coordinates represented by 1.#QNAN or -1.#IND, which are fancy ways of saying "not a number." See this example:

    Code:
        solid
        {
            "id" "134"
            side
            {
                "id" "308"
                "plane" "(-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND)"
                "material" "SKYBOX/SKY_DUSTBOWL_01UP"
                "uaxis" "[1 0 0 132] 0.25"
                "vaxis" "[0 -1 0 123.104] 0.25"
                "rotation" "0"
                "lightmapscale" "16"
                "smoothing_groups" "0"
            }
            side
            {
                "id" "307"
                "plane" "(-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND)"
                "material" "SKYBOX/SKY_DUSTBOWL_01UP"
                "uaxis" "[1 0 0 132] 0.25"
                "vaxis" "[0 -1 0 123.104] 0.25"
                "rotation" "0"
                "lightmapscale" "16"
                "smoothing_groups" "0"
            }
            side
            {
                "id" "306"
                "plane" "(-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND)"
                "material" "SKYBOX/SKY_DUSTBOWL_01UP"
                "uaxis" "[0 1 0 -123.104] 0.25"
                "vaxis" "[0 0 -1 0] 0.25"
                "rotation" "0"
                "lightmapscale" "16"
                "smoothing_groups" "0"
            }
            side
            {
                "id" "305"
                "plane" "(-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND)"
                "material" "SKYBOX/SKY_DUSTBOWL_01UP"
                "uaxis" "[0 1 0 -123.104] 0.25"
                "vaxis" "[0 0 -1 0] 0.25"
                "rotation" "0"
                "lightmapscale" "16"
                "smoothing_groups" "0"
            }
            side
            {
                "id" "304"
                "plane" "(-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND)"
                "material" "SKYBOX/SKY_DUSTBOWL_01UP"
                "uaxis" "[1 0 0 132] 0.25"
                "vaxis" "[0 0 -1 0] 0.25"
                "rotation" "0"
                "lightmapscale" "16"
                "smoothing_groups" "0"
            }
            side
            {
                "id" "303"
                "plane" "(-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND) (-1.#IND -1.#IND -1.#IND)"
                "material" "SKYBOX/SKY_DUSTBOWL_01UP"
                "uaxis" "[1 0 0 132] 0.25"
                "vaxis" "[0 0 -1 0] 0.25"
                "rotation" "0"
                "lightmapscale" "16"
                "smoothing_groups" "0"
            }
            editor
            {
                "color" "0 205 194"
                "visgroupshown" "1"
                "visgroupautoshown" "1"
            }
        }

    Make sure you take out this entire solid class, or Hammer still won't be able to read the file.

    If you're not comfortable doing this yourself, feel free to post the VMF and I'll fix it for you.
     
  8. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    thanks very much so i should make a new download a send it to you?
    because i dont want to do anything that can destroy the map
     
  9. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    You can just attach the vmf to a post with the "Upload a File" button. Of course, since this is just simple text editing, you can back up your map by making a copy of it. Then you have something to roll back to if you make a mistake.
     
  10. MaccyF

    aa MaccyF Notoriously Unreliable

    Messages:
    903
    Positive Ratings:
    1,458
  11. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    when i try it says : The uploaded file does not have an allowed extension.
     
  12. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    VMF files are allowed. Are you sure you aren't trying to attach the VMX?
     
  13. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    there you are
    #i_am_stupid
     

    Attached Files:

    • Funny Funny x 1
  14. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    The 2 affected brushes will be missing somewhere, so all you need to do is remake them.
     

    Attached Files:

  15. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    still says like 39049 : error
     
  16. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    if it is a lot of trouble i have a copy of the map saved thats 2 days ago
    but that means a quite of work will be lost
     
  17. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    I'm no longer at my computer, but I did check that it loaded successfully before sending it back. Are you opening the right one?
     
  18. basilhs333

    basilhs333 L8: Fancy Shmancy Member

    Messages:
    575
    Positive Ratings:
    146
    anyway we can't seem to find the solution so i am going to add everything again for the past 2 days that should be ok also thanks a lot man for your time! i really appreciate your help i hope you have a fantastic day
     
  19. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,003
    Positive Ratings:
    1,155
    The fixed file I attached has an extra underscore at the end so it doesn't overwrite your own copy. Did you accidentally reopen your corrupted copy instead of the fixed one?
     
  20. ibex

    aa ibex

    Messages:
    255
    Positive Ratings:
    368
    I downloaded the file @killohurtz posted and it loaded fine for me.