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. virtumonde
  3. Posts
  • Profile
  • More
    • Continue chat with virtumonde
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

Posts made by virtumonde

RE: Cannot access option property passed from the client

I had a client-side problem. I wasn't passing the property at all.

posted in Questions & Help • 5 Jun 2020, 03:33
RE: Adding / Removing Schema fields during runtime

Did it work?

posted in Questions & Help • 5 Jun 2020, 02:58
Cannot access option property passed from the client

Client:

client.joinOrCreate("website", { domain: "zuckbuck.com", accessToken: this.props.that.state.token });

Server:

    onCreate(options : any) {
    
      console.log(options) 
      // { accessToken: 'token' }
}

Thoughts?

posted in Questions & Help • 5 Jun 2020, 02:52
RE: Instantiate different rooms from the client without defining each room id

Clone of https://discuss.colyseus.io/topic/345/is-it-possible-to-run-joinorcreatebyid/2

posted in Questions & Help • 5 Jun 2020, 02:09
Instantiate different rooms from the client without defining each room id

Is there a way to instantiate different rooms from the client without defining each room id? What I want to achieve is for the players to be able to create their own rooms. I know that the client.joinOrCreate would create a new room only when the room id is defined on the server like this:
gameServer.define('roomId', Room);

How can I create different rooms from the client-side without having to define each id? I want the client to be able to create rooms with any id without defining that id explicitly in the server.

posted in Questions & Help • 4 Jun 2020, 19:03
RE: Store an instance of a class extending @colyseus/schema into a database

Thank you, @endel. I will publish another quick question as a new thread if you don't mind.

posted in Questions & Help • 4 Jun 2020, 18:55
Store an instance of a class extending @colyseus/schema into a database

Is there a way to store an instance of a class extending @colyseus/schema directly into a database?

posted in Questions & Help • 4 Jun 2020, 18:38
RE: reconnect method does not seem to work - seat reservation expired error

I think I saw exactly the same bug being described previously in this forum, @endel.

posted in Questions & Help • 3 Jun 2020, 04:48
RE: Colyseus Schema: A map with multiple types

@endel Thank you, I am aware of this. As I understand @colyseus/schema doesn't support multiple classes, right?

posted in Questions & Help • 3 Jun 2020, 04:38
RE: When I get data from Room.onStateChange I don't receive my players

For whoever may read this: check the state with room.onStateChange, not right away you are connecting to the room.

posted in Questions & Help • 1 Jun 2020, 21:28
Colyseus Schema: A map with multiple types

Is it possible to create a map with multiple types? For example in Typescript you can do something like this:

tiles = new Array < Tile | Gate > ();

You have an array of with Tiles and Gates but as of now, it's not synched with the schema. I can add only one type @type({map: Tile}). How do I write @type with multiple classes e.g. Tile and Gate without creating a separate map for each?

posted in Questions & Help • 1 Jun 2020, 21:20
RE: Manually changing the sessionId / persistent character

@saucecodefr I am doing exactly this but I do not know how to tell the client what his sessionId is. I cannot override it onJoin.

posted in Questions & Help • 24 May 2020, 15:04
RE: When I get data from Room.onStateChange I don't receive my players

Now it's broken again. Will check tomorrow.

posted in Questions & Help • 24 May 2020, 06:19
RE: When I get data from Room.onStateChange I don't receive my players

I am an idiot. I forgot that at the begging of the client connection you can't access the state via room.state, it is blank. I do receive that changed version of the state however.

posted in Questions & Help • 24 May 2020, 06:06
RE: When I get data from Room.onStateChange I don't receive my players

It didn't solve my problem. At least in my case it is not a client version mismatch.

posted in Questions & Help • 24 May 2020, 05:04
RE: When I get data from Room.onStateChange I don't receive my players

@nag0121 Let me try.

posted in Questions & Help • 24 May 2020, 04:42
RE: When I get data from Room.onStateChange I don't receive my players

The same thing occurred when today I created a new server. I am not able to get the contents of a map.

posted in Questions & Help • 24 May 2020, 04:32
RE: Manually changing the sessionId / persistent character

Hey, @SauceCodeFr I use the exact same concept but the problem I am experiencing (just noticed I didn't clarify this in my post) is that on every reconnection the client uses a different sessionId and I am not able to change it.

posted in Questions & Help • 23 May 2020, 23:46
RE: Unable to create connection to localhost with Defold

Oh god of divine authoritative servers, @endel please share your insights about this problem.

posted in Questions & Help • 22 May 2020, 21:52
RE: Maximum Concurrent Connections

I did not have the experience and the need to support this amount of clients but what about splitting the server into different instances?

posted in Questions & Help • 22 May 2020, 19:33

© 2023 Endel Dreyer