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?
Installed variant but map not being drawn with any colors
-
- Lifetime Site Contributor
- Posts: 1099
- Joined: Fri Sep 29, 2017 4:20 pm
- Contact:
Re: Installed variant but map not being drawn with any colors
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
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.
Thanks, I will join the discord.
Re: Installed variant but map not being drawn with any colors
Link to this discord server pls.jmo1121109 wrote: ↑Wed Jan 29, 2020 4:52 amWhat 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
https://discord.gg/2AQzY7Flame wrote: ↑
Link to this discord server pls.
Re: Installed variant but map not being drawn with any colors
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
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...
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
Actually, I refreshed my cache so it seemed your solution worked!
Thank you for the help
Thank you for the help
Who is online
Users browsing this forum: No registered users