Why is this filling the entire image in the native player????
http://www.wargear.net/games/view/321099
It works fine in the flash player.
I was working on a different fill map that was having the same problem. I made this to try to isolate the problem by eliminating the rest of the map. Still can't figure it out. Anybody have any ideas?
Even weirder. I just clicked the link in the post. And now it is working correctly. I have been fiddling with this for 3 hours and it was filling the entire image with one of the player colors.
curiouser and curiouser...
I hate to say it, but native player is pretty broken. I don't even worry about it if my maps don't work on it any more.
Seems to be working fine.
It's A bit technical but it the way the image is rendered by the player that is causing your problem.
Flash player will accept a 1 pxl border that is not necesarrily contiguous where the native player won't (depending on the formula):
(where the b is the border line and the x's are just space)
XXXXbXXXXXX
XXXXbXXXXXX
XXXbXXXXXXX
XXXbXXXXXXX
See the diagonal connection of the pixels? That is considered a gap in the native player, but not one in the flash player.
Why are these different with the players? Because flash player displays the pixels, where native player turns all the lines into math equations and then displays them. (the equations sometimes need to be connected together, or sometimes they are so thin they don't display [because screens use the pixel approach]
Whats the solution here? Check all your borders and make sure they are (on the pixel level) like this:
XXXXbXXXXXX
XXXbbXXXXXX
XXXbXXXXXXX
XXXbXXXXXXX
Instead of what's above.
You have a clue as to which border is the problem because the player will show the color of the offending territory on the whole board.
(Sorry this is days late)
See the diagonal connection of the pixels? That is considered a gap in the native player, but not one in the flash player.
Do you have that reversed as I believe that works fine with the Flash Player, but may cause display issues with the Native Player (although I haven't specifically seen mismatch Player Colors due to this issue in the Native Player, but I haven't looked at it too deeply either).
Yes. Yertle is correct. I had that backwards. :)
ratsy wrote:It's A bit technical but it the way the image is rendered by the player that is causing your problem.
Flash player will accept a 1 pxl border that is not necesarrily contiguous where the native player won't (depending on the formula):
(where the b is the border line and the x's are just space)
XXXXbXXXXXX
XXXXbXXXXXX
XXXbXXXXXXX
XXXbXXXXXXX
See the diagonal connection of the pixels? That is considered a gap in the native player, but not one in the flash player.
Why are these different with the players? Because flash player displays the pixels, where native player turns all the lines into math equations and then displays them. (the equations sometimes need to be connected together, or sometimes they are so thin they don't display [because screens use the pixel approach]
Whats the solution here? Check all your borders and make sure they are (on the pixel level) like this:
XXXXbXXXXXX
XXXbbXXXXXX
XXXbXXXXXXX
XXXbXXXXXXX
Instead of what's above.
You have a clue as to which border is the problem because the player will show the color of the offending territory on the whole board.
(Sorry this is days late)
I thought that it might be something like that, since the fillmap I was originally having trouble with (http://www.wargear.net/games/view/321127) had some 1 pixel boundaries. But then I made the test map (linked to in the first post) with 100+ pixel boundaries. It had the exact same problem. Whatever it was, it lasted for about 3 hours, only affected new maps (I checked older maps I made and they worked fine), did the exact same thing on 4 different browser and 2 different devices, and spontaneously started working immediately after posting the first post above. As illogical as it sounds, the only thing I can come up with is that somehow posting the link to the map fixed it.
Great explanation, thanks ratsy. There's a different code base behind the fill functions in the Native vs Flash player and unfortunately they do operate slightly differently. It's not so much a Native player bug as a feature of the filling approach that designers will need to work around.
I've done a lot of border editing at the pixel level, and I have to admit that I haven't been testing my boards with the Native player, but I'm lucky that I've probably erred on the conservative side of technique.. (whew!).