Webclient

Discussion in 'Development General' started by coyotte508, Nov 26, 2012.

  1. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Some stats out of 4406 visitors for my personal web page:

    1599 36.29% Firefox
    1068 24.24% Safari
    846 19.20% Chrome
    390 8.85% Others
    328 7.44% Opera
    81 1.84% MSIE


    If you judge by this I'd say IE is irrelevant!
    However, it would be wiser to compare to the browsers which browse PO's website.
     
  2. SteelEdges

    SteelEdges The Poll Dancer

    Joined:
    Dec 15, 2011
    Messages:
    462
    Likes Received:
    59
    I have to agree with Deity. Many people do use Internet Explorer. Forbidding them the webclient won't get them to get Firefox or Chrome, it'll get them to give up on our webclient, move elsewhere. We need all the users we can get at this point. There's no using excluding them for not having the proper browser. We're already losing at this point to a much bigger webclient-based simulator. If we block them, do you really think they'll get Firefox, or move straight to Showdown?
     
  3. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    It's not easy to add websocket support for IE 9. On the client it may be one little lib for polling, on the server you must now add full http support & polling support, aka stack up messages for them to be polled and send them after each poll. Plus i think you can only send one message per poll now matter how many you have stacked up, so that means that since several messages per second are sent you need clientside to poll that much.

    It could be done but that this point telling them to get another browser seems so much easier. But it'll probably be done for release anyway, not just now.
     
  4. Halsey

    Halsey Wildstar

    Joined:
    Aug 27, 2010
    Messages:
    3,204
    Likes Received:
    698
    PO Trainer Name:
    Kat
    IE is bad, but it is one of the most used browsers so in my opinion the webclient should be compatible with it. I don't really like the idea of not letting some people use the webclient just because they are using the default browser of their PCs.

    That is assuming making IE compatible isn't absurdly hard, because I honestly don't know anything about the subject.
     
  5. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
  6. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Just a note, IE 10 supports the web client currently.
     
  7. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
    If you didn't see the link, http://code.google.com/p/jquery-graceful-websocket/ would easily add support for "all" browsers. It detects websocket compatibility inside the plugin, if websocket isn't compatible it "Provides a default fallback using traditional AJAX polling over HTTP". I personally don't see a reason not to use it, there are no downsides, other than maybe an hour of work (If that). jQuery will already be used in the site, so no extra libraries are being loaded or anything. You can use yepnope.js (Part of Modernizr) to only load the Graceful Websocket plugin if it's needed, to go easier on HTTP requests.
     
  8. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    My post was in answer to that link. I need to add a whole new backend to support HTTP from the server. Maybe it's easy client-side but not server-side.
     
  9. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
    Oh, whoops must have misread that (I thought it was you explaining adding IE support yourself rather than with the plugin). Well, yeah I think it'd be a nice thing to bring in eventually like you said, just taking a "oh well IE sucks" attitude seems counter-productive. xD
     
  10. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Hey that's me not coyo. Also IE sucks, except IE 10.
     
  11. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
  12. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    You can still "force" them to install google chrome frame (doesn't require restart + doesn't need administrative permissions).
     
  13. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Started working on watching battles. Could use some coding help!
     
  14. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Last edited: Dec 11, 2012
  15. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
    Looking great man, keep it up! I'll be looking into working github tomorrow.
     
  16. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    You can now test this functionality easily.

    When a player starts a battle, their name becomes blue, you can click on them and watch the battle they are in. The battle list is a tad bit buggish (doesn't update properly) and the watch battle is not fully functional (doesn't show leftovers message, ...) but now anyone can have a taste of what's to come =x
     
  17. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
    Having a problem with connecting from localhost (To my cloned repo). What should I change to be able to use it there?
     
  18. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Add "relay=server.pokemon-online.eu" in the url (with & before)
     
  19. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
  20. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Because the server was down. It's up now.
     
  21. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    So deity made the user filter and other changes, you can see on the live client =o

    Also, I need help with pokemon formes.
     
  22. Steve

    Steve Active Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    491
    Likes Received:
    45
    Loving this. Great work guys! Can't wait to see the completed version.
     
  23. Lutra

    Lutra All Gen Battler/Scripter

    Joined:
    Apr 25, 2010
    Messages:
    509
    Likes Received:
    188
    PO Trainer Name:
    Lutra
    Will this client be able to convert Qt CSS gradients to the popular web browser forms? If not, is there some way I can make a gradient, say here and then convert it to Qt form?
     
  24. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    In css you can specify multiple things, in case a browser or another doesn't support it. Just put both the qt and css gradients in the {}, and the correct one will be evaluated (i think).

    Anyway, I think for now server announcement are going to be skipped since we want something simple, aesthetic and easy to use for the webclient.
     
  25. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    New url for the webclient (first page)

    Now you can see people's trainer infos, with the html kept!
     
  26. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    So... I got item messages and spectator chat working in battles (not yet uploaded). Only ability & move messages left and watching battles will be 90% ready (the 10% left being showing player avatar, pokeballs at battle start and minor bugs/incompatiblities that may be there)
     
  27. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Move messages done!

    Pokeballs show, I just need to show player avatars and do ability messages ;x

    Also moved once again the webclient url of the dev version, but this time it should be final!
     
  28. Navy

    Navy Member

    Joined:
    Apr 21, 2010
    Messages:
    101
    Likes Received:
    8
    Coyo i'm using my iPhone. Everything seems to be working fine except "TeamBuilder". It won't load up at all. Any idea what's the problem?
     
  29. Ethan

    Ethan Member

    Joined:
    Nov 6, 2011
    Messages:
    238
    Likes Received:
    0
    Team Builder hasn't been started yet, same as User Controls.

    Looks like Battling / Battle Window will get done first, then probably a team importer from PO client, then Team Builder and then Find Battle.
     
  30. Blastcore

    Blastcore Developer

    Joined:
    Jul 19, 2010
    Messages:
    763
    Likes Received:
    1
    Let's make people pay to play PO on Internet Explorer 7. They won't get rid of it, btw. Install Windows, it comes with a free outdated Internet Explorer that's vulnerable.
     
  31. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Your new computer at least comes with IE10 which works with the webclient.
     
  32. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
    Nah, Win8 isn't mass installed yet. Just bought a new ASUS laptop with IE9 (Highest compatible version with Win7). xP But sure, if it weren't a simulator for a licensed franchise making people pay would be completely legal.
     
    Last edited: Dec 21, 2012
  33. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
  34. Blastcore

    Blastcore Developer

    Joined:
    Jul 19, 2010
    Messages:
    763
    Likes Received:
    1
    99% people uses Internet Explorer to download Chrome / Firefox.

    Well Windows 8 isn't old, around 1.5+ months, not sure. But next year most of computers will come with Windows 8.
     
  35. Deity

    Deity Designer

    Joined:
    Dec 9, 2010
    Messages:
    195
    Likes Received:
    18
  36. Halsey

    Halsey Wildstar

    Joined:
    Aug 27, 2010
    Messages:
    3,204
    Likes Received:
    698
    PO Trainer Name:
    Kat
    Just posting here to say the webclient is currently not working.
     
  37. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Rebooted it.
     
  38. Pokemonexperte-Martin

    Pokemonexperte-Martin Member

    Joined:
    May 15, 2010
    Messages:
    76
    Likes Received:
    0
  39. Navy

    Navy Member

    Joined:
    Apr 21, 2010
    Messages:
    101
    Likes Received:
    8
    Can someone please give me an update on this? Hope the development still in progress. I'm really looking forward to this...
     
  40. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Working on the android client atm. Otherwise on webclient, started working on the battle window (as opposed to spectating) but it's not promising atm.