Defold has announced that they have made this compatible with their engine. Maybe we should do it for Gideros too?
https://heroiclabs.com/nakama-opensource/index.htmlAdapting to other engines:Adapting the Nakama Defold client to another Lua based engine should be as easy as providing another engine module when configuring the Nakama client.
The only file that needs converting & submitting to their github:
https://github.com/heroiclabs/nakama-defold/tree/master/nakama/engine
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com
Comments
I have tried ar2sawseen draw together example and it still works fine today (I believe the code is 8 years old!!!) but it's only for local server (devices connected to the same network).
What can we do with nakama? store players positions, health, ???SEE THEIR GITHUB PAGEThe problem is how to set up the server using docker,... it seems very complicated.
Likes: SinisterSoft
(on init of the API you specify which engine you would like to use)
Likes: jdbc
https://deluxepixel.com
I will create a game test as soon I can.
Likes: MoKaLux
https://deluxepixel.com
https://github.com/britzl/defold-websocket
https://github.com/britzl/defold-luasocket
https://github.com/britzl/defold-luasec
This project are websocket lua modules for Defold + lua projects, sure it could be work with some minor adaptations to set a websocket connection.
Nakama client uses websocket for creating a permanent and bidirectional channel with server in order to submit request to Nakama server and receive data from server in real-time.
Likes: MoKaLux
do we really need this as solo devs?
I think this is only suitable for small to big teams with one person dealing with the server coding.
Otherwise as (at) apollo14 mentioned why not use Unreal server instead?
Gideros only supports websocket for HTML games not for desktop, android or ios.
I do not know Unreal server but sure you will need also a Gideros client to connect to Unreal server.
https://deluxepixel.com
https://deluxepixel.com
https://blog.stanko.io/do-you-really-need-websockets-343aed40aa9b
My test project includes a colyseus version of the websocket adapted from Defold.
https://github.com/jdbcdev/beatemup
The websocket replacing parts of lua code for Gideros:
https://github.com/jdbcdev/beatemup/tree/master/assets/websocket
I have no much time now for adapt the Nakama client, but this is a beginning.
https://github.com/name5566/leaf/blob/master/TUTORIAL_EN.md
To install Nakama Server on Windows or Linux, just follow the official documentation for binaries. Two servers must be installed: cockroach as database server and nakama server.
Do not use installation based on Docker. I have tried in Ubuntu machine but it does not work and it is more difficult to handle it without some knowledge in Docker containers.
Likes: MoKaLux, SinisterSoft