Architecture doubt

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Architecture doubt

Post 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!
Fabio Colombini
Brazil
Damace
Posts: 58
Joined: 04 Jul 2011, 16:45

Post 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.
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Post 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.
Fabio Colombini
Brazil
Damace
Posts: 58
Joined: 04 Jul 2011, 16:45

Post 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.
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Post 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.
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Architecture doubt

Post 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)
Paolo Bax
The SmartFoxServer Team
Damace
Posts: 58
Joined: 04 Jul 2011, 16:45

Post 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.
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Post by frcol »

Damace wrote:Communication between zones can be done but it is strongly discouraged.
I don´t want communication between zones.
Fabio Colombini
Brazil
Damace
Posts: 58
Joined: 04 Jul 2011, 16:45

Post 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.
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Post 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.
Fabio Colombini
Brazil
Damace
Posts: 58
Joined: 04 Jul 2011, 16:45

Post 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
Post Reply