Map bug - territories not coloured in

Members can make suggestions for improving the site and improving the forum as well as submit bug reports to be reviewed by our support team here.
Post Reply
Message
Author
User avatar
Jamiet99uk
Posts: 29456
Joined: Sat Dec 30, 2017 11:42 pm
Location: Durham, UK
Karma: 18259
Contact:

Map bug - territories not coloured in

#1 Post by Jamiet99uk » Sun Jan 15, 2023 1:55 pm

This game recently ended (I was eliminated), but looking at it now, none of the territories are coloured in, they're all the neutral beige colour:

https://www.webdiplomacy.net/board.php?gameID=460619

Is it just me seeing this?

Super weird.
2
There are decades where nothing happens, and there are weeks where decades happen. - Lenin.

gimix
Site Moderator
Site Moderator
Posts: 349
Joined: Tue Nov 13, 2018 8:56 am
Location: My Mountains, the highest in Europe
Karma: 343
Contact:

Re: Map bug - territories not coloured in

#2 Post by gimix » Sun Jan 15, 2023 2:09 pm

Weird, yes. I opened the game and I see everything beige too

MerryBBuck
Gold Donator
Gold Donator
Posts: 55
Joined: Sat Feb 29, 2020 9:08 pm
Karma: 111
Contact:

Re: Map bug - territories not coloured in

#3 Post by MerryBBuck » Sun Jan 15, 2023 5:19 pm

A rare Swiss victory!
6

User avatar
Jamiet99uk
Posts: 29456
Joined: Sat Dec 30, 2017 11:42 pm
Location: Durham, UK
Karma: 18259
Contact:

Re: Map bug - territories not coloured in

#4 Post by Jamiet99uk » Thu Jan 19, 2023 10:59 am

Any of the devs / admins seen this before?
There are decades where nothing happens, and there are weeks where decades happen. - Lenin.

A_Tin_Can
Lifetime Site Contributor
Posts: 283
Joined: Fri Sep 29, 2017 9:18 pm
Karma: 451
Contact:

Re: Map bug - territories not coloured in

#5 Post by A_Tin_Can » Mon Jan 23, 2023 3:03 am

I've not seen this before.

When I was working on the code, the maps were saved in a cache when they are generated. My guesses are:

- There was a short-lived map bug that got fixed, but your map was generated during the time the bug was around. I would guess the map generation code was at least touched when the updated map UI was added.
- Maybe this map was generated while a non-atomic update was pushed to the server (eg, one file was updated before another in the same update) causing a super short lived bug / race condition.
- The time this game was drawn hit an edge case where the territories hadn't been updated yet but the unit positions had (I dunno, like maybe the game was already processing at the exact time the draw went through - there are two ways a game might get processed, so this could potentially happen (although I thought there were locks to prevent this)).

Of course, I don't have access to the server to check anymore. I think it's most likely that it was a temporary problem with the map generator, and would be fixed by removing that specific map from the cache (forcing a redraw next time the map was looked at). But it might be a problem with the game history - meaning a redraw would still miss the territory information.

WebDiplomacy was originally a hobby project many years ago, so there are a lot of things from modern apps that it doesn't have (eg, atomic deployments) which might occasionally cause issues like this. TBH even if it wasn't a hobby project, those practices weren't really standard at the time anyway.

I'm still impressed with how well Kestas' work has stood the test of time. His attention to detail and structure in the early days has really paid off.
5

A_Tin_Can
Lifetime Site Contributor
Posts: 283
Joined: Fri Sep 29, 2017 9:18 pm
Karma: 451
Contact:

Re: Map bug - territories not coloured in

#6 Post by A_Tin_Can » Mon Jan 23, 2023 3:04 am

I opened the game and I see everything beige too
Everyone gets the same cached map, unless that entry is removed from the cache.

Post Reply

Who is online

Users browsing this forum: Napple and 62 guests