Page 1 of 1

Installed variant but map not being drawn with any colors

Posted: Wed Jan 29, 2020 3:57 am
by McOirad
Hi, apologies if this is the wrong place to ask but I have been stuck for quite awhile without a solution. I recently developed my variant for a private game (the code is here: https://github.com/mcoirad/gameofthrones-diplomacy, a preview here: http://34.67.209.28/webDiplomacy/variants.php#GoT) and installed the variant on my own server. However if you see the preview, the map is not being colored at all.

I've checked to see that the variant installed, there is data in the Borders, Coastal Borders, UnitDestroyIndex tables although I had to manually add an entry to VariantInfo. Is there another step I have to take, or is there an error I might have made?

Re: Installed variant but map not being drawn with any colors

Posted: Wed Jan 29, 2020 4:52 am
by jmo1121109
What happens when you try and make a new game of that variant type? Also it's a lot easier to help out if you join our discord server and go to the development channel.

Re: Installed variant but map not being drawn with any colors

Posted: Wed Jan 29, 2020 1:24 pm
by McOirad
When I make a new game I get the same uncolored map. I've tested out directly calling map.php to the same result as well.

Thanks, I will join the discord.

Re: Installed variant but map not being drawn with any colors

Posted: Wed Jan 29, 2020 1:56 pm
by Flame
jmo1121109 wrote:
Wed Jan 29, 2020 4:52 am
What happens when you try and make a new game of that variant type? Also it's a lot easier to help out if you join our discord server and go to the development channel.
Link to this discord server pls.

Re: Installed variant but map not being drawn with any colors

Posted: Wed Jan 29, 2020 2:43 pm
by Claesar
Flame wrote:
Link to this discord server pls.
https://discord.gg/2AQzY7

Re: Installed variant but map not being drawn with any colors

Posted: Wed Jan 29, 2020 10:53 pm
by tobi1
McOirad wrote:
Wed Jan 29, 2020 3:57 am
Is there another step I have to take, or is there an error I might have made?
The map.png files have to be saved as palette-based PNG. Otherwise the software will not be able to change the color of a single territories.

Re: Installed variant but map not being drawn with any colors

Posted: Thu Jan 30, 2020 7:47 pm
by McOirad
I used GIMP to open my maps and switched to "indexed color" mode. I think they are palette based as saved because I can use PIL in python to recolor them, but I am not sure how to tell.

http://34.67.209.28/webDiplomacy/map.ph ... Type=large

But it is still not working on my server. I wonder then if it is my server configuration somehow. But other variants seems to be working fine...

Re: Installed variant but map not being drawn with any colors

Posted: Thu Jan 30, 2020 7:52 pm
by McOirad
Actually, I refreshed my cache so it seemed your solution worked!
Thank you for the help :-D