Bugs, Gameplay, Interface, Widgets, AI
February 7, 2024

Mex and geo building completely rewritten!

Much of this work was just under-the-hood work to improve some code, but players should also see a pretty substantial improvement to several mex and geo systems, like mex/geo snap, right-click build/updgrade for mexes, and of course area mex! Hopefully it should improve the behavior of Barb AI on some maps as well. Read on for more details!

author
Hobo_Joe
Last updated:
February 7, 2024

Mex and geo building completely rewritten!

In a recent release, all the code for handling how mexes and geos get built, upgraded, and shared has been completely redone - the bulk of this is under-the-hood changes to just improve the code for readability and maintainability, but there are 3 main things that you should see improvements to as a player:

  • Mex/geo snap (automatic placement on the nearest available spot)
  • Mex/geo right-click build/upgrade
  • Area mex

So what do these improvements give you?

  • All of these features should be more reliable overall and have fewer failure cases
  • All of these features now intelligently handle building obstructions, e.g. if the spot is partially blocked, it will search for any valid position on the spot that’s unobstructed
  • All of these features now handle mex upgrades AND sidegrades (e.g. t1 mex to exploiter, or exploiter to t2 mex)
  • All of these features now work on allied structures, and will share when upgrading any allied mex/geo
  • Areamex has received improved pathing to reduce walk time and will take mex value into account (watch this space for bigger improvements in the future)
  • Mex snap is now much more intelligent about snapping to upgradeable mexes, and can properly interact with the build queue
  • All of these features will handle builders intelligently, giving build orders to all the selected cons that can make the chosen structure, and make all other cons guard the “main” cons (I hope to make this a universal feature in the future)
  • Lots of other bugfixes to improve reliability and fix things like stuck building ghosts

But of course, big overhauls like this can easily introduce bugs, so please if you have any issues at all with these features bring a bug report to discord (and you can ping me, @Hobo Joe about them) so that we can fix them and ensure it’s stable in a short time frame. Enjoy!

More Images

More microblogs