Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. gurulantern
  3. Posts
  • Profile
  • More
    • Continue chat with gurulantern
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

Posts made by gurulantern

RE: Can't run example from Colyseus Unity SDK, got JsonSerializationException (solved)

@wdemo

Thanks! I appreciate your response.

posted in Questions & Help • 17 Aug 2022, 18:01
RE: Can't run example from Colyseus Unity SDK, got JsonSerializationException (solved)

Hi @wdemo,

I'm currently trying to implement your temp solution. How do you alter your packages usually? I tried a few other solutions suggested on the internet and they don't seem to let me get through building without errors.

posted in Questions & Help • 13 Aug 2022, 19:13
RE: Can't run example from Colyseus Unity SDK, got JsonSerializationException (solved)

@wdemo @coco

Having the same issue! Thanks for posting a quick fix.

posted in Questions & Help • 13 Aug 2022, 15:08
RE: ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved)

@coco

I found the issue! It was a typo. Thank you so much for your help Coco. Talking it out helps me figure out where to look. Your responses are super appreciated.

posted in Questions & Help • 13 Aug 2022, 13:38
RE: ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved)

@coco

Oh I see. I am using similar server code to the StarBoss Demo where it uses "competitive" and "collaborative" strings to decide game modes. I looked in their package.json and they don't have the paths for the "competitive" or "collaborative" logic listed. The logic I'm trying to access is in a custom Logic folder in the rooms folder.

I'll give it a shot though and list it in the package.json.

posted in Questions & Help • 13 Aug 2022, 12:39
RE: ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved)

Thank you for getting back to me! These are my dependencies for server code:

"devDependencies": {
"@colyseus/loadtest": "^0.14.4",
"@colyseus/testing": "^0.14.21",
"@types/cors": "^2.8.6",
"@types/express": "^4.17.1",
"@types/mocha": "^8.2.3",
"copyfiles": "^2.4.1",
"mocha": "^9.0.2",
"rimraf": "^2.7.1",
"ts-node": "^8.1.0",
"ts-node-dev": "^1.0.0-pre.63",
"typescript": "^3.4.5"
},
"dependencies": {
"@colyseus/arena": "^0.14.22",
"@colyseus/monitor": "^0.14.20",
"colyseus": "^0.14.20",
"cors": "^2.8.5",
"express": "^4.16.4",
"winston": "^3.3.3"
}

Are those what you're looking for?

posted in Questions & Help • 13 Aug 2022, 11:20
ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved)

0_1660360659316_ColyseusError1.png

I have deployed to the server on arena, my WebGl game can connect to the server and starts to initialize the game, but in order to start the game, it has to fetch the custom logic in another folder labeled custom logic. My localhost tests worked but for some reason it doesn't work here.

I have a feeling it is about the relative and absolute paths as the documentation mentioned something about it but I don't know where to start or what to change to fix this. I have restarted and re-uploaded the lib folder. Please help! I don't wanna wreck my code to fix this. It seems like I'm just missing some small thing as per usual.

I am using Colyseus 0.14.18 and Node 16.15.

posted in Questions & Help • 13 Aug 2022, 03:23
RE: Colyseus Unity SDK Example Folder won't import into Project(solved)

@coco Never mind! Figured out! Thanks!!

posted in Questions & Help • 29 Apr 2022, 13:29
RE: Colyseus Unity SDK Example Folder won't import into Project(solved)

@coco Thanks for getting back to me! So I got to the plugin and downloaded it but when I import the plugin the examples don't carry over. And when I checked the zip in the March 2022 update, I don't see the examples folder under Runtime. Sorry! I'm sure I'm missing something because I can see the examples folder in the import window it just doesn't show up in my project.

posted in Questions & Help • 29 Apr 2022, 12:52
Colyseus Unity SDK Example Folder won't import into Project(solved)

I am trying to learn colyseus and am doing so through unity but when I try to import the plugin the import window looks like this:
0_1651167460440_Unity Coly2.png

And when I import it, the examples do not show up in the project window:
0_1651167578571_Unity Coly1.png

Has this happened to anyone else? Am I missing something in Unity? If so I can start my search there but I didn't see anyone else with this issue in the forum.

posted in Questions & Help • 28 Apr 2022, 17:39

© 2023 Endel Dreyer