News for hackers. Stuff that matters.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by NoodleIncident on Friday December 13, 2019 @06:23PM (#21786560)
I don't know if "encapsulation" is the right word, but the "undamageable" state should definitely have included fall damage. No point in having more than one way to reduce health points, damage is damage.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by vvanders on Friday December 13, 2019 @06:42PM (#21786682)
I think you're giving a bit too much credit to game logic codebases.

They generally move at a pretty fast pace and change often(due to the iterative nature of what's "fun"). I don't think I saw a single unit test until I was well out of the game industry.

Re:The Outer Worlds: Fixing the “game thinks my companion is... by Filligree on Friday December 13, 2019 @07:48PM (#21787013)
My go-to exception for this has always been Factorio. They have not only unit tests, but integration tests, regression tests, fuzzers, performance regression tests, ....

Their blog regularly goes into details about how it all works. It's very much worth reading.

Re:The Outer Worlds: Fixing the “game thinks my companion is... by hhmc on Friday December 13, 2019 @08:11PM (#21787111)
Sure, but you have to acknowledge that factorio is incredibly amenable to those types of tests -- in a way that most games aren't.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by worldsayshi on Saturday December 14, 2019 @10:48AM (#21790054)
It seems to me if the physics engine and whatnot is deterministic I don't see why it wouldn't be possible to record input sequences and keep those and their effects as regression tests.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by Fargren on Saturday December 14, 2019 @01:27PM (#21791133)
Those tests can be written, but if you do it naively coverage is measurable and very small. And the physics engine is not necessarily deterministic (or if it is, you can't always control all it's parameters)
Re:The Outer Worlds: Fixing the “game thinks my companion is... by Filligree on Friday December 13, 2019 @09:29PM (#21787389)
True, but that's not really an excuse for having none at all.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by vvanders on Saturday December 14, 2019 @12:22AM (#21787974)
Hah, that truly is the exception.

It's been a few years but if I recall correctly we did have a "smoke test" running on a jenkins box under someone's desk that booted a few levels with most of the game entities(they were called danger_room_1/2/3/etc) and verified that the game didn't crash. Aside from that though there wasn't much else which lead to some spectacular build breaks.

Ah the joys of "AAA" development.

Re:The Outer Worlds: Fixing the “game thinks my companion is... by daseiner1 on Friday December 13, 2019 @08:42PM (#21787221)
So Factorio is well-factored? Nice.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by Baeocystin on Friday December 13, 2019 @09:13PM (#21787340)
The factoring expands to meet the needs of the ever-expanding factoring.
Re:The Outer Worlds: Fixing the “game thinks my companion is... by pantalaimon on Friday December 13, 2019 @08:26PM (#21787171)
But then your companion would still climb out of the map with no way to ever reach you again.