Unity sample with docker compose

I tried to run the sample here: GitHub - heroiclabs/unity-sampleproject: A sample game called Pirate Panic for Unity engine built with Nakama server..
I’m on windows 10 educational; I installed docker as described there, i downloaded the nakama unitypackage 2.8.
I tried to put the ServerModules folder in the Users folder, and launched the “docker-compose up” from there. Console shows up always same messages:

  • NullReferenceException: Object reference not set to an instance of an object
    PiratePanic.Hand.DrawCard () (at Assets/PiratePanic/Scripts/Menus/Battle/Hand/Hand.cs:91).

  • error loading user cards Error: user cards storage object not found at loadUserCards (index.js:205:20(42))
    UnityEngine.Debug:Log (object).

The game start well but gets stuck immediately showing no cards on the left.
Someone can help me?

1 Like

Hey @adeleGit, which scene are you launching Pirate Panic from?

I’m launching it from Scene01MainMenu

Okay. Could you share your server logs from the console when you reproduce the issue? And I take it you are building a separate build and playing both in the editor and the build simultaneously?

Yes i’m building a separate build and playing editor vs build.
Which console are you talking about? Unity console or another console?
Do you mean the console under nakama in docker app?

The logs from the console you use to run docker compose up will include the Nakama server logs.

PS C:\Users\ServerModules> docker-compose up
Starting cockroachdb … done
Starting nakama … done
Attaching to cockroachdb, nakama
cockroachdb | *
cockroachdb | * WARNING: RUNNING IN INSECURE MODE!
cockroachdb | *
cockroachdb | * - Your cluster is open for any client that can access .
cockroachdb | * - Any user, even root, can log in without providing a password.
cockroachdb | * - Any user, connecting as root, can read or write any data in your cluster.
cockroachdb | * - There is no network encryption nor authentication, and thus no confidentiality.
cockroachdb | *
cockroachdb | * Check out how to secure your cluster: Start a Local Cluster (Secure) | CockroachDB Docs
cockroachdb | *
cockroachdb | *
cockroachdb | * WARNING: running ‘cockroach start’ without --join is deprecated.
cockroachdb | * Consider using ‘cockroach start-single-node’ or ‘cockroach init’ instead.
cockroachdb | *
nakama | + /nakama/nakama migrate up --database.address root@cockroachdb:26257
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:53.731Z”,“caller”:“migrate/migrate.go:140”,“msg”:“Database connection”,“dsn”:“postgresql://root@cockroachdb:26257?sslmode=disable”}
cockroachdb | *
cockroachdb | * WARNING: neither --listen-addr nor --advertise-addr was specified.
cockroachdb | * The server will advertise “b748f2438723” to other nodes, is this routable?
cockroachdb | *
cockroachdb | * Consider using:
cockroachdb | * - for local-only servers: --listen-addr=localhost
cockroachdb | * - for multi-node clusters: --advertise-addr=<host/IP addr>
cockroachdb | *
cockroachdb | *
cockroachdb | CockroachDB node starting at 2021-02-24 16:25:53.9163038 +0000 UTC (took 1.0s)
cockroachdb | build: CCL v19.2.5 @ 2020/03/16 18:27:12 (go1.12.12)
cockroachdb | webui: http://b748f2438723:8080
cockroachdb | sql: postgresql://root@b748f2438723:26257?sslmode=disable
cockroachdb | RPC client flags: /cockroach/cockroach --host=b748f2438723:26257 --insecure
cockroachdb | logs: /var/lib/cockroach/logs
cockroachdb | temp dir: /var/lib/cockroach/cockroach-temp592581884
cockroachdb | external I/O path: /var/lib/cockroach/extern
cockroachdb | store[0]: path=/var/lib/cockroach,attrs=ssd
cockroachdb | status: restarted pre-existing node
cockroachdb | clusterID: 3f88cc3d-ded5-485f-9dbf-2f38cf022a68
cockroachdb | nodeID: 1
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:53.949Z”,“caller”:“migrate/migrate.go:155”,“msg”:“Database information”,“version”:“CockroachDB CCL v19.2.5 (x86_64-unknown-linux-gnu, built 2020/03/16 18:27:12, go1.12.12)”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:53.950Z”,“caller”:“migrate/migrate.go:159”,“msg”:“Using existing database”,“name”:“nakama”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.102Z”,“caller”:“migrate/migrate.go:193”,“msg”:“Successfully applied migration”,“count”:0}
nakama | + exec /nakama/nakama --name nakama1 --config /nakama/data/modules/local.yml --database.address root@cockroachdb:26257
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.213Z”,“caller”:“server/config.go:87”,“msg”:“Successfully loaded config file”,“path”:"/nakama/data/modules/local.yml"}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:285”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“console.username”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:289”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“console.password”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:293”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“console.signing_key”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:297”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“socket.server_key”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:301”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“session.encryption_key”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:305”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“session.refresh_encryption_key”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“server/config.go:309”,“msg”:“WARNING: insecure default parameter value, change this for production!”,“param”:“runtime.http_key”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“main.go:104”,“msg”:“Nakama starting”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“main.go:105”,“msg”:“Node”,“name”:“nakama1”,“version”:“3.1.0+36805731”,“runtime”:“go1.15.7”,“cpu”:8,“proc”:8}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“main.go:106”,“msg”:“Data directory”,“path”:"/nakama/data"}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.222Z”,“caller”:“main.go:117”,“msg”:“Database connections”,“dsns”:[“root@cockroachdb:26257”]}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:25:54.223Z”,“caller”:“main.go:246”,“msg”:“Complete database connection URL”,“raw_url”:“postgresql://root@cockroachdb:26257/nakama?sslmode=disable”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.279Z”,“caller”:“main.go:120”,“msg”:“Database information”,“version”:“CockroachDB CCL v19.2.5 (x86_64-unknown-linux-gnu, built 2020/03/16 18:27:12, go1.12.12)”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.332Z”,“caller”:“server/leaderboard_rank_cache.go:118”,“msg”:“Initializing leaderboard rank cache”}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:25:54.332Z”,“caller”:“server/leaderboard_rank_cache.go:133”,“msg”:“Caching leaderboard ranks”,“leaderboard_id”:“global”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.360Z”,“caller”:“server/leaderboard_rank_cache.go:204”,“msg”:“Leaderboard rank cache initialization completed successfully”,“cached”:[“global”],“skipped”:}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.361Z”,“caller”:“server/runtime.go:550”,“msg”:“Initialising runtime”,“path”:"/nakama/data/modules"}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.415Z”,“caller”:“server/runtime.go:557”,“msg”:“Initialising runtime event queue processor”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.416Z”,“caller”:“server/runtime.go:559”,“msg”:“Runtime event queue processor started”,“size”:65536,“workers”:8}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.416Z”,“caller”:“server/runtime_go.go:2136”,“msg”:“Initialising Go runtime provider”,“path”:"/nakama/data/modules"}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.416Z”,“caller”:“server/runtime_go.go:2160”,“msg”:“Go runtime modules loaded”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.416Z”,“caller”:“server/runtime_lua.go:112”,“msg”:“Initialising Lua runtime provider”,“path”:"/nakama/data/modules"}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.416Z”,“caller”:“server/runtime_lua.go:1070”,“msg”:“Lua runtime modules loaded”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.416Z”,“caller”:“server/runtime_lua.go:1073”,“msg”:“Allocating minimum runtime pool”,“count”:16}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.417Z”,“caller”:“server/runtime_lua.go:1081”,“msg”:“Allocated minimum runtime pool”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.417Z”,“caller”:“server/runtime_javascript.go:497”,“msg”:“Initialising JavaScript runtime provider”,“path”:"/nakama/data/modules",“entrypoint”:“build/index.js”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.492Z”,“caller”:“server/runtime_javascript_logger.go:68”,“msg”:“leaderboard “global” created”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.493Z”,“caller”:“server/runtime_javascript_logger.go:78”,“msg”:“Pirate Panic TypeScript loaded.”}
nakama | {“level”:“warn”,“ts”:“2021-02-24T16:25:54.493Z”,“caller”:“server/runtime_javascript_logger.go:78”,“msg”:“Examples TypeScript loaded.”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.493Z”,“caller”:“server/runtime_javascript.go:1426”,“msg”:“JavaScript runtime modules loaded”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.493Z”,“caller”:“server/runtime_javascript.go:1429”,“msg”:“Allocating minimum JavaScript runtime pool”,“count”:16}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime_javascript.go:1437”,“msg”:“Allocated minimum JavaScript runtime pool”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:592”,“msg”:“Found runtime modules”,“count”:1,“modules”:[“index.js”]}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“search_username”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“swap_deck_card”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“load_user_cards”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“add_random_card”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“handle_match_end”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“upgrade_card”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“reset_card_collection”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“add_user_gems”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:609”,“msg”:“Registered JavaScript runtime RPC function invocation”,“id”:“addnumbers”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:720”,“msg”:“Registered JavaScript runtime Before function invocation”,“id”:“deletegroup”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:1423”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“authenticatedevice”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:1429”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“authenticatefacebook”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.517Z”,“caller”:“server/runtime.go:1450”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“addfriends”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.518Z”,“caller”:“server/runtime.go:1474”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“joingroup”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.518Z”,“caller”:“server/runtime.go:1477”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“leavegroup”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.518Z”,“caller”:“server/runtime.go:1486”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“kickgroupusers”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.518Z”,“caller”:“server/runtime.go:1489”,“msg”:“Registered JavaScript runtime After function invocation”,“id”:“promotegroupusers”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.522Z”,“caller”:“server/leaderboard_scheduler.go:91”,“msg”:“Leaderboard scheduler start”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.522Z”,“caller”:“server/leaderboard_scheduler.go:278”,“msg”:“Leaderboard scheduler update”,“end_active”:"-1ns",“end_active_count”:0,“expiry”:"-1ns",“expiry_count”:0}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.523Z”,“caller”:“server/api.go:129”,“msg”:“Starting API server for gRPC requests”,“port”:7349}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.523Z”,“caller”:“server/api.go:263”,“msg”:“Starting API server gateway for HTTP requests”,“port”:7350}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.530Z”,“caller”:“server/console.go:125”,“msg”:“Starting Console server for gRPC requests”,“port”:7348}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.531Z”,“caller”:“server/console.go:215”,“msg”:“Starting Console server gateway for HTTP requests”,“port”:7351}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:25:54.798Z”,“caller”:“main.go:172”,“msg”:“Startup done”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:42:43.024Z”,“caller”:“server/runtime_javascript_logger.go:68”,“msg”:“after auth called, created: %!s()”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:42:45.220Z”,“caller”:“server/session_ws.go:80”,“msg”:“New WebSocket session connected”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“520adfa6-76bf-11eb-829c-7106fdcb5b46”,“format”:0}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:01.026Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received rtapi.Envelope_MatchmakerAdd message",“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“520adfa6-76bf-11eb-829c-7106fdcb5b46”,“cid”:“0”,“message”:{“MatchmakerAdd”:{“min_count”:2,“max_count”:2,“query”:"”}}}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:01.028Z”,“caller”:“server/session_ws.go:390”,“msg”:“Sending *rtapi.Envelope_MatchmakerTicket message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“520adfa6-76bf-11eb-829c-7106fdcb5b46”,“envelope”:“cid:“0” matchmaker_ticket:{ticket:“747c0833-da03-4760-9779-64dd0329342d”}”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:43:12.781Z”,“caller”:“server/runtime_javascript_logger.go:68”,“msg”:“after auth called, created: %!s()”}
nakama | {“level”:“info”,“ts”:“2021-02-24T16:43:13.146Z”,“caller”:“server/session_ws.go:80”,“msg”:“New WebSocket session connected”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“format”:0}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:17.422Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received rtapi.Envelope_MatchmakerAdd message",“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“cid”:“0”,“message”:{“MatchmakerAdd”:{“min_count”:2,“max_count”:2,“query”:"”}}}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:17.424Z”,“caller”:“server/session_ws.go:390”,“msg”:“Sending *rtapi.Envelope_MatchmakerTicket message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“envelope”:“cid:“0” matchmaker_ticket:{ticket:“87d3f75f-6350-4cab-a2f5-d1c8a741af11”}”}
nakama | {“level”:“error”,“ts”:“2021-02-24T16:43:18.685Z”,“caller”:“server/runtime_javascript.go:437”,“msg”:“JavaScript runtime function raised an uncaught exception”,“mode”:“rpc”,“id”:“load_user_cards”,“error”:“Error: user cards storage object not found at loadUserCards (index.js:205:20(42))”}
nakama | {“level”:“error”,“ts”:“2021-02-24T16:43:18.692Z”,“caller”:“server/runtime_javascript.go:437”,“msg”:“JavaScript runtime function raised an uncaught exception”,“mode”:“rpc”,“id”:“load_user_cards”,“error”:“Error: user cards storage object not found at loadUserCards (index.js:205:20(42))”}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.731Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received *rtapi.Envelope_MatchJoin message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“520adfa6-76bf-11eb-829c-7106fdcb5b46”,“cid”:“1”,“message”:{“MatchJoin”:{“Id”:{“Token”:“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTQxODUwMjgsIm1pZCI6IjI4ZDUzN2VjLTYzOWQtNDg3OC05MzUwLTUyNTcyZmIwNDMwNy4ifQ.EL9jgZ4JCPfo6YA0_LshvPdDwIbIt_MHuk4pk-z_NNc”}}}}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.732Z”,“caller”:“server/session_ws.go:390”,“msg”:“Sending *rtapi.Envelope_Match message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“520adfa6-76bf-11eb-829c-7106fdcb5b46”,“envelope”:“cid:“1” match:{match_id:“28d537ec-639d-4878-9350-52572fb04307.” self:{user_id:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8” session_id:“520adfa6-76bf-11eb-829c-7106fdcb5b46” username:“mcVubKVwxp”}}”}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.732Z”,“caller”:“server/tracker.go:817”,“msg”:“Processing presence event”,“joins”:1,“leaves”:0}
nakama | {“level”:“error”,“ts”:“2021-02-24T16:43:18.819Z”,“caller”:“server/runtime_javascript.go:437”,“msg”:“JavaScript runtime function raised an uncaught exception”,“mode”:“rpc”,“id”:“load_user_cards”,“error”:“Error: user cards storage object not found at loadUserCards (index.js:205:20(42))”}
nakama | {“level”:“error”,“ts”:“2021-02-24T16:43:18.825Z”,“caller”:“server/runtime_javascript.go:437”,“msg”:“JavaScript runtime function raised an uncaught exception”,“mode”:“rpc”,“id”:“load_user_cards”,“error”:“Error: user cards storage object not found at loadUserCards (index.js:205:20(42))”}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.918Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received *rtapi.Envelope_MatchJoin message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“cid”:“1”,“message”:{“MatchJoin”:{“Id”:{“Token”:“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTQxODUwMjgsIm1pZCI6IjI4ZDUzN2VjLTYzOWQtNDg3OC05MzUwLTUyNTcyZmIwNDMwNy4ifQ.EL9jgZ4JCPfo6YA0_LshvPdDwIbIt_MHuk4pk-z_NNc”}}}}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.918Z”,“caller”:“server/session_ws.go:390”,“msg”:“Sending *rtapi.Envelope_Match message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“envelope”:“cid:“1” match:{match_id:“28d537ec-639d-4878-9350-52572fb04307.” size:1 presences:{user_id:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8” session_id:“520adfa6-76bf-11eb-829c-7106fdcb5b46” username:“mcVubKVwxp”} self:{user_id:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8” session_id:“62afecca-76bf-11eb-829c-7106fdcb5b46” username:“mcVubKVwxp”}}”}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.919Z”,“caller”:“server/tracker.go:817”,“msg”:“Processing presence event”,“joins”:1,“leaves”:0}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.937Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received *rtapi.Envelope_MatchDataSend message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“message”:{“MatchDataSend”:{“match_id”:“28d537ec-639d-4878-9350-52572fb04307.”,“data”:“eyJPd25lcklkIjoiZTFlODQzNmYtYTZmZS00ODZmLThiNTktNjQyNGM1ZGYyZGQ4IiwiUGxheWVyIjoiQmxhY2siLCJVbml0SWQiOjAsIkNhcmQiOnsidHlwZSI6IkZvcnQiLCJsZXZlbCI6MX0sIk5vZGVYIjo0LCJOb2RlWSI6MTB9”}}}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.938Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received *rtapi.Envelope_MatchDataSend message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“message”:{“MatchDataSend”:{“match_id”:“28d537ec-639d-4878-9350-52572fb04307.”,“data”:“eyJPd25lcklkIjoiZTFlODQzNmYtYTZmZS00ODZmLThiNTktNjQyNGM1ZGYyZGQ4IiwiUGxheWVyIjoiQmxhY2siLCJVbml0SWQiOjEsIkNhcmQiOnsidHlwZSI6IkZvcnQiLCJsZXZlbCI6MX0sIk5vZGVYIjo0LCJOb2RlWSI6Mn0=”}}}
nakama | {“level”:“debug”,“ts”:“2021-02-24T16:43:18.938Z”,“caller”:“server/pipeline.go:64”,“msg”:“Received *rtapi.Envelope_MatchDataSend message”,“uid”:“e1e8436f-a6fe-486f-8b59-6424c5df2dd8”,“sid”:“62afecca-76bf-11eb-829c-7106fdcb5b46”,“message”:{“MatchDataSend”:{“match_id”:“28d537ec-639d-4878-9350-52572fb04307.”,“data”:“eyJPd25lcklkIjoiZTFlODQzNmYtYTZmZS00ODZmLThiNTktNjQyNGM1ZGYyZGQ4IiwiUGxheWVyIjoiQmxhY2siLCJVbml0SWQiOjIsIkNhcmQiOnsidHlwZSI6Ik1haW5Gb3J0IiwibGV2ZWwiOjF9LCJOb2RlWCI6MiwiTm9kZVkiOjZ9”}}}

