Filling out room with bots

129 views
Skip to first unread message

Drew Cranford

unread,
Mar 24, 2023, 5:01:31 PM3/24/23
to nodeGame
Hi Stefano,
In the waitroom.settings.js, I am using the 'WAIT_FOR_N_PLAYERS' Execution_Mode. I also have a MAX_WAIT_TIME enabled. The MAX_WAIT_TIME description says that "After the max waiting time expired clients are disconnected". Instead of disconnecting clients if the GROUP_SIZE is not met before MAX_WAIT_TIME has been reached, how might I allow bots to fill out the remaining group? Is that possible?
Thanks,
Drew

shakty

unread,
Mar 24, 2023, 5:09:22 PM3/24/23
to nodeGame
Hi,

Yes, that is possible with a bit of coding:

ON_TIMEOUT_SERVER: function(code) {
       this.dispatchWithBots();
       // Prevent disconnecting and notifying players of timeout.
       return false;
},

Cheers,
Stefano

Drew Cranford

unread,
Apr 6, 2023, 1:51:07 AM4/6/23
to nodeGame
Thank you Stefano. This is exactly what I needed.
-Drew
Reply all
Reply to author
Forward
0 new messages