Search found 10 matches

by dashanddot
18 Dec 2025, 13:25
Forum: SFS2X Questions
Topic: OnRoomJoin\OnRoomAdded order
Replies: 16
Views: 4743

Re: OnRoomJoin\OnRoomAdded order

Hi smartfox team - your server code is not thread safe in creation andd joining rooms - you should use mutex in begining of handler and unlock in in end - its usual case when new thread add room to list after list whas atomary checked.

it should be atomic transaction - its standart of multithreaded ...
by dashanddot
25 Jul 2025, 13:30
Forum: SFS2X Questions
Topic: ip tunnel + UDP
Replies: 2
Views: 9706

Re: ip tunnel + UDP

Anyway problem solved - smarftox need to listen exact IP to work with UDP. 0.0.0.0 IP cant handle UDP requests somehow, but TCP can
by dashanddot
24 Jul 2025, 17:38
Forum: SFS2X Questions
Topic: ip tunnel + UDP
Replies: 2
Views: 9706

ip tunnel + UDP

We working on SFS2x - without tuneling everething ok

if we enable tunneling - tcp work fine, but InitUDP give us error (success false)

same time tunnel udp direct sending works ok


nc -ulvp 9934
echo "test" | nc -u 127.0.0.1 9934


smartfox server see this pacckets too:
Discarded UDP packet ...
by dashanddot
12 Jul 2025, 15:00
Forum: SFS2X Questions
Topic: USER_ENTER bug
Replies: 1
Views: 8977

Re: USER_ENTER bug

solved - the problem caused by USER_VARIABLES_UPDATE event.

order of USER_VARIABLES_UPDATE, USER_ENTER_ROOM is not fixed and can be swapped - so it generate exception if user data not init
by dashanddot
11 Jul 2025, 17:56
Forum: SFS2X Questions
Topic: USER_ENTER bug
Replies: 1
Views: 8977

USER_ENTER bug

SFS2x 2.19.0

We have strange bug - we create room with
sfs.Send(new QuickJoinOrCreateRoomRequest(msch, new List<string> { GAME_ROOMS_GROUP_NAME }, settings, sfs.LastJoinedRoom));
then join same way

sfs.Send(new QuickJoinOrCreateRoomRequest(msch, new List<string> { GAME_ROOMS_GROUP_NAME ...
by dashanddot
11 Jul 2025, 17:25
Forum: SFS2X Questions
Topic: [Feature Request] "X-Forwarded-For" customization
Replies: 16
Views: 127051

Re: [Feature Request] "X-Forwarded-For" customization

@dashanddot
its security option - we can use proxy before cf, and we want to know ip of proxy and ip of user
i ask fo feature modify ip adress too
Can you clarify why you need both?
Also, why would the client be able to specify an arbitrary IP address (even one that he's not using)? That sounds ...
by dashanddot
29 Sep 2024, 11:14
Forum: SFS2X Questions
Topic: Could not upload files to extention via proxy (cloud flare)
Replies: 1
Views: 1604

Could not upload files to extention via proxy (cloud flare)

Server show error that file upload is failed becouse of session token lost


direct upload is ok!
by dashanddot
29 Sep 2024, 11:12
Forum: SFS2X Questions
Topic: IPlayerIdGenerator
Replies: 2
Views: 2158

Re: IPlayerIdGenerator

i think you should add this info to docs! thanx

i made this HACK:

SERVER_READY event:
getParentExtension().getParentZone().getRoomManager().setDefaultRoomPlayerIdGeneratorClass( MyIdGenerator.class );
by dashanddot
29 Sep 2024, 11:09
Forum: SFS2X Questions
Topic: [Feature Request] "X-Forwarded-For" customization
Replies: 16
Views: 127051

Re: [Feature Request] "X-Forwarded-For" customization

its security option - we can use proxy before cf, and we want to know ip of proxy and ip of user

i ask fo feature modify ip adress too
by dashanddot
25 Jul 2024, 18:34
Forum: SFS2X Questions
Topic: IPlayerIdGenerator
Replies: 2
Views: 2158

IPlayerIdGenerator

Hi!

I implemented my extention and added class with IPlayerIdGenerator interface

i set "Player's ID generator class" in Advanced tab of admin

but server says that class not found, but class is 100% inside of extention