heroiclabs / nakama-godot-demo Goto Github PK
View Code? Open in Web Editor NEWA demo project with Godot engine and Nakama server.
License: Other
A demo project with Godot engine and Nakama server.
License: Other
Please add a google authorization or Facebook authorization example
Following the MainMenu, the connection code should move up the node tree.
I have successfully deployed to the server, but the delay seems to be a bit high, how can I cancel the simulation delay?
Hi,
I tried to use this demo to study about Nakama and Networking stuff.
I've setup a Nakama Server in a VPS (Ubuntu 19.10) and, so far, it works! I can access Nakama Dashboard and connect using this Demo Client.
The problem is: After a register/connection pops up a Character Creation (Select color and name). After this process our Character isn't created. My list is totally blank:
If I try to 'force' a connection without select a character this error appears:
I think this is happening because my selection is null.
So, I keep looking at codes and, after unsuccessful tries I decided to working on your tutorial.
It works and, at auth, I used my previous created user ([email protected]) and, for my surprise - at Nakama Dashboard - it creates two characters at user storage. So I thought: lets try to connect now at our Demo Version and:
I guess there is so connecting problem when we try to access our server.
TY!
I'm in the process of rewriting the game's code to better separate concerns (794e3ca and 2976cf5). The goals are to reduce coupling and to have a single point of communication with the server in each scene:
Apache 2.0 for code and CC-By-SA 4.0 for the art.
I just added my server config and was able to to register and login a user, but then I cannot select a created game character and when I just hit login it crashes
E 0:00:39.168 get_child: Index p_index = -1 is out of bounds (data.children.size() = 0).
<C++-Quellcode>scene/main/node.cpp:1296 @ get_child()
CharacterList.gd:61 @ get_character_data()
CharacterList.gd:67 @ get_selected_character()
CharacterSelector.gd:38 @ _on_LoginButton_pressed()
ERROR: get_child: Index p_index = -1 is out of bounds (data.children.size() = 0).
At: scene/main/node.cpp:1296
Greetings,
I was trying to test and learn about Nakama
however, I failed from the first step which ( setting up Nakama )
once i run docker-compose -f docker-compose.yml up inside nakama folder i get this error :
Creating nakama ... error
ERROR: for nakama Cannot create container for service nakama: Conflict. The container name "/nakama" is already in use by container "c08f2e484a16335da155834585e94a1ef9cd09a7550649f74c4faecfab18a59d". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for nakama Cannot create container for service nakama: Conflict. The container name "/nakama" is already in use by container "c08f2e484a16335da155834585e94a1ef9cd09a7550649f74c4faecfab18a59d". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.
I made sure before doing this command that i dont have any images or containers
I was trying to use Godot 4 to run this project and used godot editor's auto-conversion function to tranfer the entire demo to Godot 4, but always something wrong with the coverted file and cannot execute.
Just wondering could you guys help update the demo so that it is compatible with godot 4 client
or at least upgrade those two autoload file, it would be helpful for me to learn the godot 4 version of nakama client
Hello, once the Bash throws me the "" msg ":" Startup done "}" I proceed to run the project in godot, but in the registry part I get the following error "Error Code 8: HTTPRequest Failed!" I have been trying to find what it is, however I have not managed to solve it, I would appreciate the support since I am very interested in continuing to test the project, regards
All the code is in one place, it needs to be split up. Also, after redesigning the menu, there are some parts that should be removed.
I get the following error when trying to log in
"Parser error : Expected ')' in expression" referring to this line of code:
"assert(state_positions.has(user_id), "Server did not return valid state") "
Steps to reproduce:
I Installed Docker On Windows.
I Opened the terminal and navigated to the nakama/ directory.
I ran the command run boot.bat in Windows.
I got the message "Startup done".
Then I created 2 separate accounts (I checked on the Nakama Server, they are existing accounts)
and tried to log in, got that error
Hello I am testing the demo with a nakama server 3.1.2
In the docker-compose I have:
nakama:
container_name: nakama
image: heroiclabs/nakama:latest
Everything seems to work fine and I can creare a user and login, but when I try to enter in the game (socket connection) the client disconnect
{"level":"info","ts":"2021-04-12T12:55:26.339Z","msg":"New WebSocket session connected","uid":"068c04b7-6cbd-4d4a-9b60-9303b7088629","sid":"4c725181-1b61-4f6c-bf69-c484642ed0f3","format":0}
{"level":"info","ts":"2021-04-12T12:55:26.385Z","msg":"Match started","mid":"f7c75cf2-41a7-4343-ade2-9d67e6c920d2"}
{"level":"info","ts":"2021-04-12T12:56:16.405Z","msg":"Closed client connection","uid":"068c04b7-6cbd-4d4a-9b60-9303b7088629","sid":"4c725181-1b61-4f6c-bf69-c484642ed0f3"}
Best Regards
Im getting this error after trying to run this function (trying to connect to the server)
These are all the variables associated with the function
var client := Nakama.create_client(Server_KEY, "127.0.0.1", 7350, "http")
var Session : NakamaSession
var Socket : NakamaSocket
func Connect_to_server_async():
Socket = Nakama.create_socket_from(client)
var result : NakamaAsyncResult = yield(Socket.connect_async(Session), "completed")
if not result.is_exception():
Socket.connect("closed", self, "Nakama_Socket_Closed")
return OK
return ERR_CANT_CONNECT
Invalid get index 'token' (on base: 'Nil').
Hi,
to enable Dockers to run, i needed to enable Virtualization mode from the BIOS.
After that my pc crashed 2 times in a row (Blue Screen, aka BSOD :( )
Any known fix for this ?
Sorry if this isnt directly related
How i can make the player move in any four directions instead of just the x-axis (left and right)?
The tutorial in documentation doesnt seems to work in this case (https://docs.godotengine.org/en/stable/tutorials/2d/2d_movement.html)
The colors are too dull compared to the background now
The rationale is that through that singleton, we send requests to the server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.