HomeGamesUpdatesPricingMethodology
Steam News18 January 20251y ago

Attach/Detach Fix

This one was hard to track down. I'm not sure how long it's been in the code, but it's ugly. Some really dumb coder made a typo a couple of times and never noticed it.

Full notes

Full Scourge Of War - Gettysburg update

Read the full published notes in a cleaner layout. The original post stays linked below.

What changed

0 fixes0 additions1 change0 removals
  • UI and audio
changedThis one was hard to track down. I'm not sure how long it's been in the code, but it's ugly. Some really dumb coder made a typo a couple of times and never noticed it. Since C++ basically lets you do anything, there were no obvious issues. That was until players started noticing the attach/detach problem and I would guess some other hidden issues. For those that are interested, I learn more and hopefully others learn more from mistakes.

Scourge Of War - Gettysburg changes

changedThis one was hard to track down. I'm not sure how long it's been in the code, but it's ugly. Some really dumb coder made a typo a couple of times and never noticed it. Since C++ basically lets you do anything, there were no obvious issues. That was until players started noticing the attach/detach problem and I would guess some other hidden issues. For those that are interested, I learn more and hopefully others learn more from mistakes.

This one was hard to track down. I'm not sure how long it's been in the code, but it's ugly. Some really dumb coder made a typo a couple of times and never noticed it. Since C++ basically lets you do anything, there were no obvious issues. That was until players started noticing the attach/detach problem and I would guess some other hidden issues. For those that are interested, I learn more and hopefully others learn more from mistakes.

When coding bit flags, which I use for different states of the units, I brain farted the wrong symbol.

flags &= !detachflag

Seems ok, turn off the detach flag, but that's not the correct symbol, that's a boolean, so it basically messes up every single flag stored.

The correct symbol, that was throughout most of the code was

flags &= ~detachflag

That gives the correct form to disable just the one flag. It's a really really stupid error with ugly results, because there are a lot of flags. I also saw the error in WL, but it's not as prevalent.

Thank you to everyone on the forums for bringing this to our attention.

Source

Steam News / 18 January 2025

Open original post

Changelog.gg summarizes and formats this update. How we read updates.