Thanks! I appreciate your response.
Posts made by gurulantern
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.
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.
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.
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?
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.
@coco Never mind! Figured out! Thanks!!
@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.
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:
And when I import it, the examples do not show up in the project window:
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.