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

Unable to Upload Multiplayer Game #12997

Open
1 task done
MaikelFritz opened this issue Feb 24, 2025 · 27 comments
Open
1 task done

Unable to Upload Multiplayer Game #12997

MaikelFritz opened this issue Feb 24, 2025 · 27 comments
Labels

Comments

@MaikelFritz
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

4,15.12

Describe the bug

Unable to upload game in Multiplayer Mode
Error Popup occurs.. No way to end a round.

Steps to Reproduce

  1. Go to Next Round

Screenshots

No response

Link to save file

No response

Operating System

Android

Additional Information

No response

@Green-Sky
Copy link

@touhidurrr sorry for tag, but this has pretty much deadlocked a game for me for 2 days now.

@Vanadium-GITHUB
Copy link

I am also having this issue myself. ^^^

@touhidurrr
Copy link
Contributor

@Green-Sky @Vanadium-GITHUB cannot reproduce the issue.

@Green-Sky
Copy link

Green-Sky commented Feb 26, 2025

Right, for me the notification(?) state is a different turn the the actual savegame. So you are looking for games that have inconsistent "next turn" state.

Also, sometimes it appears it does upload the game, despite saying it failed.

@Vanadium-GITHUB
Copy link

Vanadium-GITHUB commented Feb 27, 2025

Windows game.

Unsure if this will help but here is my save game.

https://github.com/[Vanadium-GITHUB/unciv-save-game](https://github.com/Vanadium-GITHUB/unciv-save-game)

Image

I considered if it was an issue with mods, but OP is receiving the same error playing without mods.

One thing I am unsure matters, but on my screen it says the current turn is the other player (korea) from 3 days ago, but its clearly my turn, after they did their turn this morning.

Image

@touhidurrr
Copy link
Contributor

By the way, the server has a filesize limit. Are you sure you guys did not exceed it?

@Vanadium-GITHUB
Copy link

@touhidurrr that must be it. What is the limit?

@yairm210
Copy link
Owner

Oh dear
What size games are y'all playing?

@Vanadium-GITHUB
Copy link

@yairm210 Our save was 1.28 MB

@touhidurrr
Copy link
Contributor

The server file size limit is 1MB. I am planning to increase this to 2MB next month following the automatic system upgrade to MongoDB Flex. MongoDB Atlas seems to be moving to a new pricing structure and our instance will be automatically migrated to Flex with a 150% increase in storage without any noticeable increase in cost.
I think I will increase the file size limit at that time because bigger games seems to be gaining some weird popularity recently and with an average file size of <100KB, this should not affect the server much.

@touhidurrr
Copy link
Contributor

@yairm210 Our save was 1.28 MB

Save or JSON?

@touhidurrr
Copy link
Contributor

Also, do you guys use discord? Can you run a /gameinfo command on your game and show us the output?

@Green-Sky
Copy link

Green-Sky commented Feb 27, 2025

Also, do you guys use discord? Can you run a /gameinfo command on your game and show us the output?

No, but I asked a friend, and the command just times out (pm).

Our json(?) is 2.2mib.

@touhidurrr
Copy link
Contributor

touhidurrr commented Feb 27, 2025

@yairm210 Our save was 1.28 MB

Our json(?) is 2.2mib.

The server only care about save size not json size, since saves are what gets uploaded. But if your save is 1.28 MB, I expected the json size to be something like 10MB or more. So, it being 2.2MB is sus. Anyways, regardless, this is not a server issue. As i said before, the file size limit is 1MB. So, it is normal for a 1.28MB save to be rejected. I just asked to be sure.

@Green-Sky
Copy link

What is a savefile. I said json, because the autosave file contains json.

@touhidurrr
Copy link
Contributor

Ok, I guess I will just increase the limit to 2MB now, since march is near anyways. And its not like we are currently in any low disk space situation.

Image

Done with touhidurrr/UncivServer.xyz@58b8c3b

@touhidurrr
Copy link
Contributor

@Green-Sky @Vanadium-GITHUB let me know if this fixes your issues.

@Hoernla
Copy link

Hoernla commented Feb 28, 2025

I haven't written before, but have watched this thread from the start, experiencing the exactly same problems. In our game, the road is still bumpy. That means, when I finish my turn, it seems not to work, upload is not confirmed, the next player is not shown in the main screen as "waiting for".
At some point in time, this might switch. Until then, however, reloading the game allows me (forces me?) to make this turn once more.

All the while, when I go to the "Multiplayer" menu, there is still another player's turn from a week ago shown as current. When I want to pass this turn, a message comes telling me I cannot pass him as the current player has been updated. However, sometimes it shows the actual current player but will jump back.

@touhidurrr
Copy link
Contributor

@yairm210, the more I read these issues the more I feel like it is something related to Preview files. WE NEED WEBSOCKETS (100).

Anyways, cannot still reproduce any of it.

@Green-Sky
Copy link

Issue persists, no change. @Hoernla did describe it nicely.

@touhidurrr
Copy link
Contributor

touhidurrr commented Feb 28, 2025

Unsure if this will help but here is my save game.

[https://github.com/Vanadium-GITHUB/unciv-save-game](https://github.com/%5BVanadium-GITHUB/unciv-save-game%5D(https://github.com/Vanadium-GITHUB/unciv-save-game))

I dont know where issues like this are popping up from but I just entered this game and made a turn as Korea without any problem. So, yet again, cannot reproduce any issue.

@touhidurrr
Copy link
Contributor

touhidurrr commented Feb 28, 2025

At some point in time, this might switch. Until then, however, reloading the game allows me (forces me?) to make this turn once more.

Looks like a client issue to me @yairm210 . @Hoernla, can you share you save also?

@touhidurrr
Copy link
Contributor

touhidurrr commented Feb 28, 2025

Also, one thing for sure that you guys are not updating your clients often. Which can also lead to weird issues. @Vanadium-GITHUB.

Image

The latest version for example:

Image

That is 139 versions behind latest. That makes me wonder, even if these issues do exist and are fixed in a future version, will you guys ever update your clients to enjoy the fix to begin with. Sigh.

@Vanadium-GITHUB
Copy link

Thank you, I will do that

@Hoernla
Copy link

Hoernla commented Feb 28, 2025

I added a txt to upload.
Now we know that we infrequently update (at least those on windows, half of us use android), however we all updated as soon as we ran into this problem.

autosave.txt

@touhidurrr
Copy link
Contributor

touhidurrr commented Feb 28, 2025

however we all updated as soon as we ran into this problem.

Does this mean you guys are all still facing the problem even after updating? That being said, what is the issue exactly? I tried playing your game and made a turn in it successfully without any issue. Have you guys noticed this?

Also, where do you guys live? Can it be that the issue happens in your region only.

@Vanadium-GITHUB
Copy link

Vanadium-GITHUB commented Mar 1, 2025

@touhidurrr @yairm210 Updating to current client works! Thank you for the help and sorry for the trouble. =)

Edit, after 5 turns it stopped working again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants