proximity_list_update

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

dhageuk
Posts: 14
Joined: 09 Feb 2014, 14:24

proximity_list_update

Postby dhageuk » 04 Mar 2014, 04:34

hi guys,

it appears user_variables_update/proximity_list_update is not being called.

am i doing something wrong?

please see attached code.

thanks!
Attachments
source.zip
(3.02 KiB) Downloaded 531 times
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: proximity_list_update

Postby Lapo » 04 Mar 2014, 10:23

That essentially depends on the AOI.
If Player A and B are within range they will receive each other's variables.

Are you sure the players are within range? Any errors on client or server side?

Also you seem to be working with the MMO Example. I would recommend to take a closer look at the example to see how it works.
Lapo
--
gotoAndPlay()
...addicted to flash games
dhageuk
Posts: 14
Joined: 09 Feb 2014, 14:24

Re: proximity_list_update

Postby dhageuk » 05 Mar 2014, 05:25

Thanks Lapo!

I am getting the following log warning on the server side:

Code: Select all

05 Mar 2014 | 12:45:13,396 | INFO  | SocketReader | bitswarm.sessions.DefaultSessionManager |     | Session created: { Id: 39, Type: DEFAULT, Logged: No, IP: 127.0.0.1:55425 } on Server port: 9933 <---> 55425
05 Mar 2014 | 12:45:13,411 | WARN  | com.smartfoxserver.v2.controllers.SystemController-1 | v2.controllers.SystemController |     | System Request rejected: { Id: 39, Type: DEFAULT, Logged: No, IP: 127.0.0.1:55425 }, Client is not logged in.
05 Mar 2014 | 12:45:13,412 | WARN  | com.smartfoxserver.v2.controllers.SystemController-1 | v2.controllers.SystemController |     | System Request rejected: { Id: 39, Type: DEFAULT, Logged: No, IP: 127.0.0.1:55425 }, Client is not logged in.
05 Mar 2014 | 12:45:13,452 | WARN  | com.smartfoxserver.v2.controllers.SystemController-1 | v2.controllers.SystemController |     | System Request rejected: { Id: 39, Type: DEFAULT, Logged: No, IP: 127.0.0.1:55425 }, Client is not logged in.
05 Mar 2014 | 12:45:13,455 | INFO  | pool-1-thread-1 | v2.api.SFSApi |     | User login: { Zone: LoginServer }, ( User Name: dhageuk, Id: 37, Priv: 0, Sess: 127.0.0.1:55425 ) , Type: Unity
05 Mar 2014 | 12:45:13,686 | INFO  | com.smartfoxserver.v2.controllers.SystemController-1 | entities.managers.SFSRoomManager |     | Room created: { Zone: LoginServer }, [ MMORoom: MMORoom, Id: 20, Group: default, AOI: (25.0, 1.0, 25.0) ]
05 Mar 2014 | 12:45:13,687 | INFO  | com.smartfoxserver.v2.controllers.SystemController-1 | v2.api.SFSApi |     | Room joined: [ MMORoom: MMORoom, Id: 20, Group: default, AOI: (25.0, 1.0, 25.0) ], { Zone: LoginServer }, ( User Name: dhageuk, Id: 37, Priv: 0, Sess: 127.0.0.1:55425 ) , asSpect: false


Is this normal?
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: proximity_list_update

Postby Lapo » 05 Mar 2014, 09:22

There are a number of rejected requests at the top.
This means that your client is sending requests before having logged in successfully. You should fix that problem, otherwise your client logic might not work as expected.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 61 guests