[NEW] SFS2X 2.18.0 is available!

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
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

[NEW] SFS2X 2.18.0 is available!

Postby Lapo » 13 Dec 2021, 11:26


We have just released SmartFoxServer 2X 2.18.0 which provides several library updates, new runtime, support for M1 Macs, extra features and bug fixes.

Please note: the new release comes as a standalone installer so it can’t be used to update a previous instance.

Download SFS2X 2.18.0 from here

Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [NEW] SFS2X 2.18.0 is available!

Postby Lapo » 13 Dec 2021, 11:28

Release Notes

Server side

    [NEW] Native support for Apple's M1 chips.
    [NEW] Java Runtime 11 is the default JRE now.
    [NEW] Tomcat updated to version 9.0.55.
    [NEW] Java Mail updated to version 1.6.2.
    [NEW] GeoLite database updated to latest version.
    [NEW] RoomStorage API now support a 'CUSTOM' type where you can pass your own implementation of the IRoomStorage interface.
    [NEW] Added two extra methods to SFSBannedUserManager, getBannedUserByIp() and getBannedUserByName(), to find banned users.
    [NEW] Send ROOM_CREATION_ERROR to client when exceeding the number of Rooms that can be created at once.
    [NEW] Added new setting UseSSL in SFSMailer configuration.
    [FIX] Missing default value (50sec) for userMaxLimboSeconds to CreateMMORoomSettings.
    [FIX] Missing client side error when QuickJoin is invoked in a Zone with no Rooms.

Admin Tool
    [NEW] Added maxThreads and maxConnections parameters to Server Configurator module, Web server tab, for both HTTP and HTTPS Tomcat connectors.
    [NEW] In Zone Monitor, added a "reason" field when banning a user.
    [NEW] In all modules based on the UI Builder system, text inputs now have an increased width (varies with screen width).
    [FIX] In Zone Configurator and Zone Monitor modules, when accessing the Zone or Room Extension settings, if the Extension's JAR file contains a very large number of classes, a client JavaScript error is thrown and the "Main class" dropdown remains empty.
    [FIX] Under certain circumstances, all log lines in Log Viewer's Runtime Log tab are grouped in a single row in the table.
Lapo

--

gotoAndPlay()

...addicted to flash games
tyagunov
Posts: 18
Joined: 08 Dec 2016, 12:39

Re: [NEW] SFS2X 2.18.0 is available!

Postby tyagunov » 14 Dec 2021, 17:39

what about log4J hack issue?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [NEW] SFS2X 2.18.0 is available!

Postby Lapo » 14 Dec 2021, 17:43

The vulnerability that has been on everybody's mouth in the past few days is a Log4J 2.x issue.
We still use Log4J 1.x which is not affected.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
tyagunov
Posts: 18
Joined: 08 Dec 2016, 12:39

Re: [NEW] SFS2X 2.18.0 is available!

Postby tyagunov » 14 Dec 2021, 17:56

Good news everyone! )
Cheers!
Luke64
Posts: 21
Joined: 08 Nov 2020, 23:15

Re: [NEW] SFS2X 2.18.0 is available!

Postby Luke64 » 15 Jan 2022, 20:37

Lapo wrote:[NEW] RoomStorage API now support a 'CUSTOM' type where you can pass your own implementation of the IRoomStorage interface.

Yay! But how? There's no option to set a custom Storage class in the backend as for the Buddy Storage... :?

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

Re: [NEW] SFS2X 2.18.0 is available!

Postby Lapo » 18 Jan 2022, 09:05

@Luke64
1) create your custom class by implementing the IRoomStorage interface.
2) implement a custom config class by extending BaseStorageConfig.

Set the BaseStorageConfig.customStorageClassName to the fully qualified name of your implementation.

Example of usage:

Code: Select all

public class CustomRoomStorageExtension extends SFSExtension
{
   @Override
   public void init()
   {
      LapoStorageConfig config = new LapoStorageConfig();
      config.strParam1 = "--> Hello";
      config.strParam2 = " World --<";
      config.customStorageClassName = "sfs2x.storage.custom.LapoCustomStorage";
      
      getParentZone().initRoomPersistence(RoomStorageMode.CUSTOM, config);
   }
}


Where LapoCustomStorage is my implementation of IRoomStorage, and LapoStorageConfig is the extended config class.
Hope it helps

p.s. = we'll publish a detailed blog post about this very soon.
Lapo

--

gotoAndPlay()

...addicted to flash games
Luke64
Posts: 21
Joined: 08 Nov 2020, 23:15

Re: [NEW] SFS2X 2.18.0 is available!

Postby Luke64 » 23 Jan 2022, 22:45

Perfect, that helps. So I can replace my custom build RoomHandler class now. :D

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

Re: [NEW] SFS2X 2.18.0 is available!

Postby Lapo » 24 Jan 2022, 09:29

Hi,
we have published more details about this here:
https://smartfoxserver.com/blog/custom- ... fs2x-2-18/

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 70 guests