One of the issues with this appears to be an inability to reconnect. Is that something modding can fix? The inability to reconnect would unfortunately make this not very useful for tournaments.
Hmm... From memory reconnect works like this: 1) ask playfab "Am I in a game?" 2) Use that lobbyid playfab returned to get the ip : port of the server 3) reconnect If this is correct one needs to manage the steps 1 and 2 by hand. A first attempt to test if this assumption is correct would be to setup a server with spec-slots, have a player disconnect on purpose and try to reconnect by making the servers list show games that can be spectated or use the direct ip connect mod with your servers ip and port. If the server is intelligent enough to go "hey I know you! You're a player, there you go!" then my assumption is correct and we could build a little more code to have that "reconnect" button to show up.
https://forums.uberent.com/threads/wip-connect-buttons.65096/ First draft of reconnect last night; needs lots of testing, and I haven't really looked into how the custom servers enter the game, but it looks like they use connect_to_game, so I should be able to capture the info.
I do this to enter a custom server: sessionStorage['gameHostname'] = '"176.31.115.99"'; sessionStorage['gamePort'] = '53999';window.location.href = 'coui://ui/main/game/connect_to_game/connect_to_game.html';
I'm getting the following error when I start the server: [17:02:32.614] INFO GameServerImpl::resetModUpdateAuthToken: Auth token reset to "5e6f2bbb-f130-4f03-9e9f-468497d2cd7f" [17:02:32.660] ERROR Script error: SyntaxError: Unexpected token ILLEGAL at loadState (main:115:17) at Function.forEach (thirdparty/lodash:3297:15) at main:121:3 And apparently "sudo add-apt-repository ppa:chris-lea/node.jvims" doesn't work. was this meant to be "ppa:chris-lea/node.js"? EDIT: Got it working. Looks like I was using fancy quotes from the text editor. For anyone else with this issue, make sure you're using a a text editor that doesn't screw you over.
Yes, you can see a human readdable list of servers online here: http://planet.unfix.org/paservers/ As you can see most of them run an outdated version of PA and therefore are invisible unless you happen to use that old version of PA as well. I've updated the Opteron server, which is the one I manage. There seems to be something wrong with the ingame name, which is displayed as undefined, but apart from that it seems to work.
@fuzzels how often does the human readable version update? The server I updated for some reason is not displayed, even though it is in the plain json
Does somebody know a way to query infos like current sim fps, player count or unit count from the server? I had the idea to make nice Munin graphs out of this... I know there is a built-in http server, but i didn't managed to get anything useful out of it.
I don't think the server side api has that info right now. The clients send it to pastats.com though, unless they decide to disable that.
Thanks for noting. Apparently though the forum software does not seem to spam me thus I did not get a notice that way. Good that sometimes I peek in the forums though It is now at 74525. I've also updated http://planet.unfix.org/paservers/ so that it shows the location of the server based on the given IP addresss and what the RIR tells us about it.
As I mixed up PTE and stable build editions, I fixed that situation by doing the trick from the palauncher.go and fetching the version numbers from the uber server. Thus http://planet.unfix.org/paservers/ now properly shows which edition one is running and/or if it is outdated.
Btw, subscribing to https://forums.uberent.com/threads/build-tracking-thread-updated-when-it-is.51585 will let you receive updates of new versions being released. 76766 is now up and running. The other two which are listed are on 74525 and 73939. Maybe time to built-in an auto-updater into he beacon script that checks every once in a while if there is a new one...
That's a great idea, would make life significantly easier! My only concern is storing the password on the box. I was tempted to write a 2-bit website that you could punch in your login details, then trigger the update, etc but never got around to it.
It's only your playfab password anyway, isn't it? A copy of PA is 6$ during sales. The main issue with auto updates is that it is rather hard to automatically apply modifications to the server scripts.