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. jiabuda
J

jiabuda

@jiabuda

Chat Follow Unfollow
0
Reputation
4
Posts
1.1k
Profile views
0
Followers
0
Following
Joined 3 Jul 2020, 03:42 Last Online 10 Jul 2020, 10:20

  • Profile
  • More
    • Continue chat with jiabuda
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
jiabuda Follow

Posts made by jiabuda

RE: Schema handshake problem between server and unity client

@endel

And another problem, when A game and B game share the same schema, that would be a problem.

gameA use PlayeInfo Schema in ARoomSchema and gameB use PlayerInfo too in BRoomSchema. That would be a situation, the PlayerInfo could only implement one specific context but not two.

posted in Questions & Help • 6 Jul 2020, 07:22
RE: Schema handshake problem between server and unity client

@endel

Thanks endel, I use the same way as you provide above. And the u3d colleague already annotate the code inside handshake to prevent schema check. Cause we check the same code in colyseus.js, we found js type client did not check the schema.

I think the schema should bind with specific room but not a context? How do you think about it.

posted in Questions & Help • 6 Jul 2020, 07:16
Schema handshake problem between server and unity client

Hi developers,

Did you guys try to use colyseus continuously develop some game? Just like you publish game A and later game B, but use the same server to hold these two games. I meat a problem.

I develop game A and publish, example, a write codes about AGameRoom extends Room and AGameState extends Schema, and then I publish game A.

Then I write codes about BGameRoom extends Room and BGameState extends Schema, i add the code to the same server and restart. The different game player will enter different game room and use different game logic.

Then the game A unity client will crash at the Schema's implicit method 'handshake', because the server side has AGameState and BGameState, but game A client only has AGameState.

How can I solve this?

I read the schema source code, and I found context may help. Did anyone has the same problem like me? Thanks.

posted in Questions & Help • 3 Jul 2020, 03:51
RE: Help! IPC timed out. method: undefined, args:

@cooul Hi, i meat the same situation. that is because you just ctrl+c to terminate the node process. you should make some post method to trigger the graceful shutdown. this function will remove the room info from your redis.

posted in Questions & Help • 3 Jul 2020, 03:44

© 2023 Endel Dreyer