|
||||||
Title: Arimaa Server Protocol - bugs Post by borg on Mar 12th, 2006, 6:57pm my gui is in progress, but there are a lot of problems with the protocol. i can login and find open games. the response from the server is as expected, it works already fine. next step is to reserve a seat: Code:
first: why there is a "role" option? with the response of "action=mygames" i already got the role. second: when i try "action=reserveseat&sid=...&gid=..." (with my sid and the gid i got from "action=mygames") i get following as response: Code:
huh? but the seat is reserved for me, i can look it up in the original webfrontend. another logical bug: i can find "invited me games" but there is no option to accept games someone invited me to. |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by ajhager on Mar 13th, 2006, 3:22am Hello borg, I too am writing a web client in my Arimaa program. I've got the protocol code done, so if you have any questions, feel free to ask. There are some bugs in the protocol, but I've sent a report of them to Omar. (I can send you what I've found if you'd like. ) About what you've posted: I'm not getting the error you got when reserving a seat. Are you still getting it? Next, although I can query for invitedmegames, I don't see any invites even though they are there. Are you seeing the invites? Since I can't see them, I can't test it, but since invitedmegames returns game info just like mygames and opengames, I'm assuming you just reserve a seat, sit, etc. like normal. |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by borg on Mar 13th, 2006, 9:35am on 03/13/06 at 03:22:57, ajhager wrote:
you have to commit the opposite of the role you got from the action=mygames query. otherwise it will not work. this is a bit strange, i think the "role"-option is redundant in this case. but with the knowledge of this it works for me too. |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by borg on Mar 13th, 2006, 9:41am on 03/13/06 at 03:22:57, ajhager wrote:
same for me. on 03/13/06 at 03:22:57, ajhager wrote:
oh, this sounds logical ;D on 03/13/06 at 03:22:57, ajhager wrote:
perhaps you can post bugs and improvement suggestions etc. in this thread. omar can read it here too, but we can better discuss about it here. |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by ajhager on Mar 13th, 2006, 1:01pm Sounds good to me borg. I don't have a lot of time at the moment, so here is a quick paste from the email I sent omar. 1. Querying games I've been invited to returns 0 games no matter what. 2. Reserving a seat returns the gsrul as '/client1gs.cgi'. It should return the absolute path like creating a game does. 3. sending a move returns error='' or ok='', not error='' or sid='',side='',role='', as the protocol specification says. 4. For sending a takeback request, one of the values it asks for is takeback=req. what value is req supposed to be? I've tried everything I can think of to no avail. Takeback replies work great on the other hand. 5. What effect does leaving a game have? I've sent the leave game action, gotten an ok=1, but i could still get the game state, make moves, etc. And it had no visual effect on the other end either ( flash client ). 6. Through the client I was able to reserve a seat with Arimaanator and play, but through the website it wouldn't let me because I hadn't worked my way high enough in the bot ladder. Until later... |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by borg on Mar 14th, 2006, 10:19am on 03/13/06 at 13:01:03, ajhager wrote:
mh... "http://arimaa.com/arimaa/gameroom/client1gs.cgi" is not existing. where do i find the client1gs.cgi? it should really return the absolute path. edit: ah, it is http://arimaa.com/arimaa/gameserver/client1gs.cgi |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by omar on Mar 14th, 2006, 4:31pm on 03/13/06 at 13:01:03, ajhager wrote:
Thanks for the bug report Aaron. Some of these got introduced when I modified the protocol to make it a little cleaner. 1. Made changes to fix it; needs to be tested. 2. Made changes to fix it; needs to be tested. 3. Protocol documentation was wrong; changed the documentation. 4. req is just the literal string "req"; it's not a value that changes. 5. Leaving the game just lets the opponent know you have left; it does not end the game. The star in front of the players username will be removed to indicate the player is not present. 6. There really isn't any restriction on which bots you can play. The bot ladder just makes it seem that way by not giving 'play' links to higher bots than the first one. Omar |
||||||
Title: Re: Arimaa Server Protocol - bugs Post by ajhager on Mar 15th, 2006, 3:25am Thank you so much Omar. I definately appreciate all your hard work. 1. The game invites now do show up wonderfully. They are missing the gid field though. Everything else seems good. Once my gui for online play is further along, I will test everything more rigorously. |
||||||
Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |