<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Solved] Multigame in one Server Error]]></title><description><![CDATA[<p>Hi all<br />
I face an annoy problem when run 4 game projects in 1 server.<br />
Let call them A in port 2000, B in port 2500, C in port 3000, D in port 3500.<br />
Player will join A as a Lobby for friend list and announcements, profiles ...<br />
Then player choose Game B, client will connect to Game B when Game A still connect. Everything fine here.<br />
But when leave Game B and connect to Game C (already have big room for everyone), Game C send error &quot;room id already full&quot; but just one player connect to this room.<br />
I try Create game C, its still work. But join or joinOrCreate or joinById meet the same error.</p>
<p>here is the onCreate config:</p>
<pre><code>    this.setState(new State());
    this.maxClients = 1024;
    this.autoDispose = false;
    this.setSeatReservationTime(60); 
</code></pre>
<p>I cant debug because this error from Socket library and I surely can't understand any code in that.<br />
Please help me, any suggest can save my project here.</p>
]]></description><link>http://discuss.colyseus.io/topic/415/solved-multigame-in-one-server-error</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 11:06:21 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/415.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Nov 2020 09:39:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] Multigame in one Server Error on Tue, 10 Nov 2020 00:44:57 GMT]]></title><description><![CDATA[<p>Hi all<br />
I face an annoy problem when run 4 game projects in 1 server.<br />
Let call them A in port 2000, B in port 2500, C in port 3000, D in port 3500.<br />
Player will join A as a Lobby for friend list and announcements, profiles ...<br />
Then player choose Game B, client will connect to Game B when Game A still connect. Everything fine here.<br />
But when leave Game B and connect to Game C (already have big room for everyone), Game C send error &quot;room id already full&quot; but just one player connect to this room.<br />
I try Create game C, its still work. But join or joinOrCreate or joinById meet the same error.</p>
<p>here is the onCreate config:</p>
<pre><code>    this.setState(new State());
    this.maxClients = 1024;
    this.autoDispose = false;
    this.setSeatReservationTime(60); 
</code></pre>
<p>I cant debug because this error from Socket library and I surely can't understand any code in that.<br />
Please help me, any suggest can save my project here.</p>
]]></description><link>http://discuss.colyseus.io/post/1360</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1360</guid><dc:creator><![CDATA[kai_nguyenhuu]]></dc:creator><pubDate>Tue, 10 Nov 2020 00:44:57 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Multigame in one Server Error on Mon, 09 Nov 2020 17:31:48 GMT]]></title><description><![CDATA[<p>Update:<br />
<img src="/assets/uploads/files/1604942549533-83dea62d-f514-4420-8932-5d1359bcd490-image-resized.png" alt="0_1604942458102_83dea62d-f514-4420-8932-5d1359bcd490-image.png" class="img-responsive img-markdown" /></p>
<p>3 room A, B, C here. A create first, then B and the last is C.<br />
but when I try to join C, socket client throw error room B is full  ...<br />
<img src="/assets/uploads/files/1604942743167-e9534f27-1d6b-4e36-8b46-1b22e99b5e38-image.png" alt="0_1604942650987_e9534f27-1d6b-4e36-8b46-1b22e99b5e38-image.png" class="img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1604942766676-77b4e0f7-dd99-4648-9175-a3fefb9fe3e2-image-resized.png" alt="0_1604942675563_77b4e0f7-dd99-4648-9175-a3fefb9fe3e2-image.png" class="img-responsive img-markdown" /></p>
<p>if I reset all socket and join room B, everything fine<br />
<img src="/assets/uploads/files/1604943106171-ac62d830-4ef5-4a49-bb2d-e5799c340ce6-image-resized.png" alt="0_1604943014676_ac62d830-4ef5-4a49-bb2d-e5799c340ce6-image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://discuss.colyseus.io/post/1362</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1362</guid><dc:creator><![CDATA[kai_nguyenhuu]]></dc:creator><pubDate>Mon, 09 Nov 2020 17:31:48 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Multigame in one Server Error on Invalid Date]]></title><description><![CDATA[<p>Solve:<br />
I copy index.ts from B to C, so they have the same Room Name like this:<br />
<img src="/assets/uploads/files/1604969028187-0897ab6a-a504-4590-915b-602e343ee433-image.png" alt="0_1604968937047_0897ab6a-a504-4590-915b-602e343ee433-image.png" class="img-responsive img-markdown" /></p>
<p>and when I declare Room Name difference, the error fly away.<br />
Oh my :(</p>
]]></description><link>http://discuss.colyseus.io/post/1364</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1364</guid><dc:creator><![CDATA[kai_nguyenhuu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [Solved] Multigame in one Server Error on Invalid Date]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/717">@kai_nguyenhuu</a>, the problem here is because <code>MongooseDriver</code> is being used using the same database for matchmaking.</p>
<p>If you specify a different database, each game should have its own matchmaking queues:</p>
<pre><code>// for game 1
new MongooseDriver(&quot;mongodb://127.0.0.1:27017/game1&quot;)

// for game 2
new MongooseDriver(&quot;mongodb://127.0.0.1:27017/game2&quot;)

// ...
</code></pre>
<p>Hope this helps! Let me know if that works for you. Cheers!</p>
]]></description><link>http://discuss.colyseus.io/post/1365</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1365</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [Solved] Multigame in one Server Error on Invalid Date]]></title><description><![CDATA[<p>Thanks endel<br />
But I need ro use same db for every game :D</p>
]]></description><link>http://discuss.colyseus.io/post/1366</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1366</guid><dc:creator><![CDATA[kai_nguyenhuu]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>