Installed variant but map not being drawn with any colors

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:points: :-D :eyeroll: :neutral: :nmr: :razz: :raging: :-) ;) :( :sick: :o :? 8-) :x :shock: :lol: :cry: :evil: :?: :smirk: :!:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is OFF
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Expand view Topic review: Installed variant but map not being drawn with any colors

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

by McOirad » Thu Jan 30, 2020 7:52 pm

Actually, I refreshed my cache so it seemed your solution worked!
Thank you for the help :-D

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

by McOirad » Thu Jan 30, 2020 7:47 pm

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

by tobi1 » Wed Jan 29, 2020 10:53 pm

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

by Claesar » Wed Jan 29, 2020 2:43 pm

Flame wrote:
Link to this discord server pls.
https://discord.gg/2AQzY7

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

by Flame » Wed Jan 29, 2020 1:56 pm

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

by McOirad » Wed Jan 29, 2020 1:24 pm

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

by jmo1121109 » 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.

Installed variant but map not being drawn with any colors

by McOirad » Wed Jan 29, 2020 3:57 am

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?

Top