Arimaa Forum (http://arimaa.com/arimaa/forum/cgi/YaBB.cgi)
Arimaa >> Site Discussion >> Javascript client changes
(Message started by: Hippo on Jul 3rd, 2010, 2:09am)

Title: Javascript client changes
Post by Hippo on Jul 3rd, 2010, 2:09am
Seems last changes in javascript client introduced some incorrect code. I had just small problems watching the games with opera-mobile browser till yesterday. Now the move list does not load. Similarly on IE plan window does not load the move list. Of course when the move list is not loaded, the board remains empty.]
[edit]Actually problem is not with watching already finished games. It appeared on my postals, but both mixer postals and invited postals.[/edit]

Title: Re: Javascript client changes
Post by mooseye on Jul 3rd, 2010, 7:51am
I was playing a couple of postal games and when I tried to log into them yesterday, they had gone blank and the captured piece log showed all pieces for both players as having been captured.

http://webpages.charter.net/rtillx5/Stuff/arimaa%20board.JPG

Title: Re: Javascript client changes
Post by ChrisB on Jul 3rd, 2010, 8:38am
I'm getting the same problem with my postal games, but all is fine after I "reload".  I'm using the Chrome browser.

EDIT:  But sometimes I need to reload more than once.

Title: Re: Javascript client changes
Post by mooseye on Jul 3rd, 2010, 12:56pm
I get two script error warnings each time I load the game page and then the result above.
I just got an email notice of a move in a postal game and clicked the link and got the result above for a different player.

Title: Re: Javascript client changes
Post by knarl on Jul 4th, 2010, 3:52am
Ditto, I get an empty board when I try to open games on my android phone. It worked fine until a couple of days ago.

EDIT: Same thing with an IE 8 box I tried. It listed some errors related to sound, so maybe it was those sound mods mentioned here: http://arimaa.com/arimaa/forum/cgi/YaBB.cgi?board=siteIssues;action=display;num=1273872636

Cheers,
knarl.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 7th, 2010, 10:32am
I too, used to be able to open my postal games just by clicking on the links that come with the e-mail notifications.  Now when I follow the link I get a blank board.

Title: Re: Javascript client changes
Post by omar on Jul 11th, 2010, 4:25am
Should be fixed now. Let me know if you still see this problem.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 11th, 2010, 10:18am
It's fixed for me.

Title: Re: Javascript client changes
Post by knarl on Jul 11th, 2010, 6:07pm
I deleted my cache, history, cookies, form data, and anything else I could could find, and I still get the blank board.   :'(

EDIT: It works now. On top of clearing cache etc, I had to open a game from another page first (as a spectator instead of clicking my name under 'my games'). Then next time I opened it, it magically worked!  ;D

EDIT2: It only works sometimes on some of my games. I'm struggling to attribute when it works to anything except randomness.

I've had better luck on my android browser than IE8, but both work sometimes, but mostly not. Chromiuim on the other hand works 99% of the time. Ocassionally it opens a blank board, but refresh always fixes it.

cheers,
knarl.

Title: Re: Javascript client changes
Post by knarl on Jul 13th, 2010, 4:09pm

on 07/11/10 at 18:07:49, knarl wrote:
I deleted my cache, history, cookies, form data, and anything else I could could find, and I still get the blank board.   :'(

EDIT: It works now. On top of clearing cache etc, I had to open a game from another page first (as a spectator instead of clicking my name under 'my games'). Then next time I opened it, it magically worked!  ;D

EDIT2: It only works sometimes on some of my games. I'm struggling to attribute when it works to anything except randomness.

I've had better luck on my android browser than IE8, but both work sometimes, but mostly not. Chromiuim on the other hand works 99% of the time. Ocassionally it opens a blank board, but refresh always fixes it.

cheers,
knarl.


By the way; If noone else is having these issues, I'll stop posting about it, but I think others will be, because my tests are three different browsers on three different ISPs.

Cheers,
knarl.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 14th, 2010, 4:57am

on 07/13/10 at 16:09:19, knarl wrote:
By the way; If noone else is having these issues, I'll stop posting about it, but I think others will be, because my tests are three different browsers on three different ISPs.

I'm having intermittent issues opening postal games from the e-mail link.  Just this morning I was able to open one game from the link, but on the next I got the blank board (as in your image from this thread).

