Decompiling bsp maps

Discussion in 'Mapping Questions & Discussion' started by KaidemonLP, Nov 28, 2016.

  1. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    Is there a better program than bspsource or VMEX. Im asking because when i saved my map something went wrong and now its completley empty when i load the VMF file but i still have the bsp from the last export.
     
    Last edited: Nov 28, 2016
  2. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    Do you not use autosave?
     
  3. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    I do but everytime before i close i also manualy save.
     
  4. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    I mean, don't you have autosave files that contain at least something?
     
  5. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    Where woud theze files be? Do you mean VMX?
     
  6. MaccyF

    aa MaccyF Notoriously Unreliable

    Messages:
    913
    Positive Ratings:
    1,477
  7. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    By default, C:\HammerAutosave\. Note that these files have not .vmf, but .vmfautosave extension, and you'd have to manually edit the name to have a .vmf extension in order to get Hammer to load it.
     
  8. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    I re checked and i dont have autosave on.
     
  9. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    OK. It might be VMF having been written wrong way so hammer can't read it anymore. Might be an omited bracket or something like that, just because hammer had a chance to do that. You could be able to fix that, but I'm not sure. Could send the VMF.
     
  10. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    This site has a built-in upload system which allows vmfs IIRC
     
  11. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    OH sory here.
     

    Attached Files:

  12. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    No deal.
    The VMF seems to actually be empty and containing no information on what it has been. Probably, decompiling is what you do (or remaking the map). What is your problem with the decompilers you listed? Because that might turnout to be problems with the whole decompiling idea, as you can barely ever get a decompiled vmf to be half as good as the original. Or do they not work at all?
     
  13. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    I cant run BspSource and when i decompile with VMEX it says line 9962 unexpected end of file.
    I do have java installed.
     
  14. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    Here is the bsp if it helps
     

    Attached Files:

  15. Diva Dan

    aa Diva Dan hello!

    Messages:
    856
    Positive Ratings:
    1,464
    Open the vmf in notepad and add/remove a closed curly bracket to the very end. Sometimes the bracket count can be off, it happened to me. Make sure there are as many {'s as }'s. It might not fix it but it's worth trying!
     
  16. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,006
    Positive Ratings:
    1,160
    Unfortunately, this vmf was completely corrupted; the text file is nothing but a string of null characters now. As far as I know, there's no way to reverse this, so your best defense is to save new internal versions frequently (or whenever you make a major change or addition). Autosaves aren't as reliable, but there's no harm in turning them on too.

    I've attached a decompiled version of your map. Because of the way the compiler handles displacements, they're always rebuilt as 1u-thick brushes, so you may want to remake those for easier editing.
     

    Attached Files:

  17. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    Thank you. The map is in the same state as i left it!
     
  18. Vel0city

    aa Vel0city func_fish

    Messages:
    1,931
    Positive Ratings:
    1,540
    One good thing to remember in Hammer is this.

    Mash ctrl+s after ever change you make.
     
    • Funny Funny x 1
  19. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,006
    Positive Ratings:
    1,160
    Even the most frequent ctrl+s mashing won't save you from this bug. You could save a hundred times, and a random BSOD would still take out that vmf (yes, that's happened to me before). Having multiple copies of the file, or some other kind of accessible version history, is your best bet.
     
  20. KaidemonLP

    KaidemonLP L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    33
    Yeah because i always mash ctrl + s. Good thing that i now know that autosave exists thanks to crowbar.