174 Open Daily games
3 Open Realtime games
    Pages:   1   (1 in total)
  1. #1 / 10
    Standard Member Korrun
    Rank
    Brigadier General
    Rank Posn
    #72
    Join Date
    Nov 12
    Location
    Posts
    842

    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?

     


  2. #2 / 10
    Standard Member Korrun
    Rank
    Brigadier General
    Rank Posn
    #72
    Join Date
    Nov 12
    Location
    Posts
    842

    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.

     


  3. #3 / 10
    Shelley, not Moore Ozyman
    Rank
    Brigadier General
    Rank Posn
    #40
    Join Date
    Nov 09
    Location
    Posts
    3450

    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.


  4. #4 / 10
    Colonel M57 M57 is offline now
    Standard Member M57
    Rank
    Colonel
    Rank Posn
    #76
    Join Date
    Apr 10
    Location
    Posts
    5083

    Seems to be working fine.

    Card Membership - putting the power of factories in your hand.

  5. #5 / 10
    Standard Member ratsy
    Rank
    Brigadier General
    Rank Posn
    #62
    Join Date
    Jul 10
    Location
    Posts
    1274

    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 shall pass this but once, any good I can do, or kindness I can show; let me do it now. Let me not difer nor neglect it, for I shall not pass this way again." -Stephen Grellet
    Edited Tue 26th Nov 13:29 [history]

  6. #6 / 10
    Premium Member Yertle
    Rank
    Major General
    Rank Posn
    #21
    Join Date
    Nov 09
    Location
    Posts
    3997

    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).


    You have been granted the title of Strategist!

  7. #7 / 10
    Standard Member ratsy
    Rank
    Brigadier General
    Rank Posn
    #62
    Join Date
    Jul 10
    Location
    Posts
    1274

    Yes. Yertle is correct. I had that backwards. :)

    "I shall pass this but once, any good I can do, or kindness I can show; let me do it now. Let me not difer nor neglect it, for I shall not pass this way again." -Stephen Grellet

  8. #8 / 10
    Standard Member Korrun
    Rank
    Brigadier General
    Rank Posn
    #72
    Join Date
    Nov 12
    Location
    Posts
    842

    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.

     


  9. #9 / 10
    Commander In Chief tom tom is offline now
    WarGear Admin tom
    Rank
    Commander In Chief
    Rank Posn
    #762
    Join Date
    Jun 09
    Location
    Posts
    5651

    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.


  10. #10 / 10
    Colonel M57 M57 is offline now
    Standard Member M57
    Rank
    Colonel
    Rank Posn
    #76
    Join Date
    Apr 10
    Location
    Posts
    5083

    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!).

    Card Membership - putting the power of factories in your hand.

You need to log in to reply to this thread   Login | Join
 
Pages:   1   (1 in total)