nakama | {“level”:“error”,“ts”:“2021-02-24T16:43:18.685Z”,“caller”:“server/runtime_javascript.go:437”,“msg”:“JavaScript runtime function raised an uncaught exception”,“mode”:“rpc”,“id”:“load_user_cards”,“error”:“Error: user cards storage object not found at loadUserCards (index.js:205:20(42))”}

This is the line where i can see the exception thrown.

Thanks @adeleGit, we’ve identified the issue and pushed a fix. Could you clear your player prefs, remove your existing users from the Nakama development console on localhost:7351, and then try again?

1 Like

I downloaded from github the project, imported, it comes with nakama 2.5.1. From releases page on github i can find the unity package only for the 2.7 not for 2.8. I made a mistake telling i was using the 2.8, it was the 2.7. Now if i remove the 2.5.1 it comes with the pirate panic from github, an error for a command NewSocket is found, What version i should use? If i download the project using the 2.5.1 included, i obtain same errors explained in this thread.

Hey @adeleGit sorry I should have specified - check out the latest commit of the Pirate Panic repo itself. No need to update anything else because the dependencies such as Nakama are pinned in the docker compose file.

Now the editor build is working… maybe it was some cache problems (i really didn’t change anything)… but the separate build doesn’t show any card yet.

@adeleGit did you delete the PlayerPrefs for the player build as well?