[SOLVED]How do I restrict players using muliplayer plugin

Get help using Construct 2

Post » Tue Apr 01, 2014 8:16 am

Just started messing with the multiplayer plugin and was wondering if someone could help save me some time and frustration.

Question: is there a way to restrict # of players to say 4 or a predetermined number, and force additional players into a new room / game.
Last edited by DUTOIT on Tue Apr 01, 2014 8:32 am, edited 1 time in total.
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,708

Post » Tue Apr 01, 2014 8:31 am

Brilliant. Solved it.
How did I miss this.
Now to create additional rooms if other room is full, or password protect rooms, this is very cool addition to C2.
You do not have the required permissions to view the files attached to this post.
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,708

Post » Tue Apr 01, 2014 10:08 am

The next build has an auto-join feature so you can arrange players in to separate rooms easily.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Tue Apr 01, 2014 10:59 am

Ashley wrote:The next build has an auto-join feature so you can arrange players in to separate rooms easily.


Oh, that will be brilliant - thx ashley :D
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,708

Post » Tue Apr 01, 2014 1:12 pm

@Ashley

Havent tryed multiplayer part yet but just in case that this is not implemented let me state some details that i find as necessary and lot of times are overlooked by developers:

Room creator shud allways be able to rename the room.
Room shud have option for password.
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Tue Apr 01, 2014 2:02 pm

What would be nice is a secure variable to store sensitive info like password. SHrugs
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,708

Post » Tue Apr 01, 2014 4:10 pm

hm... what i mean is to allow players to create room with password for them selves... so that they can wait for friends and not kick every now and then uninvited players.
i dont see necesity to secure that kind of password.
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Tue Apr 01, 2014 6:51 pm

They can do that, but would be nice to add spice to password to stop others from brute forcing.

password = "password"
salt = "123nthuaoentheoau,23p3u3tn,nahpnthptn2p3tnhnth4nh3nt4h3n4h2n23m23tnmoetntneiud"

If =/ "Password & Salt" then "sorry, password doesn't match"

But salt needs to be protected from viewer looking at source because you can plainly view all variables in source.

Already he can create room name and create a password so that others can join. This shoudn't be too hard to implement.

The protected variable has many uses outside multiplayer plugin - lol. I've been requesting it for awhile.
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,708


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, Syazanie Amirin, tarek2 and 7 guests