-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to host more than 1 match consecutively if an achievement is obtained #36
Comments
Hello: Yeah I agree the TLS error is kind of misleading but it is how the launcher tests first if the connection works (host mapped correctly) without checking the certificate, and then the ceritificate is checked. |
Also, as it is a self-signed certificate the browsers are likely not to trust it and that is expected too. |
it happens to me also but not very common. The issue I am facing that could be related to it is after playing the LAN game the first time, I (or my friends) am able to re create the lobby, but when I invite my friends or when they try to join the lobby, they get an error. All of us then have to restart the game. I'll post the screenshots and other shortly. |
@luskaner yes it does. |
@KalaRaja alright will look into it It would also help - if you can consistently repeat the issue easily - to test the latest of 1.0.X, 1.1.X and 1.2.X to see if it is a bug that did not occur originally. |
so this is the server log that I got When my friend tried to join my lobby for the second game but failed with an error - I'll try to test other versions @luskaner
|
@KalaRaja I've compiled a build that resolves that specific error, please test it and tell me if joining a 2nd lobby still fails (and/or if the error persists) :) |
@luskaner i'm going to try today with 7 of my friends. EDIT: So now i am able to successfully create lobby after the first match but other players cannot see my lobby and they do not get my invitations either.
|
Hello: Thanks for reporting back. It seems that while I fixed the bug, there is still the root problem which looks like to me that the previous lobby stays created but without anyone inside, thus creating more errors. Try this compilation that hopefully fixes the issue completely =) PS: Please share the server log like @MaMo7x did initially. aoe2DELanServer_server_1.3.4_linux_arm32.tar.gz |
@luskaner i'll try today in the evening. Here are the logs that you asked - |
So it seems it's half solved . . I'm able to start the match close it early (under 10 mins or so) and able to host the game again. But, if the closed connection is called
and I have to click reconnect to server then I'm unable to host the game, and if I only restart the game and not the server it works! |
@MaMo7x mmm maybe we are in the right direction... It would be helpful if you could provide the access log corresponding to that, thanks. |
Also, @KalaRaja I would like you to test something too, When in a lobby with 3 or more people, if the host leaves the lobby does the match gets cancelled or is there anyway to transfer the host of a lobby? |
@luskaner when the host quits the lobby while in a match, the match continues. There is no way to go back to the lobby once the match ends. The re-match option just starts another match but does not take us back to the lobby. |
@KalaRaja I meant before starting the match while in the lobby, it seems weirds to me that it gets cancelled (even when server is not lan) when the host leaves. |
|
@luskaner yes, after the host quits the lobby, other players are kicked out. |
our firewalls are off both for public and private networks. I turned off CanBroadcastBattleServer on every PC's launcher config. We all have only one network interface with 192.168.4.xx IP. Facing the same issue. |
@KalaRaja If you check with the previous unstable (this issue's releases) and stable 1.3.2 version, does it happen there too? |
yes it happened to me with all versions but resolved after restarting the server and restarting my friends launchers. With the 1.3.2.mod.3 version, no matter what I do, my friends cannot join (I can re-host after the match though). In fact, my first ever comment on this Issue was related to players not able to join the lobby intermittently, I didn't even know there was a bug where we cannot host after the first match. |
@MaMo7x your issue seems to be related with achievements, if you look the access_log you will see a spam of 'grantAchievement' the server will not authorize them to avoid cheating (maybe it should?), can you try making a match of any type, and surrender fast so you don't win any achievement at all? you may try doing exactly the same with the live server and then repeating the same so you don't win an achivement on the local server. You can then check it worked if in the access_log there is not a single 'grantAchievement' |
@KalaRaja Indirectly there are some bugs which might prevent re-hosting, (and one more issue was reintroduced in an unstable version posted here) the thing is, you both and @MaMo7x have different issues that may end up with the same outcome if that makes sense. have you provided the logs for the last version and your friends unable to join? |
@luskaner here are the logs and i have emailed you the password |
@KalaRaja thanks |
@KalaRaja as stated, the issue of your friends unable to join the game is not related to the server per se, the game has another server called BattleServer. There is nothing the server can do to make that work, the launcher includes a fix that helps in some situations (or may hinder in others idk). It is an issue with the game itself, as you can see, even the game developers include a link to help solve the issues. The same config I stated before, your friends can also change that to see if it helps. PS: as you said, is also not related to this issue either. |
nice. Then I guess if I get it working, all of my issues will be resolved. Thanks. |
@luskaner My raspberry pi pi-vpn was enabled that was causing some problems. I can create lobby and my friends can join now. Even hosting after the first match works. Looks like my issues are resolved. I'm going to try to play for more than 1 hour and verify if re hosting works. |
@KalaRaja oh perfect, that makes total sense, I hope it works, but as per Mamo7x report you might encounter issues if some player gains an achievement ;) |
so far it's all good at my side. if I encounter problems I'll post logs. |
Ya, I tried and your logic seems to be true. But it shouldn't be an issue to allow all achievements when and if I'm using custom launcher. What do you say? Or don't return 200 on grantAchievement? I hosted 3-4 times resigned with no achievement and re-host seems to be working fine. Then, I hosted another game played whole match and couldn't rehost. Looking at the access_logs I could see the spam of grantAchievement on it this time. |
@MaMo7x that's right if using a custom launcher I think even if the server allowed it, the client could not really claim it anyway - however the server has no knowledge if the client is using a custom launcher or not - good suggestion will try changing the http status code, the issue is reproducing it as I need to do something that makes me win an achievement |
so here are the logs from 1.3.2.mod.3 that have some achievements and lobby failed to create after the first match. EDIT: @luskaner oops I didn't upload the logs and deleted it later on my machine. It had bunch of grantAchievements requests. Anyway, I'll test the new 1.3.3.mod.1 |
@KalaRaja ok, better just go ahead with testing with v1.3.3 and any possible mod based off it. One thing I forgot is that this modded version with not produce the requests.json so just ignore it =) |
About the 1.3.3
Today on v1.3.2mod3 when I left the game during match other's match just stuck . . . haven't tested it completely but it happened. |
@MaMo7x yeah I think that was possible, but let's see how the current version works for you for any further fix. To not make this issue about everything, please create another issue if it's not related to the achievements :) |
@luskaner So, I hosted the game with AI (cause my brother is gone now for studies I'm basically alone), and I got achievements and couldn't rehost. I tried restarting the client (not the server) got error: |
@MaMo7x Mmm you sure you tried the modded v1.3.3 and not the base version? should not happen... 🤔 The relevant log part:
at no point is the server notified the first match ended, so it will not let the user host another... the user must do /game/advertisement/leave after the first /game/advertisement/host Edit: these are actual the 2nd and 3rd call to /host, there are multiple login/logout so it's difficult to determine the actual issue, but looks like it's the achievements again :(. |
@luskaner Could not create the lobby after the first match. 1.3.3.mod.1 |
@KalaRaja thanks, that means the attempted fix does not work at all, will go back to the drawing board. |
Summary of my findings:
I see two possible workarounds:
TLDR: It cannot be fixed by the server/launcher alone, it's how the game works. |
But we didn't try giving error when asked for achievement . . might also try that? What do you say? Or isn't there a way to disable achievements? Can I disable achievements on custom launcher? |
@MaMo7x I was able to reproduce locally and regardless of what message and status code you return the client keeps repeating the requests with no end. Look at workarounds (and your mail) |
Describe the bug
I'm posting kind of 2 bugs in a single because I think they might be related to same problem. I'm not sure if they are both related but here they are:-
server
even though I am able to see thehttp://192.168.1.16:443/test
endpoint.To Reproduce
Steps to reproduce the behavior:
tried to host 2-3 times still got the same error!
Expected behavior
I should be able to rehost the game after a match. Waste a lot of time and resources restarting the game and server. Also, I think TLS certificate should not give bad certificate error.
Software Components
Problem related to:
Server
Launcher
Additional information
Additional context
I'm manually starting the server not by launcher. And I have set IP: 192.168.1.16, in my server config too . .
My IP is 192.168.1.16.
Bro's IP is 192.168.1.18.
Network type is private on both machines.
http://192.168.1.16:443/test
endpoint works on both machines!I made sure checking that required programs are allowed in the firewall.
The text was updated successfully, but these errors were encountered: