Multiplayer with a fixed server as host?

Get help using Construct 2

Post » Thu Oct 15, 2015 11:33 am

Hello everyone,

I have started a new project that is similar to a PBBG. Since I am pretty familiar with C2, I thought I'd use it (I am not a coder anyway). As far as I know the multiplayer in C2 works using P2P connection. Is there a way to make it so that a server would act as the sole and only host and others connect to it? If so, are there any guides around that would guide me on how to do something similar (without assuming that I am a professional coder)?

I also read somewhere that the maximum number of players allowed in such a connection is 100, is that correct? Anyway to increase the number?

Thank you very much in advance.
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Thu Oct 15, 2015 4:24 pm

I asked this same question some time ago. The answer is no, unless you want to run a browser on your server to serve as the "host" in the P2P architecture of C2 Multiplayer. Getting away from the P2P architecture is not possible at this point in time.

We are going to be using AJAX to maintain game state for our game running off of a centralized server set.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Oct 16, 2015 6:30 am

Ah, shame! But thanks a lot @gumshoe2029. I have been digging around untill someone replies and I read somewhere that Photon Networking solutions might work with C2. Is that just a guess? Or has someone done that? If so, does this require intensive coding knowledge? Or can a non-coder do something similar?

I have been looking forward to use C2 in the project; it is the easiest tool that I found to do the job by far!
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Fri Oct 16, 2015 6:39 am

Photon works very well. They also have a plugin here to make the set up easy.
The free account is really only for testing.
The price tier isn't too bad either, that is if you can monetize your game.

I've tried all available options currently, and think they are the best at the present moment.
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 » Fri Oct 16, 2015 7:27 am

Message: Vallar can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@DUTOIT well, in that case I think that might be good news. So would Photon work in the setup I am looking for? Is there a guide somewhere I can follow on how to use this?

Also I found this:
socket-io-plugin-discussion_t116848?start=10

Would this Socket.IO plugin thing work in the setup I am after if Photon won't? Which is easier?
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Fri Oct 16, 2015 7:38 am

Photon scales to 1000's of concurrent connections... at a price, which is pretty reasonable considering the hardware server you may need to get same.

They manage everything.

The plugin has everything you will need. and they offer tons of documentation so you can write your own.

Do it yourself vs 3rd party.
If you are super savvy and are a wizz with servers etc then Socket.IO plugin might be better.
But, if you would rather run a business, build a game and not spend all your time fine tuning a server etc, then photon is better choice.
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 » Fri Oct 16, 2015 3:17 pm

I'll have to investigate this Photon. Our game is not as latency-critical, so AJAX will work, but I want to find new solutions for future games though.

I believe the multiplayer plugin is based on Socket.io, or a specialized version of it.

If you do manage to write a centralized multiplayer plugin @Vallar , let me know! I will eventually build a centralized multiplayer plugin for Construct, but I need to finish this game first to free up the time to do that, lol.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Oct 16, 2015 6:45 pm

DUTOIT wrote:Photon scales to 1000's of concurrent connections... at a price, which is pretty reasonable considering the hardware server you may need to get same.

They manage everything.


Well that is definitely a great solution. If even the free version is limited. I won't need at the start more than the free one for testing.

I did find their original post (Exit Games) here on the forums. But it doesn't have a tutorial so I am going to search around for one. Thanks a lot for the confirmation @Dutoit

@gumshoe2029:

I doubt I'd write up a plugin. I am not a coder. But if I ever did, I'd be thrilled to share it around :D. It'd be an achievement for me as a non-coder :D. But I'd be looking forward for your plugin if you ever come around to doing that. Nonetheless, good luck with your game. I hope you can finish it and it become a success :)
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Mon Oct 19, 2015 1:45 pm

Me too, lol.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: gameba and 29 guests