Multiplayer success impossible?

Get help using Construct 2

Post » Tue Sep 15, 2015 10:24 am

So, I was thinking. Let's assume, you create an Agar.io type of game (completely feasible) with C2. Let's also assume it becomes a hit, and 200,000 players play (want to play) it at any moment, ~100 players per server. I'm perfectly aware, that getting such success is no everyday thing, I'm just playing with some ideas.

Now, I've seen Ashely say that right now, the only way to host multiple rooms is to open multiple browser tabs. Perfectly fine for a game with a small user base. But let's see what I said. 200,000 / 100 = 2000. You would need to open TWO THOUSAND browser tabs. Even for a game that maybe only 10,000 people play any moment, you'd still need to open 100 tabs. That's just not practical. And remember, 100 players per room is a relatively big number. And of course I'm talking about a dedicated server.

Isn't here any way right now two accomplish dynamic room/server creation/handling?

I understand WebRTC is still a relatively new technology, and not very common for games. Obviously, one way of making it more widespread is making games using it. I'm also aware, this not not a shortcoming of C2 itself. I don't see any obstacle to creating a very successful non-multiplayer game using C2. I can still see a potential in it though, but what I just described doesn't sound too good.

Any thoughts?
B
10
S
3
Posts: 28
Reputation: 756

Post » Tue Sep 15, 2015 10:46 am

Photon is probably your best bet with construct2, they even have a plugin floating around here for C2. Works pretty well. You pay for what you use.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Tue Sep 15, 2015 10:58 am

DUTOIT wrote:Photon is probably your best bet with construct2, they even have a plugin floating around here for C2. Works pretty well. You pay for what you use.


Thanks for the reply.

I've only read the front page so far. Seems good, but let me quote. "All Photon Cloud products are based on a client-to-server architecture, the most stable solution for multiplayer games! In peer-to-peer architectures clients often cannot connect due to NAT punch-through issues." How is WebRTC going to fit into that?

Also can you show me that C2 plugin? I can't find it.
B
10
S
3
Posts: 28
Reputation: 756

Post » Tue Sep 15, 2015 11:20 am

http://c2community.ru/forum/viewtopic.php?f=18&t=6900 found this on the Russian community... however i know there is one here but cant find the download link try searching in the completed addons list


also there is this post integration-with-photon-cloud-multiplayer_t70356

and im guessing ur sudden interest in agar.io is because of the upwork project that pays 2000 for a agar.io clone?? you should not do it in C2. since agar.io clones can be found all over internet ...here is one unofficial.. clone on github its limiting ur options for future development.. and being a part of that thing ...

however can be done with a server database create ur own normal server using Ajax with a custom script that saves characters locations... rooms made... etc ... and its done. you can rent a cheap server for startup so u will run 24/7 for a few months at a low cost... later on when ul have .... if u have 200,000 users at same time... you will need to spread the user loading trough a series of servers giving a smooth running ,(service which no photon cloud does for you for free or for cash... cause its to complicated and ul need Staff members).....but ul need more advanced knowledge in php and MySQL but its possible in the end

keep in mind that anything that comes with complexity wont be easy... even if u use a easy to code program... at some point youl need actual knowledge or a skill set in something


PS agar.io its a clone of another game... called Osmos..... which is more awesome... agar.io took the fun out ... of everything... and give it to kids.. to troll my opinion...
Last edited by gamecorpstudio on Tue Sep 15, 2015 11:35 am, edited 1 time in total.
B
77
S
23
G
69
Posts: 1,353
Reputation: 43,960

Post » Tue Sep 15, 2015 11:32 am

gamecorpstudio wrote:http://c2community.ru/forum/viewtopic.php?f=18&t=6900 found this on the Russian community... however i know there is one here but cant find the download link try searching in the completed addons list


also there is this post integration-with-photon-cloud-multiplayer_t70356

