Stencyl 3.4.0 is now out. Get it now!

UDP Extension : Near realtime online multiplayer network communication

mdotedot

  • *
  • Posts: 1260

« Last Edit: July 26, 2017, 10:43:18 pm by mdotedot »
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

yoplalala

  • *
  • Posts: 1412
Nice mdotedot ! I won't use is for now, but glad it's exist :)

Joraanpe

  • Posts: 288
As pro as always my friend, keep it up!

Donni11

  • *
  • Posts: 2174
Really cool ! Nice job :) !
The Stencyl Discord Channel , Where the real Stencyl work happens ;).

mdotedot

  • *
  • Posts: 1260
For those who want to test with my server:

Windows:
UDP_WINDOWS.zip

Mac:
UDP_MAC.zip

Android APK:
UDP.apk

I would like to see some Speed results :D

Kind regards from
M.E.

P.S. As of July 2015 this does not work since server has been unavailable for this.

« Last Edit: April 01, 2017, 11:46:51 pm by mdotedot »
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

ceosol

  • *
  • Posts: 2129
It was varying between .03 and .07. So that was 30-70 milliseconds? That isn't too bad for latency between clients.

mdotedot

  • *
  • Posts: 1260
Thanks Ceosol !! I got you into the ring and I was on my Android .. Way cool!

Kind regards from
M.E.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

yoplalala

  • *
  • Posts: 1412
Between 0.3 and 0.4 mostly, it went once over 0.7

ceosol

  • *
  • Posts: 2129
Thanks Ceosol !! I got you into the ring and I was on my Android .. Way cool!

Kind regards from
M.E.


I was on my mac, so cross-platform is functional too.

letmethink

  • *
  • Posts: 2531
The ping isn't showing on my android device btw.
~Letmethink

mdotedot

  • *
  • Posts: 1260
Thanks guys for the numbers.
One possible explanation for the difference is that europeans have lesser hobs to my server  but the speed of the source internet providers network can be accountable as well.
The numbers yolalala gives are bad for near realtime coordinates responses.

@LetMeThink : There are new versions of the demo uploaded which checks for connection and re-connect once there is an error.

Best regards from
M.E.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

havana24

  • *
  • Posts: 482
I've tried with two .exe opened at the same time, sharing via tethering wifi my phone connection.
Average is 0.3/0.4!
I'm from Italy.

The APK unfortunately doesn't run on my Galaxy Note. I see only a black screen for a few seconds and after the game crash with no alert.
Anyway really good job! :)

-Alessandro
My Website: www.havana24.net

mdotedot

  • *
  • Posts: 1260
Cool Havana24 /alessandro; tethering WIFI through phone connection (!!!!) and then a 0.3  second speed.That is the same amount of speed that I have on my 3g android phone but when I'm on WIFI it is 0.04

Too bad you have problems with the APK. I sometimes get that when I'm publishing to APK but I usually get the app to work when I restart it. I thought is was to blame due to repetative installation of the same app but propably something else is going on with this !

Thank you for your feedback!

Best regards from
M.E.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

havana24

  • *
  • Posts: 482
What do you mean exactly with "You need your own server"?
I mean, I've lots of hosting with mysql and php active, how can I check if I have the port and the things I need to let this script work?
Or I need something different?

Thanks!
-Alessandro
My Website: www.havana24.net

mdotedot

  • *
  • Posts: 1260
Hello Alessandro,

You need terminal access and most hosting services won't allow that unless you go for virtual private server.
Sometimes revert to as Linux-Vserver or  Hybrid server.  (    https://en.wikipedia.org/wiki/Virtual_private_server )

Amazon provides a free server that you can use but I'm not sure if the global IP you would need for accessing a UDP socket server is among the free services you get.

If you come across a free server where you can start and keep processes running then I would be interested to make a Stencyl demonstration server just I did for the Scoreboard extension ; which is also going to be used with the future turn-based extensions I'm making.

Best regards from
M.E.
Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/