Comments (6)
@tucano Are you running Nakama with the code modules needed for the multiplayer demo? Please check the server logs to see if the runtime modules are loaded.
from nakama-godot-demo.
Hello @novabyte I see this in the server logs
nakama | {"level":"info","ts":"2021-04-12T13:18:14.945Z","caller":"server/runtime.go:503","msg":"Found runtime modules","count":2,"modules":["world_control.lua","world_rpc.lua"]}
nakama | {"level":"info","ts":"2021-04-12T13:18:14.945Z","caller":"server/runtime.go:518","msg":"Registered Lua runtime RPC function invocation","id":"register_character_name"}
nakama | {"level":"info","ts":"2021-04-12T13:18:14.945Z","caller":"server/runtime.go:518","msg":"Registered Lua runtime RPC function invocation","id":"remove_character_name"}
nakama | {"level":"info","ts":"2021-04-12T13:18:14.945Z","caller":"server/runtime.go:518","msg":"Registered Lua runtime RPC function invocation","id":"get_world_id"}
from nakama-godot-demo.
@tucano Ok great that all looks right. Do you see any errors in the logs which would indicate a problem with the client when it sends messages to the server? What version of Godot engine do you use?
from nakama-godot-demo.
In the client, I can login and create a character. But, when I click on the character to enter in game the client do not do nothing.
Client logs:
=== Nakama : DEBUG === Sending async request: MatchJoin<match_id=4a09acac-9109-434b-af38-02baba689d55.nakama1, token=Null, metadata=Null>
=== Nakama : DEBUG === Resuming response: 1: {cid:1, match:{authoritative:True, label:Social world, match_id:4a09acac-9109-434b-af38-02baba689d55.nakama1, self:{session_id:857a4691-9b92-11eb-86d5-7106fdcb5b46, user_id:fd45e508-e336-4a1b-bfd9-a14020e49572, username:[email protected]}}}
=== Nakama : DEBUG === Sending async request: ChannelJoin<persistence=False, hidden=False, target=world, type=1>
=== Nakama : DEBUG === Resuming response: 2: {channel:{id:2...world, room_name:world, self:{session_id:857a4691-9b92-11eb-86d5-7106fdcb5b46, user_id:fd45e508-e336-4a1b-bfd9-a14020e49572, username:[email protected]}}, cid:2}
No more logs after that. Godot engine 3.2.3 and I am running the client directly from the godot interface (with play)
from nakama-godot-demo.
is there any solution to that?
I'm kinda stuck on the same thing, I can create accounts/chars but as soon as I try to login into the game world nothing happens.
from nakama-godot-demo.
I've been working on learning Nakama with Godot and happened upon this error as well.
Just wanted to let you know that the fix for it is to open up NakamaRTAPI.gd under addons/com.heroiclabs.nakama/api and edit line 10 "presences" to be required: false instead of required: true. Found the solution through: heroiclabs/nakama-godot#58
Also, you may want to make sure that metadata is relayed when joining match as well as referenced in: heroiclabs/nakama-godot#59
And also, you now have to add a match_signal function in your world_control.lua server module, as referenced here: https://github.com/heroiclabs/nakama/blob/master/data/modules/match.lua
Hopefully Heroic Labs can update this demo/tutorial; I understand that not many people have used it, but it would be nice not to have to stumble through and trace code to get a demo working.
from nakama-godot-demo.
Related Issues (20)
- Add a PlayerData autoload to store the player's data between scenes. HOT 1
- Rename Connection into Server?
- Changing the character's color ingame freezes the player
- Messages don't appear in the chat
- assert fail HOT 6
- BSOD after enabling Virtualization Mode for Dockers HOT 2
- Error Code 8: HTTPRequest Failed! [Windows 10 Home] HOT 9
- Character is not creating/accessing HOT 4
- The created character does not come to the character list. HOT 3
- Docker image and nakama HOT 1
- Help me,i need you very much. HOT 2
- Error Code 5: Can't create char [WINDOWS 10 Home] HOT 4
- Please add a google auth or facebook auth example HOT 3
- Please help 😭 HOT 4
- Does not seem to work with nakama 3.0 HOT 3
- 8-way movement HOT 1
- get_child: Index p_index = -1 is out of bounds (data.children.size() = 0). HOT 1
- Typo in ServerConnection.gd
- Coversion to Godot 4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nakama-godot-demo.