Author Topic: 2.802 Multiplayer Steams Onward  (Read 7473 times)

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
2.802 Multiplayer Steams Onward
« on: April 16, 2021, 11:28:14 am »
New build! https://wiki.arcengames.com/index.php?title=AI_War_2:Finalizing_Multiplayer#2.802_Multiplayer_Steams_Onward

We briefly had a v2.801, but had to revert that because it had a couple of critical bugs.  The changes from that have been included in this new build, which runs great.

Overall this is just a laundry list of bugfixes and tweaks that people reported, but most of them are centered around multiplayer -- specifically on Steam.

Our dalliance with the Steam P2P networking framework is likely coming to an end, because that was incredibly unreliable and a lot of people actually had commented that other games had problems with it, too.  That leaves us with Steam Sockets, which is Valve's newer networking model, but it doesn't support multi-channel data, which causes a lot of slowdown for this specific game.

Thankfully, Steam Sockets does support multiple ports, so I've adapted it to use four ports as if they were four channels, and the performance is through the roof from that.  Additionally, we now support using Steam Sockets either in a relayed fashion (goes through Valve's network, which they say is faster than the general Internet backbone, but varies a lot based on where you and your friends actually live), or via a direct fashion (just connects you and friends directly, even across a LAN if need be).  The direct fashion is WAY faster in my experience, but it's slightly more of a pain to set up (host tells others their IP).

Badger also slew his own dragon, which was a way for the AI threat against the dyson sphere to turn against you unexpectedly.  It was actually a general memory leak that has been around since October 2019, as well, so this was really a great one to find and fix.  Not sure how much this may have been negatively impacting performance in some games.

The load game menu also now performs better when you have a really huge number of savegames or campaigns.  Previously it had an annoying delay when first opening.

Enjoy!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline ptarth

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,166
  • I'm probably joking.
Re: 2.802 Multiplayer Steams Onward
« Reply #1 on: April 17, 2021, 05:21:10 pm »
Exciting times. The changes are interesting. It does feel more involved than the last time I was able to play.

In my first revisiting game,  I'm ~3 hours in against 2xAI (Difficulty 7, Random (Quadratic, Something)). Most waves have been trivial and ignored (< 30 or so strength). However, I just noticed my first major wave at ~300 strength (vs combined 200 fleet strength). I was playing with a Raid Engine so the wave actually got up to 400 the first time I experienced it. I had 2 minutes to try to redeploy and deal with it, it didn't go well. Several save scums later and I was able to fight it off by using some pretty aggressive wrangling. (I consolidated control over a quadrant of the map which gave me another 4.5k metal/sec, 1M power, +40 strength fleet, and another Mark on my Ambush turrets. AIP hasn't crossed 100.).  So that was good. On the down side, the next wave is going to be ~600 (quadratic AI) and I'm out of AIP reduction. Next step seems to be accept the Mark II increase and claim some deep forward base worlds. I'll be able to restrict my open fronts to just 2 worlds, leaving the forward bases to burn. It should probably work. The metal cost and time to reposition/build the extensive turrets provided by the battlestations is pretty rough. The extra delay before they arrive will help with that.
Note: This post contains content that is meant to be whimsical. Any belittlement or trivialization of complex issues is only intended to lighten the mood and does not reflect upon the merit of those positions.