I was wondering If there is a plan to support Firebase or other kinds of a backend service for stuff like : Database-File Storage- Push Notifications-Analytics…etc.
On the same note, what about Ad Support, and what ad networks are supported by Defold?
I’ve been interested in adding support for Defold to Nakama server for some time. It includes lots and lots of gameplay features for all kinds of different live games and you can extend the server with custom code written in Lua. I’m biased (as one of the lead developers on the server) but believe it’s a great fit for a Defold game developer.
The latest release of the game server on Monday next week adds compatibility changes to our client/server protocol (JSON support) as well as the current protobuf3 API. This should give me all I need to build a client for Defold . I’ll try to keep some development notes here as I progress.
Hi @AGulev So I’ve been delayed on a new Defold client again but in the meantime if you’re feeling adventurous you could use the HTTP functions provided in the Defold SDK to execute against Nakama server and create your own mini client.
The fastest way to start with the latest version of the server is to use this Docker compose file.
docker-compose -f ./docker-compose.yml start
Then have a look at the latest version of our JavaScript client which implements the HTTP API. Let me know if you have any questions on how to use the API. We also have an openapi specification if it helps.
@britzl That would be awesome. We’ve built a code generator for the JavaScript client which uses the openapi specification which you can use if it’d help.
Yep, it will be super cool to try Nakama server as backend for “Look, your loot!”. Now this can be usefull for players progress + leaderboards and in futher for multiplayer mode.
An update for you. Nakama 2 official release is out! Yay!
I should have time to work on a client with the code generator in the next few weeks. A few questions on the latest state of things for HTTP, JSON, and WebSockets with Defold:
Is it possible to use plain old LuaSocket for HTTP and WebSockets within Defold engine?
What is the most commonly used / preferred JSON library chosen by Defold engineers?
Yes this is exactly what Gamesparks does for Defold. Works great.
Only problem we have had is that the socket solution isn’t fully IPv6 compatible and needs some extra lua-love when connecting to fully work.
Edit: Check this forum thread for more info: Colyseus - Multiplayer Game Client & Server
I use David Kolf’s JSON module for Lua 5.1/5.2. Haven’t had any problem with it.
I was hoping for some sample code integration with Defold using Nakama server.
I’m currently using Colyseus, it works fine with my mobile and web builds so far. However, eventually I need leaderboards etc so I’m looking for other alternatives that already have these built-in so I don’t have to reinvent the wheel. I’ll take a look at PlayFab and GameSparks. Thanks!
Hey @GreenArrow. Yet again I’ve fallen behind on the plans for an official Defold client. What I can say is that we have a REST API which is pretty straightforward to use. It’s got a Swagger spec here:
That gives you full access to all the game server APIs which aren’t on the socket.