[google-appengine] Re: AS3 GAE communication

2010-02-28 Thread Ahmed Khalifa
hi,
thanks for the reply ..
actually i have just figured out the major source of the problem .. i
just keep sending too many requests to the server .. since this is a
simple multiplayer arcade game .. both clients should inform the
server of their locations and get a response from it about the
position of the other player ..
this however, made me keep sending requests to the server containing
information about my x&y coordinates and therefore listening for the
response of the server which should contain the x&y of the other
player or at least a default value ..
i figured out that when i slow down the rate by which i (the flash
client) is sending requests to the server .. the server becomes able
to respond and flash could retrieve the values of the position of the
other player in order to render them ..
still, the maximum rate of sending requests that allows the server to
respond in semi-realtime does not allow me to build a seamless
multiplayer arcade gameplay which made me doubtful that there must be
something that i have missed ..
Plus, i was wondering about the capabilities of GAE to support
multiple games played simultaneously .. i don't even know is that a
problem with the bandwidth allowed on appspot or what exactly ..
afterall, i am wondering about the options of space/bandwidth ..etc
that GAE provides to a developer who wants to publish his game
online ..
regards,
A. Khalifa

On Feb 27, 2:48 am, "Ikai L (Google)"  wrote:
> One of the most common Flash HTTP oversights is forgetting to set up
> crossdomain.xml (http://kb2.adobe.com/cps/142/tn_14213.html), something
> which will wreak havoc on your application if this is a game running on a
> social network. Are you able to capture more debugging information from
> Flash? That's where I would start looking, since you don't even see the
> request hitting your App Engine server.
>
> If that's not the case, can you describe in more detail how it isn't
> working? Your description of the problem is a bit vague.
>
> On Fri, Feb 26, 2010 at 11:36 AM, Ahmed Khalifa wrote:
>
>
>
> > Hi all,
> > I am writing an online multiplayer game "the client side is being
> > implemented using Flash ActionScript 3" .. at this point of
> > development i want to keep sending packets back and forth between the
> > flash client and the server which i wrote using the java SDK for
> > GAE ..
> > the problem is:
> >  > but it does not work at all when i tested it on the actual server on
> > the appspot domain>
>
> > for the sake of clarity here's a psudo code of this part:
>
> > client:
> > 1. send var: x
> > 2. receive var: Ox
>
> > Server:
> > 1. receive var: x
> > 2. make it presistent i.e. "store it in the JDO"
> > 3. send back var: Ox
>
> > .
> > any help or ideas ..??
> > regards,
> > A.  Khalifa
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: AS3 GAE communication

2010-02-28 Thread Ahmed Khalifa
hi,
thanks for the reply ..
actually i have just figured out the major source of the problem .. i
just keep sending too many requests to the server .. since this is a
simple multiplayer arcade game .. both clients should inform the
server of their locations and get a response from it about the
position of the other player ..
this however, made me keep sending requests to the server containing
information about my x&y coordinates and therefore listening for the
response of the server which should contain the x&y of the other
player or at least a default value ..
i figured out that when i slow down the rate by which i (the flash
client) is sending requests to the server .. the server becomes able
to respond and flash could retrieve the values of the position of the
other player in order to render them ..
still, the maximum rate of sending requests that allows the server to
respond in semi-realtime does not allow me to build a seamless
multiplayer arcade gameplay which made me doubtful that there must be
something that i have missed ..
Plus, i was wondering about the capabilities of GAE to support
multiple games played simultaneously .. i don't even know is that a
problem with the bandwidth allowed on appspot or what exactly ..
afterall, i am wondering about the options of space/bandwidth ..etc
that GAE provides to a developer who wants to publish his game
online ..
regards,
A. Khalifa

On Feb 27, 2:48 am, "Ikai L (Google)"  wrote:
> One of the most common Flash HTTP oversights is forgetting to set up
> crossdomain.xml (http://kb2.adobe.com/cps/142/tn_14213.html), something
> which will wreak havoc on your application if this is a game running on a
> social network. Are you able to capture more debugging information from
> Flash? That's where I would start looking, since you don't even see the
> request hitting your App Engine server.
>
> If that's not the case, can you describe in more detail how it isn't
> working? Your description of the problem is a bit vague.
>
> On Fri, Feb 26, 2010 at 11:36 AM, Ahmed Khalifa wrote:
>
>
>
> > Hi all,
> > I am writing an online multiplayer game "the client side is being
> > implemented using Flash ActionScript 3" .. at this point of
> > development i want to keep sending packets back and forth between the
> > flash client and the server which i wrote using the java SDK for
> > GAE ..
> > the problem is:
> >  > but it does not work at all when i tested it on the actual server on
> > the appspot domain>
>
> > for the sake of clarity here's a psudo code of this part:
>
> > client:
> > 1. send var: x
> > 2. receive var: Ox
>
> > Server:
> > 1. receive var: x
> > 2. make it presistent i.e. "store it in the JDO"
> > 3. send back var: Ox
>
> > .
> > any help or ideas ..??
> > regards,
> > A.  Khalifa
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] AS3 GAE communication

2010-02-26 Thread Ahmed Khalifa
Hi all,
I am writing an online multiplayer game "the client side is being
implemented using Flash ActionScript 3" .. at this point of
development i want to keep sending packets back and forth between the
flash client and the server which i wrote using the java SDK for
GAE ..
the problem is:


for the sake of clarity here's a psudo code of this part:

client:
1. send var: x
2. receive var: Ox

Server:
1. receive var: x
2. make it presistent i.e. "store it in the JDO"
3. send back var: Ox

.
any help or ideas ..??
regards,
A.  Khalifa

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.