Title: Re: Javascript client changes
Post by ChrisB on Jul 14th, 2010, 9:11am

on 07/14/10 at 04:57:33, Fritzlein wrote:
I'm having intermittent issues opening postal games from the e-mail link.  Just this morning I was able to open one game from the link, but on the next I got the blank board (as in your image from this thread).


I've been having this same issue for the past two weeks or so, but it's not a problem at all for me since I simply press "reload" and the correct board pops up quickly.  (I've been using the Chrome browser.)

Title: Re: Javascript client changes
Post by Fritzlein on Jul 14th, 2010, 11:43am

on 07/14/10 at 09:11:35, ChrisB wrote:
I've been having this same issue for the past two weeks or so, but it's not a problem at all for me since I simply press "reload" and the correct board pops up quickly.  (I've been using the Chrome browser.)

I also use Chrome, so just now I tested the "reload" method upon getting a blank board, and the board remained blank through three reloads.  :-/

Title: Re: Javascript client changes
Post by mooseye on Jul 14th, 2010, 1:28pm
I am still having the same problem. I have been playing postal games for some time now, and have never had any problem loading them from the email link untill about 2 weeks ago. Now I can't open any games and no matter how many times I reload the page.

Title: Re: Javascript client changes
Post by knarl on Jul 14th, 2010, 3:25pm
Just clarifying a couple of points:

- The problem exhibits itself when I open my postal games from the gameroom or by email link. Is this the same for everyone? It sounds like others may only have the problem with email link.

- I'll just distinguish between Chromiuim and Chrome - As I understand it, Chromium is the GPL program that google based Chrome on. Not sure what the differences are.

Just trying to fill in any gaps to make the debugging easier for omar.

Cheers,
knarl.

Title: Re: Javascript client changes
Post by mooseye on Jul 15th, 2010, 3:42am
Okay, I just tried to open one of my postal games from the gameroom online with the same results. So, I guess it is not just the email link.
Could it be some browser setting that may have gotten changed on my end?

Title: Re: Javascript client changes
Post by Fritzlein on Jul 15th, 2010, 4:23am
I have no trouble opening my postal games from the gameroom, but probably that it because I have my client set to "Flash Client V2; persistent connection".  If I used the Javascript client I might have the same issues.

On the other hand, I just now successfully opened a postal game with the Javascript client from the e-mail link.  Go figure.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 17th, 2010, 8:32am
Crazy thought:  I just now failed to open a postal game from the email link in Chrome but succeeded in Firefox.  In Firefox the window resized, but I have Chrome set to prevent window resizing.  Might the resize have something to do with the issue?

Title: Re: Javascript client changes
Post by mooseye on Jul 18th, 2010, 9:17am
The thing is, I didn't change anything on my end from what had been working for months with no problem. This just started out of the blue, and I have not been able to play since.
I just tried to play a bot on the bot ladder and got the same result, so I can't play at all.
I can view the game by going thru my opponets game list but only as a spectator. I can't make a move.
Does anyone who can help with this problem read this message board?

Title: Re: Javascript client changes
Post by Fritzlein on Jul 18th, 2010, 12:20pm
One thing that might help you is changing your client to something other than Javascript under Settings -> Game Client.  That will not affect the behavior of the e-mail link, but should change what happens when you open your games from the game room.

Beyond that, only Omar can help you.  He does read this board, but only occasionally.  To get a faster response, post your problem here: http://arimaa.com/arimaa/contact/

Title: Re: Javascript client changes
Post by mooseye on Jul 18th, 2010, 2:10pm
I just tried every setting in the game client with the same result.

Title: Re: Javascript client changes
Post by arimaa_master on Jul 19th, 2010, 12:42am

on 07/18/10 at 14:10:55, mooseye wrote:
I just tried every setting in the game client with the same result.


What about opera and firefox - still the same problem?

Also try flash client (go to the settings - game client - flash client V2 with http connection).

Title: Re: Javascript client changes
Post by knarl on Jul 19th, 2010, 4:36pm
Flash isn't available on some platforms. Also, the javascript client seems to be firewall compatible, and much nicer than flash V1.

Cheers,
knarl.

Title: Re: Javascript client changes
Post by mooseye on Jul 19th, 2010, 5:37pm

on 07/19/10 at 00:42:52, arimaa_master wrote:
What about opera and firefox - still the same problem?

Also try flash client (go to the settings - game client - flash client V2 with http connection).


I don't have firefox installed but I just tried it with opera and crome and same result.
I have been using slimbrowser for the entire time I have been aware of arimaa with no problem till this started.

Title: Re: Javascript client changes
Post by Hippo on Jul 19th, 2010, 11:44pm
I suppose the problem is caused by the delaying caused by the 722cassi case. Seems not all changes were correctly taken back. I hope Omar would be able to correct it when he finds a time for it.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 20th, 2010, 4:45am

on 07/18/10 at 14:10:55, mooseye wrote:
I just tried every setting in the game client with the same result.

Did you try contacting Omar through the contact page?  http://arimaa.com/arimaa/contact/  If so, I am surprised he hasn't acknowledged the issue yet.

Title: Re: Javascript client changes
Post by knarl on Jul 20th, 2010, 4:10pm
I sent him a message on the contact page. He said he's looking into it.

Cheers,
knarl.

Title: Re: Javascript client changes
Post by omar on Jul 20th, 2010, 4:26pm
mooseye, I'm not sure why the game window is not working for you. I think the earlier problem which several people notices has been fixed. This sounds like a new problem that is happening only for you. Sounds like you've tried it with several different browsers and tried the various different game clients. Can you email me a screen shot of the window; arimaa_game@yahoo.com.

Title: Re: Javascript client changes
Post by knarl on Jul 20th, 2010, 4:44pm
Omar,

I think there are still multiple people experiencing the original "blank board" symptoms on the javascript client.

I agree, it might be a different problem for mooseye if he has tried the different clients, but I'm not sure if he's refering to changing his client, or changing setting *within* the javascript client.

Cheers,
knarl.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 20th, 2010, 4:46pm

on 07/20/10 at 16:26:14, omar wrote:
I think the earlier problem which several people notices has been fixed. This sounds like a new problem that is happening only for you.

For the record, the image mooseye posted in this thread is exactly what I see 90% of the time when I click on the link that has been e-mailed to me to open a postal game.  I am not having the problem as severely as mooseye (i.e. all clients, all browsers), but he isn't the only one having a problem.

Title: Re: Javascript client changes
Post by omar on Jul 20th, 2010, 5:30pm
Email links are working fine for me; so this is going to be hard to trace.

Title: Re: Javascript client changes
Post by knarl on Jul 20th, 2010, 5:37pm

on 07/20/10 at 17:30:12, omar wrote:
Email links are working fine for me; so this is going to be hard to trace.


Not sure if this will help, but here are the errors logged by IE8:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 21 Jul 2010 01:35:24 UTC


Message: 'soundManager' is undefined
Line: 57
Char: 1
Code: 0
URI: http://arimaa.com/arimaa/java/ys/ms4/v5/js_sit.cgi?sid=9591371543&grid=3&rand=67911712


Message: Error: soundManager.play(): Not loaded yet - wait for soundManager.onload() before calling sound-related methods.
Caller: function setGameState(o){
}
Line: 12
Char: 6713
Code: 0
URI: http://arimaa.com/arimaa/jsClient/pro/sm2/sm2.js


Title: Re: Javascript client changes
Post by knarl on Jul 20th, 2010, 5:41pm
When I get home to my linux box, I'll dump any console output from chromium and/or iceweasle (firefox). If there's any other debugging tasks I can help with, let me know.

Cheers,
knarl.

Title: Re: Javascript client changes
Post by Hippo on Jul 21st, 2010, 2:40pm
Now after the server update my e-mail link works well (I have not tested it before), but when I try openning the game from gameroom, I get a source code.

Title: Re: Javascript client changes
Post by Sconibulus on Jul 21st, 2010, 4:29pm
I've got the same thing happening as Hippo, but a much longer message.

Title: Re: Javascript client changes
Post by omar on Jul 21st, 2010, 7:18pm

on 07/21/10 at 14:40:08, Hippo wrote:
Now after the server update my e-mail link works well (I have not tested it before), but when I try openning the game from gameroom, I get a source code.


Should be fixed now.

Title: Re: Javascript client changes
Post by omar on Jul 21st, 2010, 7:23pm

on 07/20/10 at 17:37:16, knarl wrote:
Not sure if this will help, but here are the errors logged by IE8:

Message: 'soundManager' is undefined
Line: 57
Char: 1
Code: 0
URI: http://arimaa.com/arimaa/java/ys/ms4/v5/js_sit.cgi?sid=9591371543&grid=3&rand=67911712


Message: Error: soundManager.play(): Not loaded yet - wait for soundManager.onload() before calling sound-related methods.
Caller: function setGameState(o){
}
Line: 12
Char: 6713
Code: 0
URI: http://arimaa.com/arimaa/jsClient/pro/sm2/sm2.js


Thanks this helps a lot with tracing down the problem. Seems like the problem started when I added sounds to the JavaScript client for when the opponent enters or leaves the game. Seems like as soon as the window opens it wants to play a sound, but the sound libraries have not yet loaded; although sometimes they do; which explains the inconsistent nature of this bug.

Title: Re: Javascript client changes
Post by knarl on Jul 21st, 2010, 8:55pm

on 07/21/10 at 19:23:33, omar wrote:
Thanks this helps a lot with tracing down the problem. Seems like the problem started when I added sounds to the JavaScript client for when the opponent enters or leaves the game. Seems like as soon as the window opens it wants to play a sound, but the sound libraries have not yet loaded; although sometimes they do; which explains the inconsistent nature of this bug.


Cool, so you just check soundManager.onload() returns successfully before you continue, and we're all good?

cheers,
knarl.

Title: Re: Javascript client changes
Post by omar on Jul 21st, 2010, 9:37pm
OK, I think I fixed the problem with the JavaScript client not working sometimes. Let me know if you still see it.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 21st, 2010, 11:20pm

on 07/21/10 at 21:37:09, omar wrote:
OK, I think I fixed the problem with the JavaScript client not working sometimes. Let me know if you still see it.

Three out of three for me on opening postal games from e-mail links.  Thanks omar and knarl!

Title: Re: Javascript client changes
Post by Hippo on Jul 22nd, 2010, 1:54am
Wow, it works well. I have been able to send a move against Greg from Xperia again.

Thanks Omar  (and  knarl)

Title: Re: Javascript client changes
Post by mooseye on Jul 22nd, 2010, 5:57pm
I had almost given up on playing any more till I was trying to tell my wife about it and was using the email link to get to the site to show her how to get started and lo and behold, the game opened. Happy Day!
I am addicted to this game. Have to have it. I am not that great a player but I love it.
A big THANK YOU  and a hug to who ever fixed it.

Title: Re: Javascript client changes
Post by knarl on Jul 22nd, 2010, 6:08pm
Thanks Omar!!!

Looks like it's working well now. I did get one blank board the second game I tried, but it was probably a cache issue or something, because no problem since then!

Cheers,
knarl.

Title: Re: Javascript client changes
Post by omar on Jul 23rd, 2010, 8:51am
Awesome. I'm glad to hear that it is working now. Tracing the problem is usually the hard part. Since the problem wasn't happening for me it was hard to trace. The posting by knarl, really helped to get this fixed. Thanks.

Title: Re: Javascript client changes
Post by brixel on Jul 29th, 2010, 2:35pm
I can't play games vs bots, although I can view and play logged games.

When I try to play a bot, I get the board but can't place pieces.  A yellow question mark appears in upper left corner of the window.

I'm using Explorer 8.

Title: Re: Javascript client changes
Post by Fritzlein on Jul 29th, 2010, 7:03pm

on 07/29/10 at 14:35:40, brixel wrote:
I can't play games vs bots, although I can view and play logged games.

When I try to play a bot, I get the board but can't place pieces.  A yellow question mark appears in upper left corner of the window.

I'm using Explorer 8.

Does this happen to you only with the JavaScript client, or also with the Flash client?  (You can change the client from the menu on the left of the game room under Settings -> Game Client.)

Title: Re: Javascript client changes
Post by brixel on Jul 30th, 2010, 9:57am

on 07/29/10 at 19:03:20, Fritzlein wrote:
Does this happen to you only with the JavaScript client, or also with the Flash client?  (You can change the client from the menu on the left of the game room under Settings -> Game Client.)


Thanks, Fritzlein !  Yes, I changed the client to Flash Client V2 with HTTP and it worked. :D

Amy

Title: Re: Javascript client changes
Post by Fritzlein on Jul 30th, 2010, 3:20pm
Good, I'm glad it worked, although there still may be a problem with the Javascript client that Omar would want to track down.



Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.