Invalid solid removes every entity from map

Discussion in 'Mapping Questions & Discussion' started by Tom Hoen, Jun 29, 2012.

  1. Tom Hoen

    Tom Hoen L6: Sharp Member

    Messages:
    320
    Positive Ratings:
    245
    Invalid solid removes every entity from map [FIXED]

    I'm near to release beta 2 of frostfell and now I've hitted a new obstacle. When I load my map it says it has 2 invalid solids. So of course I let the hammer to delete them and save the file. After this hammer crahses and I try to reopen the file. On reopening this saved file I get the error:

    Orphane objects were found and placed into the "_orphaned hidden" visgroup.

    Clicking OK reveals that it has lost all Entities from the map.

    I think I could prevent this orphaned objects part if I could locate the 2 invalid solids from original file. Any idea how to find these? Or should I do something else?

    ------------

    SOLUTION that worked for me:

    I realized that the hammer will fix the invalid solids no matter if it crashes so I downloaded a program that can compare two separate files and tell the differences. I knew that my invalid solids were the ones in skybox I created yesterday and with transfering data from file to file I could pinpoint the error causing lines. Using WinMerge to compare the files I noticed that almost all the lines were couple of rows off so I could search the missing rows. I copied 135 540 lines and pasted them over 146 507 lines. This seemed to fix it and opening the new edited file I noticed half of my skybox was moved to "orphaned visgroup" so I just deleted it as it wasn't needed anymore (it was just for reference).
     
    Last edited: Jun 30, 2012
  2. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975
    You have to look back through the autosaves and hope one works. Really nasty bug that's been popping up lately.
     
  3. Tom Hoen

    Tom Hoen L6: Sharp Member

    Messages:
    320
    Positive Ratings:
    245
    Oddly I only have one autosave which has been overwritten everytime hammer autosaves, so all my 4 other autosaves are from over 2 weeks back when I started doing beta 2. This one autosave has also this same problem so I can't rely on it.
     
  4. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975
  5. Spacek531

    Spacek531 L4: Comfortable Member

    Messages:
    162
    Positive Ratings:
    60
    If you are using windows 7 or (maybe) windows vista, there is a file rollback system that sometimes works.
     
  6. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,901
    I haz solution

    Turn everything except entities off in a version very similar to your current one.
    Turn grid to like 64x64 or higher.
    Surround all the entities with a skip brush, put origin of the skip brush (IN ALL DIMENSIONS!) at the 0,0,0 location of that map.
    Copy that.
    Load up the broken map that doesn't have entities.
    Paste in this, align the origin of the skip brush up with the origin in the current, broken map.
    Delete skip brush.

    You should now have all the entities back in the proper place.
     
  7. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,870
    Positive Ratings:
    1,130
    hit alt p that usually finds the invalidsolids i think
     
  8. Tom Hoen

    Tom Hoen L6: Sharp Member

    Messages:
    320
    Positive Ratings:
    245
    Properties of my b2 file says there isn't any previous versions to rollback.

    This will be my backup plan if everything fails. I won't do it just yet because I'd lost all props from blu side, some from red and my entire skybox.

    Yes it does, but I can't load the map so I can't hit alt+p.



    Thanks everyone but I'm still looking for solution, keep them coming.
     
  9. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,870
    Positive Ratings:
    1,130
    i do hope you have tried not letting hammer delete invalid solids

    after hammer made my whole map dynamic brush i never allow him to delete invalid solids on mapload
     
  10. phi

    aa phi For Whom The Sorrows Sing

    Messages:
    786
    Positive Ratings:
    1,479
    I had this happen to me a bit ago aswell.
    I resorted to the skip brush technique because I didn't have an autosave or any rollback data.
    Crash said something about loading it in an older version of SDK in my thread though - http://forums.tf2maps.net/showthread.php?t=19353
    I'm not exactly sure how that works though.
     
  11. Pocket

    aa Pocket func_croc

    Messages:
    4,480
    Positive Ratings:
    2,212
    The entity-deletion bug has been present since at least the artpass contest (it kept happening to me because of the rotated shed by BLU spawn), but the thing where it crashes if you tell it not to fix anything is relatively new.

    Frankly this looks like one of those things we need to demand Valve fix.
     
  12. Tom Hoen

    Tom Hoen L6: Sharp Member

    Messages:
    320
    Positive Ratings:
    245
    After good sleep I have finally resolved this issue.

    I realized that the hammer will fix the invalid solids no matter if it crashes so I downloaded a program that can compare two separate files and tell the differences. I knew that my invalid solids were the ones in skybox I created yesterday and with transfering data from file to file I could pinpoint the error causing lines. Using WinMerge to compare the files I noticed that almost all the lines were couple of rows off so I could search the missing rows. I copied 135 540 lines and pasted them over 146 507 lines. This seemed to fix it and opening the new edited file I noticed half of my skybox was moved to "orphaned visgroup" so I just deleted it as it wasn't needed anymore (it was just for reference).

    Thanks everyone for your ideas. Hopefully someone finds these helpfull.
     
    Last edited: Jun 30, 2012
  13. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,031
    Positive Ratings:
    3,975