Page 1 of 1

Architecture doubt

Posted: 24 Jan 2012, 16:37
by frcol
I´m planning to sell a MMO game to schools.

Each school must see only itself into the game (school scope), so I think the only way to do that is creating a zone for each school.

Is there a measurement about how many zones SFS supports working with good performance? Each class will has only 20 students.

thanks!

Posted: 24 Jan 2012, 18:30
by Damace
Hi!

I don't see why you should create a zone for each school. Zones are meant for different applications with different extensions and different settings. If this is one MMO game, and all schools will be using the same version, then I suggest using 1 zone and many rooms.

I don't know about any caps on how many rooms/zones there can be. I think your server is the limit.

Posted: 24 Jan 2012, 21:21
by frcol
Hi Damace,
the roons are the Parts os the city, the neighborhoods that are loaded as the avatar walks into the city. Did you understand?
So the City (game) is the Zone, and the roons are the neighborhoods.

The problem is that, each school cannot see students from other schools.

Posted: 25 Jan 2012, 09:09
by Damace
Sorry, but I didn't understand.

If you want to communicate between schools then use 1 zone for the game and many rooms for the schools. Communication can be easily done through the zone extension which has access to all of the rooms inside it.

Posted: 25 Jan 2012, 16:00
by frcol
Damace wrote: If you want to communicate between schools then use 1 zone for the game and many rooms for the schools.
One kind of scope will be in this way: city.
The school will be able to change the scope of the game.

I must have scope like:
- school (see in game only students from that school)
- city (see all students from that city)
- state (see all students from that state)

When I say scope, I mean that they just can see what is inside it. For example: city - only schools from that specific city can see each other, so, I´ll create a zone for that city.

School scope: just students from that school can see each other inside the game, so I must create a zone for each school.

The school rule is: We need to have means to restrict users to level of school, city and state.

So, this is the way that I found to create those restrictions.
If somebody knows any better idea, please, it will be welcome.

Re: Architecture doubt

Posted: 26 Jan 2012, 07:53
by Bax
frcol wrote:Is there a measurement about how many zones SFS supports working with good performance? Each class will has only 20 students.
Back to your original question, the number of Zones is not relevant. You always have to deal with the total number of connected users.
You should read this white paper: http://www.smartfoxserver.com/whitepapers/performance
(it is related to SFS 1, but the same concepts apply to SFS 2X)

Posted: 26 Jan 2012, 10:39
by Damace
You have 1 game, that's 1 zone. Communication between zones can be done but it is strongly discouraged. I think all scopes should be embedded in your game logic and there is no need for multiple zones.

Posted: 26 Jan 2012, 10:48
by frcol
Damace wrote:Communication between zones can be done but it is strongly discouraged.
I don´t want communication between zones.

Posted: 26 Jan 2012, 13:15
by Damace
You say that you want to see all the students in different scopes. That means that the data can be accessed and that some kind of communication takes place. If you choose to create multiple zones then you need to communicate between them (and as I mentioned above this practice is discouraged).

So the logical outcome of this discussion is to create 1 zone and place all the cities and schools inside it.

Posted: 26 Jan 2012, 13:22
by frcol
Damace wrote:You say that you want to see all the students in different scopes.
Thanks for your attention Damace,
but I think you misunderstood me.

I do want students from one school don´t see students from another school (in school scope). So I´m thinking in create a zone for each school.

Posted: 26 Jan 2012, 13:46
by Damace
You wrote
I must have scope like:
- school (see in game only students from that school)
- city (see all students from that city)
- state (see all students from that state)
If you want to do that you need to be able to access different zones and communicate between them (if you decide multiple zone solution).

Anyway, you are the developer, you better understand the problem)

Cheers