@utopian When I play with my friends, we all connect to the same VPN Server, in order to get a direct p2p connection over this single server. Kind of like our on relay node. All the traffic gets routed over this server, yet some of us get a german flag, some get a dutch. We also thought this is weird, but that cloudflare thing explains it.
Posts made by rigomate
-
RE: Looking for feedback on whether people perceive more or fewer connection problems
-
RE: Looking for feedback on whether people perceive more or fewer connection problems
@brutus5000 said in Looking for feedback on whether people perceive more or less connection problems:
Internet service providers do weird things like shared ipv4 addresses between multiple customers and other fucked up stuff. So while IPv4 is in general more stable, there might be cases where ipv6 is the only option.
Technically speaking: IPv6 should be more stable, in theory that is of course.
Imagine that 2 peers whom both are behind CGNAT do get a server reflexive, or peer reflexive connection. Holes have been punched, connections are made, all is good. But then one of the CGNATs do some of these "fucked up stuff" like dropping the connection from their routing table, or whatever crazy thing (remember, thousands of folks share the same public IPv4 Address, and there are only 65535 ports to go around for them). Now the connection is lost. New holes need to be punched, the STUN server needs to get busy again for coordination, etc.
On the other hand, if both peers connect using IPv6, they get a direct end-to-end connection which needs only be routed, where the likeliness to mess it up is really slim. There are possibly only 2 router firewalls involved, which can make complications.
My experience with the enabled IPv6 support is actually very positive.
I made some logging modifications to the java ice adapter to see whenever I had an IPv6 connection realized with other peers.I would actually suggest to make that option the default, and users would need to actively opt-out.
I think the world is now ready for IPv6. -
RE: Access ArmyBrain in mod
@jip
Ok, the pull request is there and ready.https://github.com/FAForever/fa/pull/4789
Thanks for your help, this had been fun.
I never did even a single line of Lua before.But I have to say, Lua is cool.
Cheers!
-
RE: Access ArmyBrain in mod
Wow, that would be very cool.
I was wondering also about this solution, but was not sure I could recommend something that would introduce changes into the core of FAF.I might even do it myself. The dev process is well documented.
I will come up with a pull request in the future then.If I get stuck on the way I will seek help.
Cheers!
-
RE: Access ArmyBrain in mod
Ok, I did some digging.
Surely the ArmyBrains can only be accessed if I were to use a mod, which is not a ui_only mod.Hence my Idea: if a fellow streamer were to modify the fafreplay file saying to run it with a patched version of SupremeScoreBoard, which is patched to be a sim mod, and that has access to the armybrains.
Then the replay would still be replayed just as it was played (not causing desyncs), because the armybrains is only read, and never modified. Right?This might be an ugly way to do it, but hey it should work, I guess.
-
RE: Access ArmyBrain in mod
Hi Jip,
Thanks a lot.
So this would explain why for example the Phantom X mod has access to the ArmyBrains global variable, because it is not a UI mod?
Because I guess if I UI mod would have access to ArmyBrains it could influence the game simulation.
In the end what I am trying to do work out, is how to fix Hussars Scoreboard Kill notification.
https://github.com/FA-mods/SupremeScoreBoardWhat broke the kill notification is basically this change in the FA Core.
https://github.com/FAForever/fa/pull/4016Earlier the DoGameResult would receive also the score results, after the change it is only the defeat.
So the Scoreboard UI mod does not know anymore who performed a kill, it only knows an ACU was defeated, hence it always shows that a ctrl+k happened.
So I wondered how I could get access to the kills information. This is why I wanted to read out the Armybrains, because it seems this info could be extracted from there.
Cheers!
-
Access ArmyBrain in mod
Is there a possibility to access this function: GetArmyBrain()
from inside a hook of a mod, when running a replay?
GetArmyBrain() returns the ArmyBrains global variable.
No matter how I try, I get error messages saying that I can not access that global variable or function.Any pointers would be appreciated!
Cheers!