Search found 112 matches
- 07 Feb 2024, 17:57
- Forum: SFS2X Questions
- Topic: IP blacklist
- Replies: 3
- Views: 434
Re: IP blacklist
ok thank you. I made it work by setting session var isMarkedForEvicton in the pre-login function and on the login event like you suggested check for the flag and then ban user. I want to let you team know that most website documentation leads to an error page, in bing and google searches. Ex - https...
- 06 Feb 2024, 19:21
- Forum: SFS2X Questions
- Topic: IP blacklist
- Replies: 3
- Views: 434
IP blacklist
Hello, I have methods to detect login abuse with LoginAssistantComponent. I would like to add the attacker's IP address automatically to the server IP blacklist or to the "Banned Ip Address" section. I can't use banUser because when the user is logging in I can only access the LoginData wh...
- 26 Jan 2024, 21:01
- Forum: SFS2X Questions
- Topic: Hide "exceptions.SFSLoginException" from log?
- Replies: 1
- Views: 631
Hide "exceptions.SFSLoginException" from log?
Is there a way to not show SFSLoginException's in the log? I get them anytime a user enters a bad password for example and it takes up a lot of log space. I'd like to not show them specifically. Suggestion?
- 08 Aug 2023, 20:42
- Forum: SFS2X Questions
- Topic: Invalid email address issue
- Replies: 1
- Views: 2511
Invalid email address issue
I'm using the SignUpAssistant for users to create accounts. Due to changes over the years, emails that were once invalid are now valid. Web standards are now supporting ASCII. See this post for information: https://stackoverflow.com/a/2071250 I tried making a test account with the user email of maso...
- 27 Jul 2023, 16:43
- Forum: SFS2X Questions
- Topic: Extension flood filter
- Replies: 5
- Views: 3248
Re: Extension flood filter
Thanks Lapo. Can you tell what setting causes this bug?
- 25 Jul 2023, 13:13
- Forum: SFS2X Questions
- Topic: Extension flood filter
- Replies: 5
- Views: 3248
Re: Extension flood filter
I am testing on a local setup. The code looks like this: public function sendLoc() { // Send XY position to server var params:ISFSObject = new SFSObject(); params.putInt("x", x); params.putInt("y", y); smartfox.send(new ExtensionRequest("move", params)); } I know the re...
- 24 Jul 2023, 17:51
- Forum: SFS2X Questions
- Topic: Extension flood filter
- Replies: 5
- Views: 3248
Extension flood filter
Hello, I am trying to implement the extension flood filter added in 2.19. Here is my code: static final String MOVEMENT_HANDLER = "move"; static final String TEST_HANDLER = "test"; public void init() { // Login and Sign-up process initSignUpAssistant(); initLoginAssistant(); // A...
- 07 Jan 2022, 17:49
- Forum: SFS2X Questions
- Topic: Room memory management
- Replies: 3
- Views: 2990
Re: Room memory management
Hmm, I tested as you suggested and even when I create many MMORooms at startup, the memory usage doesn't seem to increase very much. I'd prefer to create them at startup so I can reference the roomIds for quick lookups, so this may still be viable. Do you happen to know how much memory, very approxi...
- 05 Jan 2022, 20:41
- Forum: SFS2X Questions
- Topic: Room memory management
- Replies: 3
- Views: 2990
Room memory management
Hello, I may reach 1000 fixed mmo rooms, all created with server boot. Each room has 1-3 Room variables in it. I don't know if I should create them on startup. Does SmartFox do anything with rooms that don't have active users in them? There are many times where a good number of the rooms don't have ...
- 06 Dec 2021, 18:27
- Forum: SFS2X Questions
- Topic: Pass extra params in server EventHandler
- Replies: 2
- Views: 2421
Re: Pass extra params in server EventHandler
OK, I will look to sending another update within USER_JOIN_ROOM then.
Thanks for the info Lapo.
Thanks for the info Lapo.
- 06 Dec 2021, 16:18
- Forum: SFS2X Questions
- Topic: Pass extra params in server EventHandler
- Replies: 2
- Views: 2421
Pass extra params in server EventHandler
Hi, Is it possible to pass additional parameters from the server to the client when firing certain events? For example, is it possible to pass extra variables when a USER_JOIN_ROOM request is handled serverside? Server: this.addEventHandler(SFSEventType.USER_JOIN_ROOM, JoinRoomHandler.class); and wi...
- 29 Nov 2021, 13:52
- Forum: SFS2X Questions
- Topic: ROOM_REMOVE fired before player joins?
- Replies: 10
- Views: 6717
Re: ROOM_REMOVE fired before player joins?
Ah, great to hear. In my tests this fixes the problem.
Do you know what the new default will be for the next release? Thanks once again for your help.
Do you know what the new default will be for the next release? Thanks once again for your help.
- 22 Nov 2021, 17:41
- Forum: SFS2X Questions
- Topic: ROOM_REMOVE fired before player joins?
- Replies: 10
- Views: 6717
Re: ROOM_REMOVE fired before player joins?
Update- I sent a working example of the bug to the email. I tried to attach it but it said the 1.2MB size was too large. The client is HTML5 and the server source is included. After adding the SFS2X files, simply open "index.html" in the HTML5 folders and then click Login. The client will ...
- 22 Nov 2021, 13:55
- Forum: SFS2X Questions
- Topic: ROOM_REMOVE fired before player joins?
- Replies: 10
- Views: 6717
Re: ROOM_REMOVE fired before player joins?
In this case, the client sends a generic BaseClientRequest and the server handles the setUserPosition with sfs.getAPIManager().getMMOApi().setUserPosition(user, pos, user.getCurrentMMORoom()); but the server log shows that the room is almost instantly removed, within a few milliseconds, so the room ...
- 19 Nov 2021, 21:08
- Forum: SFS2X Questions
- Topic: ROOM_REMOVE fired before player joins?
- Replies: 10
- Views: 6717
Re: ROOM_REMOVE fired before player joins?
Instead of creating another post I'll update this topic. I created a client script that automatically joins the server after 0.6 seconds, waits 0.6 seconds after logging in and then disconnects, in a loop. When a user connects, the server joins two rooms back to back - a game room and a MMO room. I ...