[SOLVED] HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

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

Moderators: Lapo, Bax

User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

[SOLVED] HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

Postby TryMyGames » 05 Mar 2017, 15:17

Hi,
for client side I am using Unity.
how can I make a specific user to ignore the AOI of the room and receive all the user variables updates from all users??
I my case I am trying to achieve this:
1. Create a build (Bot Manager) from Unity which will run the Bot Manager logic on server.
2. When a new room is created start a new process (Unity build from 1 step) and assign it to that specific room.
3. The Bot Manager will connect to server and will start creating bots, each bot will have it's own connection and will only send data to server.
4. The Bot Manager will have to receive all of the data about all real players related to that room and manage bots behaviour.

So how can I make Bot Manager AOI independent???

Thanks)
Last edited by TryMyGames on 07 Mar 2017, 09:38, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

Postby Lapo » 06 Mar 2017, 09:03

TryMyGames wrote:Hi,
for client side I am using Unity.
how can I make a specific user to ignore the AOI of the room and receive all the user variables updates from all users??

You can't do that. At least not out of the box.

Doing so will likely cause issues if you have more than, say, 200 users in the same Room. This is because the server will generate a lot of data and the client might not be able to keep up.

That's why MMORooms exist in the first place.

4. The Bot Manager will have to receive all of the data about all real players related to that room and manage bots behaviour.

Why?
What's the advantage of knowing info about users you can't interact with?

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

Re: HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

Postby TryMyGames » 06 Mar 2017, 16:47

Doing so will likely cause issues if you have more than, say, 200 users in the same Room. This is because the server will generate a lot of data and the client might not be able to keep up.


The room will not have more then 100 players, and that specific User -> Bot Manager is an application that is installed on server so I don't think that local connection is a big problem for server or for Bot Manager.

Why?
What's the advantage of knowing info about users you can't interact with?


Why can't interact?
Bots interact with other users as well as with other bots.

Thanks
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

Postby Lapo » 06 Mar 2017, 17:56

Why?
Why can't interact?
Bots interact with other users as well as with other bots.

I mean outside the AOI. How is the interaction supposed to work?
Typically the AOI is large enough that it makes visually useless (or impractical) to interact. E.g. 2 players wont' speak to each other because they are too far away, nor they will fight because once again... too far.

In any case, from server side you have access to the whole list of users in the Room so you can broadcast updates to every one or a specific selection of clients.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

Re: HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

Postby TryMyGames » 06 Mar 2017, 21:05

For example Bot Manager spawns 40 bots which are scattered all over the arena, and I thought it would be better to have only one network data receiver instead of receiving data for each bot separately.

Or you recommend me to let the bots receive updates like normal clients?
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: HOW CAN I MAKE A SPECIFIC USER IGNORE THE AOI OF THE ROOM?

Postby Lapo » 07 Mar 2017, 08:07

Yes I do recommend the latter.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 120 guests