Git Product home page Git Product logo

Comments (6)

novabyte avatar novabyte commented on May 29, 2024

@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.

tucano avatar tucano commented on May 29, 2024

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.

novabyte avatar novabyte commented on May 29, 2024

@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.

tucano avatar tucano commented on May 29, 2024

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.

FoxelFoxy avatar FoxelFoxy commented on May 29, 2024

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.

raptor0999 avatar raptor0999 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.