Skip to content
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

online matches freezing at times [bounty: 200 XTR] #1805

Closed
DreadKnight opened this issue Nov 4, 2020 · 12 comments
Closed

online matches freezing at times [bounty: 200 XTR] #1805

DreadKnight opened this issue Nov 4, 2020 · 12 comments
Labels
abilities The issue is related to an unit ability or more bounty Some amount of our token, XatteR, is offered coding This issue requires some programming invalid The issue is not from the project or a "won't fix" multiplayer Problems that occur in online multiplayer priority This should get fixed as soon as possible!
Milestone

Comments

@DreadKnight
Copy link
Member

DreadKnight commented Nov 4, 2020

Some online multiplayer matches that I've played ended by because of game freezing after the blue player ended turn, but game was saying it was my turn, though blue unit was still showing up as active. It might be because of a UI/animation thing or caused by overlapping units due to certain abilities #1804 #1797 - also bad for debugging that online multiplayer replays are broken #1798

bugs

game freezing due to animation

Note that in order to fix this bug, you would probably need to have an instance of Nakama server running along with one of the two compatible databases. Here's a set-up guide: https://heroiclabs.com/docs/nakama/getting-started/install/

@DreadKnight DreadKnight added coding This issue requires some programming abilities The issue is related to an unit ability or more priority This should get fixed as soon as possible! multiplayer Problems that occur in online multiplayer labels Nov 4, 2020
@DreadKnight DreadKnight added this to the 0.4 - Bounty Hunter milestone Nov 4, 2020
@issuehunt-oss

This comment has been minimized.

@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Mar 15, 2021
@issuehunt-oss

This comment has been minimized.

@issuehunt-oss

This comment has been minimized.

@issuehunt-oss

This comment has been minimized.

@rianconley
Copy link
Contributor

rianconley commented May 6, 2021

Hey @DreadKnight, I'm still trying to understand where and why the multiplayer freeze issues are occurring. Not being able to reproduce the error using a game scenario makes the debugging very difficult. I also think building a logging system for multiplayer would be very time consuming and seems like overkill at this point

The errors in the screenshots don't makes me think its not a synchronization issue since the match data has to be transmitted and recieved before x and y coordinates are applied. If it's not the match data it's most likely a bug related to the creature abilities. In conclusion, I think more testing needs to be done so the pertinent info can be logged.

The console log that would be useful would be the log message
Received match data: {match_id: "7d1138d4-a334-48ea-b9ad-4c566ba84284.", presence: {…}, op_code: 5, data: {…}}
data:
args: {1: {…}}
id: 3
target: {type: "hex", x: 12, y: 4}
proto: Object
match_id: "7d1138d4-a334-48ea-b9ad-4c566ba84284."
op_code: 5
presence: {user_id: "15675dd7-98f2-4fad-b7db-c35c9217e16d", session_id: "5130d1d3-ae10-11eb-8297-688e25b5a5ca", username: "volim"

This will allow me to know what data was received which is causing the error.

The other log message although less likely where the issue is occurring is
send match data {match_id: "7d1138d4-a334-48ea-b9ad-4c566ba84284.", op_code: "2", data: {…}} which occurs after the active player moves.

Either one of these log messages will help me better understand what is causing the freezing.

@issuehunt-oss

This comment has been minimized.

@issuehunt-oss

This comment has been minimized.

1 similar comment
@issuehunt-oss

This comment has been minimized.

@issuehunt-oss

This comment has been minimized.

@issuehunt-oss issuehunt-oss bot removed the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Jul 8, 2021
@DreadKnight DreadKnight pinned this issue Dec 18, 2021
@DreadKnight
Copy link
Member Author

A bounty of 66 XatteR is being offered for fixing this issue.
https://www.mintme.com/token/XatteR/intro/airdrop

@DreadKnight DreadKnight added the bounty Some amount of our token, XatteR, is offered label Jan 29, 2022
@DreadKnight DreadKnight changed the title online matches freezing online matches freezing [bounty: 66 XTR] Jan 29, 2022
@DreadKnight DreadKnight changed the title online matches freezing [bounty: 66 XTR] online matches freezing [bounty: 100 XTR] May 17, 2022
jessiepathfinder added a commit to jessiepathfinder/AncientBeast that referenced this issue Jul 10, 2022
@jessiepathfinder
Copy link

Ability.activate() should have a no-throw guarantee. But since it doesn't we put it in try-catch.

jessiepathfinder@1aefd1a

Plus remember all the null reference errors? Optional chaining can help.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining

@DreadKnight DreadKnight changed the title online matches freezing [bounty: 100 XTR] online matches freezing [bounty: 200 XTR] Jul 13, 2022
@DreadKnight DreadKnight changed the title online matches freezing [bounty: 200 XTR] online matches freezing [bounty: 400 XTR] Oct 1, 2022
@DreadKnight DreadKnight changed the title online matches freezing [bounty: 400 XTR] online matches freezing [bounty: 200 XTR] Oct 1, 2022
@DreadKnight
Copy link
Member Author

Opened #2044 which might be related, but focuses on the abilities that move units aspect, hopefully you'll look at it @rianconley

@DreadKnight DreadKnight changed the title online matches freezing [bounty: 200 XTR] online matches freezing at times [bounty: 200 XTR] Oct 1, 2022
@DreadKnight DreadKnight unpinned this issue Nov 24, 2022
@DreadKnight DreadKnight added the invalid The issue is not from the project or a "won't fix" label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abilities The issue is related to an unit ability or more bounty Some amount of our token, XatteR, is offered coding This issue requires some programming invalid The issue is not from the project or a "won't fix" multiplayer Problems that occur in online multiplayer priority This should get fixed as soon as possible!
Projects
None yet
Development

No branches or pull requests

3 participants