The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

Categories

  • Announcements regarding our community

    65 Topics
    142 Posts
    Brutus5000B
    Ho, ho, ho everyone. Tomorrow large parts of Europe fancy St. Nicholas. And I hope you got out your boots out already, because he will be bringing presents. But is it really St. Nicholaus? Or is it Santa Claus? This ancient debate will never be settled, but this time... it's neither, because: [image: 1796499623798-ac79e5b9-c872-454c-a770-d2b957dfa496-image.png] Why are we still riding this dead horse, you might ask? Actually there's 2 reasons. The faf-pioneer, the designated replacement of the java ice adapter unfortunately showed not the massive improvement we were hoping for. Users complain about lags, connection issues or WebRTC generally not working in Russia. So we would be trading one issue for the other. With the power of Claude, it is easy to make any changes to the ice adapter. But there was absolutely no way to verify whether things actually improve. Enter the little helpful elves from the Curtin University in Australia. Organized by @legendofthestars we kicked of multiple FAF related student projects, that all have been finished by now. Next to a new clan management solution (still to be integrated) and the new FAF user control panel (still to be advertised), the hardest project was the FAF test harness. This project created an application that behaves similar to the Forged Alliance game in terms of network connectivity and allows setting up scenarios like lost connections, packet loss etc. Finally we had the capability of testing the ice adapter and a larger scale and as a result, I throw Claude at it to built a large battery of close-to-real-world tests. As a result, Claude identified 3 confirmed bugs in our underlying ice4j library ([1] [2] [3]) - one of them causing a DDoS-alike pattern against our own servers. So what did we change? Claude wrote you a summary! Connecting at the start of a game One lag spike at the start could cut you off from the relay servers for the whole game. When the adapter starts, it measures the ping to the relay servers and ignores the "slow" ones. A single spike at that moment (map download, Wi-Fi) or simply living far away could get all of them ignored. Anyone you could only reach through a relay then never connected. Now the relay servers are always kept as a fallback. Blocked ping slowed down connecting. If your network blocks ping (some routers, firewalls, countries), the adapter waited up to 4 seconds for an answer before starting to connect. Now it waits at most 1 second. A slow TURN server could stop you from connecting at all. The adapter waited only 6 seconds for the other player's reply. Under heavy server load or on a slow line that wasn't enough, and the adapter retried forever without ever connecting. Now it waits longer (up to 24 s) when replies are slow, and goes back to quick retries once they're fast again. PCs with many network adapters connected slowly. VirtualBox, VMware, Hyper-V/WSL, Docker or Bluetooth all add "virtual" network adapters. With enough of them, the first connection attempt to every player failed, costing about 18 seconds per player. Now the adapter skips adapters that belong to virtual machines, containers and Bluetooth. VPNs that players connect through, like Radmin, Hamachi or ZeroTier, are still used. The log lists every adapter and whether it was used or skipped. The new option --all-network-adapters turns the skipping off. (Needs to be added to the client yet) During the game One hiccup kept you on the relay server for the rest of the game. After a short disconnect, every reconnect attempt used fewer connection types, until only the relay was left, even when a direct connection would have worked again. Now each reconnect tries everything again and goes back to a direct connection when possible. Reconnects that could never succeed. After a failed attempt the adapter sometimes sent the other player an empty list of ways to reach it, so the reconnect was doomed. That can no longer happen. Silent dead connections between dual-stack players. With both IPv4 and IPv6, the adapter could send game data down a different path than the one both sides had agreed on. The other side threw that data away, the connection looked dead and didn't come back. Now game data always goes over the agreed path. Garbage data sent to the game. During a reconnect, a leftover chunk of old data could be passed to the game, which caused "message too long" errors. Fixed. Broken ping display. A malformed packet could mess up the adapter's latency measurement for a player. Now such packets are ignored. Lost connection to your own game. In rare cases, such as an error while reading from the game or the game being restarted, the adapter quietly stopped passing your game's data on while everything still looked connected. Now it handles this properly. Faster detection of a dropped player (configurable). How long the adapter waits before declaring a silent player "gone" (10 seconds by default) can now be set. That's the time everyone else is frozen before the game offers to continue without that player. Starting and closing The adapter kept running after you closed the client. It sometimes didn't notice that the FAF client was gone and stayed in the background. Fixed. Crash when the client closed while a game was starting. The adapter's info window crashed instead of showing up. Fixed. Smoother handling of relay servers. An update of ice4j, the connection library underneath, fixes a freeze when closing connections and stops endless retries on relay-server errors. Closed games now release their slot on the relay server right away instead of keeping it until it times out. Behind the scenes Most of these bugs were found with a new test lab. It simulates players behind different home routers, mobile carriers and strict networks, with lag, packet loss, disconnects and changing IP addresses, in lobbies of up to 16 players. This lab now runs automatically on code changes, so these problems shouldn't come back unnoticed. How good will connectivity get? Unfortunately I can't promise you anything. I had my machine running ten thousands of connection tests for many many hours. But it's only virtual machines on the same machine where the network is not flaky. However, the errors that we already found were real. So there should be some kind of notable improvement at least. So how/when will you get it? Here's more good news: If you are on the latest FAF client, it automatically pulls the latest ice adapter for you. No more bundling of FAF client releases with ice adapter releases. So how will we continue from here? The ice adapter is still a stinking pile of architectural garbage that nobody wants to touch. But now we can finally test things and avoid making thingd worse as some release in the past did. This hopefully the game changer we were waiting for. The pioneer will not die. Due to architectural reasons its the only way Galactic War can work right now. But we might try to merge some approaches. The first step there is to migrate this new testing capabilities to the Go side of things. The ice adapter might be massively refactored with Claude. But improving connectivity first was the more important task for now. We also might add new telemetry, logging and debugging features in the near future. (For example the pioneer can upload logs directly to the FAF servers - a very powerful feature). How can you help? Give feedback! (We will open a general feedback thread in the general forum soon) With Claude we finally have unlimited capabilities to actually read the logs! Before that it was basically impossible. So if we have some tester groups here that play together and encounter connectivity issues, then send me logs from all players!
  • The real competition starts here.

    276 Topics
    7k Posts
    StrydxrS
    https://discord.com/channels/197033481883222026/1578721430080725123 Discord forum is made, incase you need to contact me!
  • 473 Topics
    5k Posts
    N
    Enforcing compatibility is possible through the "required" uuids table in modinfo, but it being by uuid instead of semantic versioning or mod name breaks it upon mod updates, so nobody uses it. This was one of the reasons for ReUI being created. For updates I think he means replacement mods uploaded by a different author. You should instead contact vault team (discord #vault-support is the only private method?) to hide a broken mod that has been fixed by another (for example the no friendly fire mod had this done). You can also ask them to hide mods you uploaded.
  • A place to talk about whatever you want

    2k Topics
    27k Posts
    T
    How a Facebook notification led to a two-byte fix for a 2013 FAF replay (TL;DR below) To regain my sanity, I need to share a story. A story of suffering, determination, token spending, and, eventually, a huge victory. It all started with a somewhat cringey Facebook notification. “Celebrate 10 years of friendship with speed2!” I sent him a screenshot, and he responded by finding the oldest game we'd played together. Game #878280, from May 2013. [image: 1796510522727-b734dae9-73d6-4af7-a80a-fe021f7eec51-image.png] Of course, that got me curious. I opened the client to download it. The replay vault I could access only went back about four years. What a bummer. I couldn't let this slide, so I messaged Nuggets. He had the old replay backup. Surely it was in there somewhere? Even the one and only Nuggets came up empty on that ID. Disappointment in the air was measurable. But I had one last trick up my sleeve. In a drawer sat my super old, rusty laptop, untouched for ten years, waiting for one final Rohirrim charge. And it delivered. I found my old replay backup! What a win, right? So I launched the replay, full of anticipation on how poorly we played 13 years ago. [image: 1796510576055-23edd07a-dafe-4868-85d2-672906eb2ced-image.png] And boom… DESYNC. Less than a minute in. Disappointment levels went off the charts. I went to sleep. Nightmares followed. In them I kept waking up screaming… DESYNC! At this point, it was personal! Somewhere in that half-awake state I thought, this has to be fixable, right? We have source code. We have forum posts. With all this technology nowadays. There has to be a way. So the next morning I fired up my buddy ChatGPT and, on speed2's advice, typed “please fix replay no mistakes.” It has since learned rather more about March 2014 than either of us planned. What “please fix replay” turned into: Step 0: How does a replay even desync? “It’s just a set of orders, right?” Mostly. The engine runs those orders again and compares its simulation checksums with values recorded during the match. A different map, a missing sim mod, different game data, or a different engine could send the simulation off course. I wondered about recording bugs, players leaving, and lag too. Where do I even begin? When I leave out a few dead ends, this is how my line of thinking went: Step 1: Different setups. I tried two FAF clients, tested on another PC, put together an offline setup, compared map files and game archives, and checked which files the engine actually loaded. I tried turning off sound, movies, and UI mods. The desync kept coming back. Step 2: Give the desync a number. In #878280, all eight players had recorded the same checksum at tick 400, or 0:40. The recorded checksum started with 1a793309. Mine started with e73c8350. Now I had a number I could test every idea against. Nuggets sent over some other archived recordings, so we compared server copies with local ones and dug through orders and player departures around the first mismatches. Somewhere in there, a little tool I called FAF Replay Lab came into existence. It grouped old replays by patch and batch-played them at +10 in a window. Supreme Scoreboard caused a separate freeze. Disabling it got the batch moving again. One of those replays, #2016286, looked vanilla from its empty sim-mod list. Then I checked the featured mod. It was Nomads, and the replay asked for v46 of its gameplay archive. The old updater catalogue calls that file Nomads_b46_FAF.nmd. The list I got for v46 showed the init script and movie archive. We recovered the matching gameplay code from an old Mercurial snapshot, rebuilt the mod, and that replay got past its desync. One win! Still no #878280 fix in sight, though. Step 3. The devil, patch 3630! In one batch I had 13/13 desyncs on 3625, 15/17 on 3629, and 0/6 on 3630. Surely I was close now, right? We rebuilt a game archive from the old 3629 source and swapped groups of changes around, including Hotbuild, GazUI, mex rebuilding, the economy panel, and terrain. On our 3629 test replay, the first bad checksum stayed exactly the same. C’mon. Same tick. Same checksum. 3629 source revision Step 4. The version numbers get suspicious. I changed the headers of two 3629 replays so they'd load with the archived 3630 setup. Same bad checksums. I tried the reverse too. A 3630 replay matched its original checksum at 5:00 when run on the archived 3629 setup. Then we compared the replay EXEs byte for byte. The two binaries differed in just three bytes, all encoding the version number. An updater log from February 2014 also showed an EXE hash different from the one in today's archive. Time to look at the engine itself. February 2014 updater log Step 5. The golden forum post. I’d seen one line about improved late-game pathfinding in the 3630 patch notes and moved on. On a second trip through the archive I found a January 2014 thread by Crotalus about units that stopped responding to orders in big games. He named an engine setting called path_ArmyBudget, the amount of pathfinding work each army gets per simulation tick. He reported a default of 1000 and suggested trying 3000. 3630 patch notes and Crotalus’s “Unit command lag fix” thread Hm… worth a shot, right? The archived replay EXEs we were using had it set to 2500. FAF's published binary patch also let us recover the 1000 initializer from an older Steam build. A different budget can change which tick a unit gets its path, so the same recorded orders can lead to different positions. Archived FAF binary patch Step 6. Change two bytes. I kept the replay and game data the same between runs and changed the default in a copy of the EXE. On the archived 3625 binary, the value at file offset 0x7D9B89 went from C4 09 00 00 to E8 03 00 00. The actual test was whether the engine could compute the original checksum at the tick where playback first went wrong. On #1906432, both runs with 2500 and the run with 3000 produced the same bad checksum at 1:30. With 1000? JACKPOT! The engine computed the exact original checksum. We tried the same change on two more replays. [image: 1796512356185-002e0eb8-da64-441b-bff6-de4b2a72f050-image.png] Then I let my original replay #878280 run with the 1000 EXE. It reached the match result at 13:40 without a single desync warning. After nearly a month of trials, a worrying number of tokens, and what felt like forty rebuilds of the same game… a VICTORY! Hope you enjoyed my little story wanted to write this down so nobody in the future will have to investigate this further, but made it a little more fun in the process Thanks to speed2 for finding the game. To Nuggets for digging through his archive and sending comparison replays, and to Crotalus for writing down that number in 2014. I finally got to see how the match ended. TL;DR Restoring path_ArmyBudget = 1000 in a copy of the archived EXE reproduced the original checksum at the first mismatch on three replays from FAF 3614, 3625, and 3629. My 2013 replay #878280 went from desyncing at 0:40 to reaching the match result at 13:40. The Nomads replay #2016286 took a separate fix. It played after we rebuilt the matching v46 featured mod. How far either fix reaches is a story for another day. A little program that fixes old replaying: G Drive Download Correct old EXEs: Corrected old EXEs G Drive Link Now, any historian can watch replay number 100 000 again and witness T1 mex sniping with 3 TMLs Replay 100 000 G Drive Link I will report this as a bug, hopefully someone will find a little time to fix it for everyone… even though the usage is quite limited due to FAF replay vault not loading replays that are this old anyway.
  • 3k Topics
    16k Posts
    G
    Hi, need some help please. stuck on connecting when trying to join a game and same issue on hosting. Stuck on connecting screen IPV6 is disabled No VPN Added below exceptions to AV C:\Program Files\FAF Client C:\ProgramData\FAForever
  • For people who want to add more stuff to FAF

    627 Topics
    8k Posts
    K
    Hi is this still being worked on ? The Moddb page shows no progress or file to be downloaded ? I'm really looking forward to this mod. Thanks.
  • A readonly copy of our previous forums on phpbb3. (Not all uploaded files are available.)
    Search only via google using the site:forums.faforever.com option.