Share Your Code

AutoLAN

Posted by M.Y.developers, Posted on July 12, 2012

GitHub URL: 
https://github.com/mydevelopergames/AutoLAN.git

AutoLAN is now free for everyone to use and learn from! If you want to get started in local networking here is the place to start!

AutoLAN is a library for Corona SDK library that allows you to create a new multiplayer game or networking application!
AutoLAN uses the a robust client server based networking model and is built on top of the high speed UDP transport layer. Connecting device A to device B is as simple as 5 lines of code and clicking a connect button! Automatic network discovery makes it simple for your end user and more sales for you!

Please see the product page for more information:
http://www.mydevelopersgames.com/AutoLAN/


Replies

Satheesh
User offline. Last seen 7 hours 32 min ago. Offline
Joined: 25 May 2011

Woah! Really nice of you guys!

silverthorax
User offline. Last seen 10 weeks 5 days ago. Offline
Joined: 8 Jun 2011

Awesome!

And to all developers: this is a GREAT library, by the way, a must-try.

M.Y.developers
User offline. Last seen 17 hours 34 min ago. Offline
Joined: 24 Apr 2011

Thanks for your support! The php script should be on github now for those looking for it. Let us know if you have any questions we will do our best to help you out.

Richards App Store
User offline. Last seen 13 weeks 14 hours ago. Offline
Joined: 15 Dec 2011

This is awesome! I was planning on using pubnub for my multiplayer game however I didn't want the outrageous costs. Love this solution and I'll be using it!

canupa.com
User offline. Last seen 9 weeks 6 days ago. Offline
Joined: 20 Jun 2011

oh wow thank you!

MagnoliaPower
User offline. Last seen 26 weeks 3 days ago. Offline
Joined: 8 Mar 2010

Hi,
Thanks a lot, I was trying to find the way of bying it on your website ;-)
Does it mean that this will not be updated to follow the evolution of corona ?

Richards App Store
User offline. Last seen 13 weeks 14 hours ago. Offline
Joined: 15 Dec 2011

I was also wondering where you purchase it on your website, I couldn't find a buy button anywhere.

M.Y.developers
User offline. Last seen 17 hours 34 min ago. Offline
Joined: 24 Apr 2011

Hello All,


Does it mean that this will not be updated to follow the evolution of corona ?

We will still update once certain technologies such as bluetooth are available.


I was trying to find the way of bying it on your website

No need to purchase, its creative commons open source now. The only thing we ask you not to do is sell the library itself. Other than that you are free to do whatever you wish with it, including for commercial purposes. With a bit of tweaking you can even run it on plain Lua on a computer and you should be able to interface computer-> device and vice-versa. If you would like to send us donations however the please send it to us via paypal. Our id is:
mydevelopergames@gmail.com

Regards,
M.Y. Developers

MagnoliaPower
User offline. Last seen 26 weeks 3 days ago. Offline
Joined: 8 Mar 2010

Beside the price, how do you compare with pubnub ? It seems pubnub uses json a lot to exchange data and they have cloud to manage high trafic.

Autolan should work on our own server, but without the response time of a cloud, which maybe difficult to manage real time multiplayer game ?

As far as you know, would autolan could manage up to 5 player at the same time on a casual game (not a wow-like game ;-d) ?

Satheesh
User offline. Last seen 7 hours 32 min ago. Offline
Joined: 25 May 2011

Considering a local Wifi (i.e a non internet game), Autolan can support 6 players(maybe more, but we have a game in the store which supports up to 6 players, hence I know)

haven't tried more than 2 players in internet though!

brad.herman
User offline. Last seen 19 weeks 13 hours ago. Offline
Joined: 10 Dec 2011

It's amazing and wonderful that you have made this free!
Thank you.

M.Y.developers
User offline. Last seen 17 hours 34 min ago. Offline
Joined: 24 Apr 2011

@Magnolia,


how do you compare with pubnub ?

Currently AutoLAN and pubnub are two different services. Pubnub is for sending messages over the internet, the speed at which it arrives is probably dependent on the latency to the server+time to process the message in the cloud+the latency from the server. This is obviously not appropriate for local networking where low latency is achievable allowing you to make real time games. AutoLAN is all p2p so the only limiting factor is the latency between the peers.

Regards,
M.Y. Developers

Richards App Store
User offline. Last seen 13 weeks 14 hours ago. Offline
Joined: 15 Dec 2011

Does the matchmaking over the internet still work? And can your guys' server still be used for testing?

M.Y.developers
User offline. Last seen 17 hours 34 min ago. Offline
Joined: 24 Apr 2011

Hello Richard,

The matchmaker should be running now. Since we do not have a VPN currently dreamhost seems to kill our matchmaker thread after a certain amount of time. If it does not work let us know, we will restart it for you.

Regards,
M.Y. Developers

Richards App Store
User offline. Last seen 13 weeks 14 hours ago. Offline
Joined: 15 Dec 2011

Has anyone had any trouble with the NOOK Color using AutoLan? I've been in contact with M.Y.developers to fix this problem, but it seems like it is a NOOK bug, not an autolan bug. The problem lies in udp packet publishing I believe. Whenever I host any game on any device or simulator, any other device is able to see that game and connect to it, except for the NOOK. The NOOK detects the game, however when it attempts to connect it just times out and returns an autolanconnectionfailed event. Also, when a game is hosted on the NOOK, no other device or simulator even sees it whatsoever. So I believe this is a UDP Packet Publishing error since the nook can see servers but when autolan tries to connect the NOOK to the server it times out because the NOOK most likely is not publishing the UDP packets to the server, and no device or simulator can see the NOOK probably because the NOOK isn't publishing any packets for a device or simulator to recieve. Sorry for the long wall of text, but I'm really curious to know if anyone else with a NOOK Color or Tablet has come across this. Thanks for any info!

overtorment
User offline. Last seen 1 week 2 days ago. Offline
Joined: 31 Aug 2011

Hello guys, I've made a free opensource alternative with interface similar to pubnub.
Here it is http://developer.coronalabs.com/code/noobhub
Latency is much lower than pubnub, guaranteed messages order and delivery (socket connections)

Richards App Store
User offline. Last seen 13 weeks 14 hours ago. Offline
Joined: 15 Dec 2011

Hello, I'm still hoping I can find another developer who can answer my question. I have another question, if I am using 2 devices on the same network, and I search for a game, if I have a matchmaker URL set will the devices try to connect over LAN and ignore the internet server?

supremevc
User offline. Last seen 1 year 20 weeks ago. Offline
Joined: 14 Nov 2012

A lot of bugs inside. Internet server is down. Support forum is spammed. I think this project is dead.

jurica007
User offline. Last seen 19 weeks 6 days ago. Offline
Joined: 25 Sep 2012

Hello there!
I'm having some difficulties setting up AutoLAN. After a lot of time i have noticed that on GitHub link there are couple of different versions of Client and Server .lua files (versions 1.2 and 1.3). What's up with that?I have enabled the php script on my own server, discovery between host and client works, but when i want to connect it goes in infinite loop in the "handshaking proces" . So my questions is which files are the correct ones to use (1.2 or 1.3)? Can you please upload testServerTCO.php file that you are using on your server (maybe you have corrected something afterwards ).

Can someone please send mi their working combination of Client.lua, Server.lua and php script?

Thank you very much!
Jurica