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

In large games, sometimes some tiles are missing on desktop #24

Closed
JochCool opened this issue Jan 8, 2020 · 2 comments · Fixed by #34
Closed

In large games, sometimes some tiles are missing on desktop #24

JochCool opened this issue Jan 8, 2020 · 2 comments · Fixed by #34
Assignees
Labels
bug Something isn't working

Comments

@JochCool
Copy link
Owner

JochCool commented Jan 8, 2020

Description
If a bot sends a Minesweeper game that is split into multiple messages, then sometimes the last few tiles (most commonly the last two) are missing. This appears to happen randomly. The game itself is generated correctly, though.

To reproduce:
Create some very large games, like 20x20. If the bug does not occur, try again a few times.

Expected behavior
All tiles appear.

Screenshots
Here's an example. I cleared some of the tiles around it:
image

@JochCool JochCool added the bug Something isn't working label Jan 8, 2020
@JochCool
Copy link
Owner Author

I cannot figure out why this is happening, so I will be ignoring this for now. If anyone has any idea, please tell me.

@JochCool JochCool added the help wanted Extra attention is needed label Jun 13, 2020
@JochCool
Copy link
Owner Author

JochCool commented Jul 8, 2020

I am fairly certain at this point that it is on Discord's end, not mine. There seems to be a limit on how many spoiler tags you can have in a message: 198. You can reproduce this by sending a message like this, which contains 220 spoiler tags:

||1||||2||||3||||4||||5||||6||||7||||8||||9||||10||||1||||2||||3||||4||||5||||6||||7||||8||||9||||20||||1||||2||||3||||4||||5||||6||||7||||8||||9||||30||||1||||2||||3||||4||||5||||6||||7||||8||||9||||40||||1||||2||||3||||4||||5||||6||||7||||8||||9||||50||||1||||2||||3||||4||||5||||6||||7||||8||||9||||60||||1||||2||||3||||4||||5||||6||||7||||8||||9||||70||||1||||2||||3||||4||||5||||6||||7||||8||||9||||80||||1||||2||||3||||4||||5||||6||||7||||8||||9||||90||||1||||2||||3||||4||||5||||6||||7||||8||||9||||100||||1||||2||||3||||4||||5||||6||||7||||8||||9||||10||||1||||2||||3||||4||||5||||6||||7||||8||||9||||20||||1||||2||||3||||4||||5||||6||||7||||8||||9||||30||||1||||2||||3||||4||||5||||6||||7||||8||||9||||40||||1||||2||||3||||4||||5||||6||||7||||8||||9||||50||||1||||2||||3||||4||||5||||6||||7||||8||||9||||60||||1||||2||||3||||4||||5||||6||||7||||8||||9||||70||||1||||2||||3||||4||||5||||6||||7||||8||||9||||80||||1||||2||||3||||4||||5||||6||||7||||8||||9||||90||||1||||2||||3||||4||||5||||6||||7||||8||||9||||200||||1||||2||||3||||4||||5||||6||||7||||8||||9||||10||||1||||2||||3||||4||||5||||6||||7||||8||||9||||20||

@JochCool JochCool removed the help wanted Extra attention is needed label Jul 21, 2020
@JochCool JochCool changed the title In large games, sometimes some tiles are missing In large games, sometimes some tiles are missing on desktop Feb 22, 2022
JochCool added a commit that referenced this issue Nov 7, 2022
This is a long-standing issue. Discord cuts of a message on the 200th spoiler tag or emoji, and because this bot uses a lot of both, it often causes games to be incomplete. This fix makes the bot split up a game into multiple messages more aggressively. As far as I can tell, this issue never occurs anymore.
@JochCool JochCool mentioned this issue Nov 7, 2022
@JochCool JochCool self-assigned this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant