Hello,
Since Gideros is more for games, I guess it would make sense to ease up multiplayer game development. So question, is there something on the road map, something planned for multiplayer games. Like one on one mobile games, or one phone hosts game and other devices connect to it.
From other platform experience (I've done it through sockets, and my knowledge in networking is quite limited) it was quite a pain. So it would be really great to have more abstraction, you know, easy function to discover all devices in LAN, establish connections, etc.
And I'm not talking about GameCenter, or BonJour, cause their platform specific. It would be great to have something crossplatform.
So any plans/ideas?
Maybe something usable already, since I see Gideros player has a great communication in Local WiFi.
BTW: Does Gideros player broadcast all the time, for computer to discover it? How does it really work, it would be a great insight where to start.
Comments
We're planning to add raw sockets through an easy interface. But it's still hard to implement a good p2p gaming network system. (It can involve some hard to use techniques like NAT Traversal, UDP hole punching, etc)
About the connection between Player and Studio: Player is the server and Studio tries to connect it on every 0.5 seconds through given IP address (on port 15000). It's a simple system and doesn't include broadcasting.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Well, guess I will use central server through http right now. Because do not really want to go back to raw sockets :-SS
@OZApps, it seems so.
But have some future ideas, where probably sockets we'll be needed, so we'll see what atilim would have implemented then
Each game server, which would usually be hosted on one of the devices, is a separate file.
I don't know much about server side programming but about these two options:
1. Poll the server in every 1-4 secs? with http request
2. Create a socket connection to the server and keep it alive
I don't know which one is better.
afaik, you cannot keep alive more than ~65000 sockets on the server side. Also, opening and closing sockets all the time can be as harsh as http requests. (so it seems it's a tough decision)
My guess would be, that HTTP also has more overhead, meaning it consumes more bandwidth than Sockets, which can be quite an issue, when you are using it on mobile device and paying for sent/received data volume.
Next step of my project is to have each player playing in their own devices. I'm trying Luvit on the server side and URLLoader on gideros client side. But I'm new to server side programming, any help with my http server will be appreciated.
Any suggestion will be great to!
Carlos
Likes: phongtt
I haven't used Moai (apart from a brief investigation) but one of the seemingly great things is that your server logic can be written with Lua. If we had a compatible system over here one could choose whether the host your own server or, for higher bandwidth apps, buy into the Moai hosting.
Best regards
@atilim, following the the Moai model might a good way forward for Gideros Mobile too?
i prevously wanted to use moai because of that cloud for (archievements, highscore list and such), but i dont like the moai api for the app itself, gideros is nicer and looks more completly and is well better documentated and more targeting the stuff that i need for making some gamies.
so it would really great if we could use gideros for the game , and the moaicloud stuff for the game data hosting stuff.
or maybe-baby there will be something similar for gideros later?
We are more focused on SDK and IDE at the moment and there are still things to be done there according to our roadmap. Building a backend to support gamers for download analytics, IAP stats, leaderboards, badges, crash analytics, log analytics, .. is very tempting, but resources are not enough to start with such a project, to be fair. It also deserves a thorough business model investigation to decide whether going that direction is feasible or not. @bowerandy @katze I think this answers your question(s).
They use javascript but it seems like something like this would make turn based games very easy to implement multiplayer in.
Anyone see these new services and know more about it?
edit: I should mention check out the examples to see how cool these services are.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
We have just launched a new service purely focused for games developers.
Our mission is handle the ugly server side stuff and let you focus on making great games.
Visit us http://gameminion.com and I invite you to register.
Would love to get feedback from the GiderOS community.
Regards,
-M
Likes: phongtt
regards