Page 1 of 1

Feature question: simulation islands

Posted: 08 Sep 2024, 14:31
by novaleaf
Hello, I am considering using smartfox server, but and have a feature question:

does smartfox server have the concept of simulation islands? specifically acting as the source of truth/saved state so when a client enters a geographic area (simulation island) it can send them the state for simulation?

Thank you.

Re: Feature question: simulation islands

Posted: 09 Sep 2024, 06:40
by Lapo
Hello,
does smartfox server have the concept of simulation islands? specifically acting as the source of truth/saved state so when a client enters a geographic area (simulation island) it can send them the state for simulation?

This is not something you normally find out of the box. The server maintains the state via Rooms and it sends its current state to every new User, however there can be as many "simulations" as there can be different games.

In other words: the simulation (and its state) depends entirely on what type of game you're building and what elements are necessary to represent its state, which we can't provide.

SmartFoxServer allows you to build the simulation on the server side (e.g. an FPS game, an RTS, a card game, etc...), manage its state and most of the other tasks from user management, to AoI based updates, buddy lists, storage, server administration, and so on.

Hope this answers your question. If not, let us know.
Cheers

Re: Feature question: simulation islands

Posted: 09 Sep 2024, 07:24
by Lapo
A small addition, one way to keep the state in a Room si via RoomVariables which are custom properties that get updated in realtime for all Users. When a new player joins the Room, he/she will receive all the state of the Room.
Maybe this is something close to what you were asking.

Also we provide MMORooms that can manage hundreds or thousands of game entities (not just players) distributed across a very large map, each with their state (called MMOItems).

When players join this kind of Room they will receive a small set of the Map state based on their spawn position and the size of the AoI (area of interest) that was defined. As they move through the map new entities and players will enter and leave the AoI

You can learn more about these concepts you can check the docs, here:
https://docs2x.smartfoxserver.com/Advan ... /mmo-rooms

and this game example that uses the feature:
https://docs2x.smartfoxserver.com/Examp ... acewar2-p1

Cheers