Page 1 of 11 123 ... LastLast
Results 1 to 10 of 109

Thread: Decompiler in C# with source for MOHAA

  1. #1

    Default Decompiler in C# with source for MOHAA

    In my old community we had only a single compiler that could decompile STEF2 maps.
    And it was a bit buggy, so I wrote the developer a Email and got a reply.
    Recently this decompiler was updated to also decompile MOHAA maps correctly, so I thought I share it here.
    I can't tell if there are any bugs left, as I don't really map in MOHAA.

    https://github.com/wfowler1?tab=repositories
    (removed attachment use github link)
    Last edited by chrissstrahl; July 15th, 2018 at 07:24 AM.

  2. #2

    Default

    Well, it's much better than the one I use, that's for sure.

    This one keeps caulk, no draw, and other utility textured brushes (e.g. triggers and clips) as well as normal brushes in tact.

    Still no static models and all brushes converted to structural but this is miles better!

    Thanks for this!

    Edit: seems some maps get a "Brace mismatch when parsing entities" and fails.

    Edit2: Oh, and it doesn't like LOD terrain and masked textures get changed to skip. But I'm still going to use it for sure.
    Last edited by 1337Smithy; July 14th, 2018 at 08:03 AM.

  3. #3

    Default

    I agree, this is a very precise and well done decompiler.
    The code speaks for it self, and it is open source on top of that.
    The creator is NOT arrogant or self-important, that is also a rare thing I have come to learn.
    So I give feedback and try to help out where ever I can to support him with his project.

    Can you tell me the maps (in pm please)
    Edit: seems some maps get a "Brace mismatch when parsing entities" and fails.
    Can you provide me more details or the maps (in pm please)
    The issue with terrains is known, the problem here is that there is no documentation how the terrain is stored in a bsp...
    Edit2: Oh, and it doesn't like LOD terrain and masked textures get changed to skip. But I'm still going to use it for sure.

  4. #4
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,036

    Default

    Thanks for the share. I remember I used a decompiler ages ago. It was called bsp2map but then there was another one called something like mohbsp2map. You linked github in your original post, but do you know the direct link to his page on github?

  5. #5

    Default

    Thats odd, I thought I did put in his repository, very strange, fixed it.

  6. #6

    Default

    Sent you a PM!

    Yeah, I used mohbsptomohmap.

    Funnily enough, with the use of this new one keeping the brushes pretty much intact and mohbsptomohmap which gives you the LOD terrain, you will be able to get a very stable .MAP

    Weird about the static models though.

  7. #7
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,547

    Default

    out best decompiler right now is openmohaa.

  8. #8

    Default

    what exactly is wrong with the static models ?
    I'll have to look at openmohaa

  9. #9
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,547

    Default

    btw, static models need no decompilation. They're in bsp file as raw text format. Just like the .map file afaik.

  10. #10

    Default

    They aren't present in the map when it's decompiled. In fact, I think with this decompiler their collision map remains but not the model itself. Like RyBack said they are stored as plain text. I used to load a .bsp up in Notepad and count them to see how many are used in the largest levels.

Page 1 of 11 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •