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

Posts made by nene

RE: Error when create room

This is same this issue:
https://github.com/gamestdio/colyseus/issues/151

So waiting for @endel fix this bug.

posted in Questions & Help • 2 Jul 2018, 05:34
Error when create room

When i create room, always have the below error:

(node:8720) UnhandledPromiseRejectionWarning: Error: remote room (B1gXDTU8Mm) timed out, requesting "locked"
    at Timeout.setTimeout (D:\Projects\TurnBasedServer\node_modules\colyseus\lib\MatchMaker.js:156:32)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)
(node:8720) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)

Anyone have this bug ?

posted in Questions & Help • 1 Jul 2018, 13:59
RE: How to create list rooms

Hi @plyoung
Thanks for your help. but do you known how we can update the list rooms when has a new room created or removed from other users ?
Thanks

@nene said in How to create list rooms:

Hi @endel

How i can update the list rooms when has a new room created or removed from other users ? assume that i did not joined room yet, and I am using getAvailableRooms() to get list room only. Any have method to send notification to all clients that still not join room yet ? sorry for my bad english !

posted in Questions & Help • 17 Jun 2018, 14:46
RE: How to create list rooms

Hi @endel

How i can update the list rooms when has a new room created or removed from other users ? assume that i did not joined room yet, and I am using getAvailableRooms() to get list room only. Any have method to send notification to all clients that still not join room yet ? sorry for my bad english !

posted in Questions & Help • 17 Jun 2018, 05:21
[How] Auto leave room

Hi everyone,

i have a room with maxClients = 2 and room was locked. And i want to when have a client leave room, room will automatic dispose. How i can do this ?
And how i can known that who was created room ? (Ex: A created room, B joined room, how i can known A created room ?)

Thanks in adavanced.

posted in Questions & Help • 17 Jun 2018, 02:17
RE: How to create list rooms

Hi @endel

Thanks for your reply.

client.GetAvailableRooms("battle", (rooms: RoomsAvailable, err: ErrorEventArgs) => {
  rooms.
});

I don't known why we must to pass roomName = "battle" as parameter to method client.GetAvailableRooms () . Why its not empty ?

And when a room reach to maxClients = 2, how can i update list room to invisible that room.

Room name | Message | Current Player Joined room |

"Room 01" | "Hi message 01 !" | "1/2" |
"Room 02" | "Hi message 02 !" | "1/2" |
"Room 03" | "Hi message 03 !" | "2/2" | ==> Invisible in list rooms
.....
"Room 04" | "Hi message 04 !" | "1/2" |
"Room 05" | "Hi message 05 !" | "1/2" |

P/s: I am using Unity 3D client. And could not find client.getAvailableRooms() or setMetadata(...) anywhere ?

Thanks in advanced.

posted in Questions & Help • 14 Jun 2018, 00:00
How to create list rooms

Hi everyone,

I am a newbie of Colyseus.

I want to make a lobby with show list rooms. Each room with max players are 2. And when room has 2 player in room, that room will be invisible in list rooms. How can i do this ?

And i want to show custom information for each room in list rooms like:

Room name | Message | Current Player Joined room |

"Room 01" | "Hi message 01 !" | "1/2" |
"Room 02" | "Hi message 02 !" | "1/2" |
"Room 03" | "Hi message 03 !" | "1/2" |
.....
"Room 04" | "Hi message 04 !" | "1/2" |
"Room 05" | "Hi message 05 !" | "1/2" |

when create room, how can i do this too ?

Thanks for your help !

posted in Questions & Help • 13 Jun 2018, 09:03

© 2023 Endel Dreyer