and im guessing ur sudden interest in agar.io is because of the upwork project? you should not do it in C2... its limiting ur options for future development.. and being a part of that thing ...

however can be done with a server database create ur own normal server using Ajax with a custom script that saves characters locations... rooms made... etc ... and its done. you can rent a cheap server for startup so u will run 24/7 for a few months at a low cost... but ul need more advanced knowledge in php and MySQL but its possible anything that comes with complexity wont be easy... even if u use a easy to code program... at some point youl need actual knowledge or a skill set in something


Thanks for the reply.

I've found it. Find ThePhotons in members and look at his forum activity.

As for Agar.io, I don't actually know what project you're talking about. I've only played that game once a few weeks ago, I just used it as an example. I don't play it.

I've been playing with databases, and implemented a few solutions. But I'm still looking, you know, an easy solution is the best one! I'm looking for the limit.
B
10
S
3
Posts: 28
Reputation: 756

Post » Tue Sep 15, 2015 11:38 am

the easiest solution... is the socket server or photon cloud .. u can create easy rooms etc ... but if u want future stability you want an Ajax based server that u can manipulate as you want.. increase its liability and power ... what happens with photon cloud services when u have 200,000 users? they l shut ur project down.. cause u need to pay per users online... its going to drain every penny out of u.. as for testing hobby is cool... but big user databases... i will say no... btw you may skipped reading the updated version of my post above.. found you a github agar.io source.. take a look at it how its done ..
B
77
S
23
G
69
Posts: 1,353
Reputation: 43,960

Post » Tue Sep 15, 2015 12:02 pm

gamecorpstudio wrote:the easiest solution... is the socket server or photon cloud .. u can create easy rooms etc ... but if u want future stability you want an Ajax based server that u can manipulate as you want.. increase its liability and power ... what happens with photon cloud services when u have 200,000 users? they l shut ur project down.. cause u need to pay per users online... its going to drain every penny out of u.. as for testing hobby is cool... but big user databases... i will say no... btw you may skipped reading the updated version of my post above.. found you a github agar.io source.. take a look at it how its done ..


Thanks for the link.

You make a point about Photon though: 185$/1000 CCU, possibly higher in enterprise packages, but I dunno...
B
10
S
3
Posts: 28
Reputation: 756

Post » Tue Sep 15, 2015 3:56 pm

I think you are asking for solutions to problems that you wont have. You do not need to open 2,000 browser tabs. If a room is full or not found, that player becomes the host of a new room. The players are the hosts, not you.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Tue Sep 15, 2015 4:02 pm

Tekniko wrote:I think you are asking for solutions to problems that you wont have. You do not need to open 2,000 browser tabs. If a room is full or not found, that player becomes the host of a new room. The players are the hosts, not you.


Yes, but if I want to make sure that connection quality is good and consistent, especially with 100 players/room, I need dedicated hosting.
B
10
S
3
Posts: 28
Reputation: 756

Post » Fri Oct 02, 2015 11:26 am

johnsrd01 wrote:
Tekniko wrote:I think you are asking for solutions to problems that you wont have. You do not need to open 2,000 browser tabs. If a room is full or not found, that player becomes the host of a new room. The players are the hosts, not you.


Yes, but if I want to make sure that connection quality is good and consistent, especially with 100 players/room, I need dedicated hosting.



It would mean that ALL connections run through the server .... and its bandwidth usage ....
You would require a hosting service with unlimited bandwidth usage.

Also .... max web RTC connections per browser is 256, that is for a single browser instance. So that browser is only able to connect with max 256 players in 1 room at any given time.

That would mean for each 256 users connected to a single room ... you would require another browser instance with its own opened WebSocket.

Each websocket you open will weigh down on performance of the server.


Also, if you manage to get a game running with 256 peers connected ... without problems ... well, I would praise you a lot :)



The C2 multiplayer hosting scenario based on a peer being the host is actually quite intuitive ...and eliminates tons of server connection problems relating to high volume usage.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 44 guests