Black Mesa: Fix all the things #1

Greetings my name is Johnathan aka Cpl.1nsane or Comrade Badger on steam, I joined the team in 2007 primarily as a level designer. So far since joining I’ve predominantly worked on the chapters Unforeseen Consequences and Questionable Ethics, the majority of that work went towards the second half of UC with the coolant labs & lower canal up to Office Complex and the first and last maps of QE. Intermingled with that I’ve dipped my toes into a few other areas with some texture creation but mostly creating particle effects, many of which are used throughout the mod.

So with that brief intro out of the way I’d like to tell you about some of things I’ve been working on over the past year or so after the initial release of the mod back in 2012. Following that launch I set out to gather and review the plethora of bug reports (which were very helpful!) that had been submitted on both our forums and the community created bug tracker and start to sift through and begin fixing as much as I could. I could not dare guess at the total number of things that have been fixed since then, but It’s a decent amount (150+ level related issues and improvements at least) and hopefully for the vast majority of cases it may only be small visual quips remaining rather than the more game breaking issues.

One such issue that had been reported related to the players weapons disappearing when transitioning between the end of Questionable Ethics and the first map of Surface Tension (bm_c2a4h to bm_c2a5a) The bug itself was caused by there being too much data in the area (in both maps) upon the player moving between maps which caused it to remove some entities in order to make space, in this case it was the players weapons. Ultimately the issue lay within the transition design itself (aka oops, I dun goofed when making it).

(you can click the images for larger versions)

In the original 2012 release version the tunnel section at the end of QE was present both before and after the transition which meant all of the models, decals and other assorted entities were being duplicated from bm_c2a4h to bm_c2a5a upon transitioning, this would continue to happen if the player transitioned back from ST to QE again which would further cause problems. To rectify this issue I elected to go with the simpler enclosed transition with a door closing behind the player at the end of QE creating an airlock of sorts. Once moved to Surface Tension they would only see a closed door behind them rather than the full section of the tunnel. This had Its added benefits In both reducing the map size and number of entities in bm_c2a5a and removing the quirk present in starting ST directly from the menu and being able to transition back to QE causing the player to see npcs that have yet to be triggered to spawn among other things. I also added some extra hard cover for the initial engagement the player has a the beginning of ST.

The player is still able to transition back to QE from ST but only if the player has come from QE and not loaded ST from the menu and has dispatched the near by enemies outside of the tunnel.

Transition before:

Transition after:

The difference in the fog between the before and after shots is due to the tunnel fog that was still active in the old transition, in the new one its only using the actual map fog from bm_c2a5a than than having the tunnel fog just for that small area.

I also fixed this really not noticeable or annoying bug, which I can go into more detail if people are interested.

Before / After

Gallery link for anyone that wants it.

If you have any questions related to the post, feel free to ask.

Huh. What was causing that issue in the pipes? I’d been assuming it was some spastic brushes on a fade-to-black effect, but that seems like Source would have to try pretty hard to break.

Also, thank you so much for those bits of cover in the ST intro tunnel. That part was a nightmare on hard.

Well this is interesting. Look forward to seeing more 1nsane if you’re willing to share.

I didn’t notice before crypt pointed it out, thanks for the cover in the corner there, that area is a bitch to deal with if you’re not quick on your feet.

Yeah the pipes was pretty much the only thing I noticed on my first playthrough, although later when exploring I ran into “going over the entity limit” so to speak…

Anyway, awesome news, all good to hear, I don’t mind some extra airlocks here and there as long as it doesn’t become like HL2 og xbox version. Jk excellent work. :stuck_out_tongue:

I love reading about bug fixing and how that’s accomplished.

Thank you, Cpl.1nsane.

Thanks for the update. Its always great to see that some bugs are being squashed. Especially happy for that cover, it was like a firing squad out there!

Just so you know the game crashes sometmes for me when I go through the pipe on the right.

That is the pipe on the right coming from the river into the new map. if I take the other pipe (left) it never crashes.

Yeah that door to surface tension had issues, You could load back to the old map far too easily by accident. Transitioning in to questionable ethics also in that underground bit also has a load back and fourth spacial annoyance. Loading back and forth by accident basically.

I think those pipes are models so it could be a light_origin problem but the weird lines on the pipes I’ve no idea what causes that.

The pipe issue was a mixture of things, mostly due to the models LOD kicking in way too early. The pipe section itself has models at either end with the connection between them being brushes, when the lower detail model kicked in it would clip through and show the brushes underneath.

To fix it I had to decompile the original hl2 pipe model and both change the scale of it a little and adjust the LOD distance in the QC so that it wouldn’t kick in quite as early.

More to come in the future for sure :freeman:

Thank you! I want more map before-after comparison pics :smiley:

Nice to see updates!

But keep in mind we actually see pics of the game in the new engine, not the old engine (I guess) or this are pics for the free version of Black Mesa and they not gonna show pics for the paid version!

Nice job fixing those issues, Cpl.1nsane.

Keep it coming, it’s great to hear about (and get to appreciate!) the work you all are doing. I’m eagerly (but patiently) awaiting the coming release!

So much updates. It’s underwhelmingly overwhelming. :smiley:

Good job Welsh, now fix even more of all the things.

Thanks for sharing. Really interesting stuff. Keep on nailin’ down dem bugs!

Founded in 2004, Leakfree.org became one of the first online communities dedicated to Valve’s Source engine development. It is more famously known for the formation of Black Mesa: Source under the 'Leakfree Modification Team' handle in September 2004.