This is the third and final chapter of our explorations with Kotlin and SmartFoxServer 2X. After building the first Kotlin extension in part one and creating a basic client app in part two we’re now completing the picture with a client/server example.
Kotlin and SmartFoxServer 2X, part 2
In the last article we’ve introduced Kotlin, a modern language for the JVM and now a Google approved language for Android development. We have shown how simple it is to use Kotlin on the server side to develop SmartFoxServer Extensions.
Now it’s the time to see how to integrate the SFS2X Java API with Kotlin to build a client application. Continue reading
Kotlin and SmartFoxServer 2X
You may have heard of the Kotlin language before, but recently it has seen a big spike in popularity thanks to Google officially adopting it for Android development, alongside Java and C++.
Kotlin is an interesting statically typed language, developed by the good folks at Jetbrains, that shares many similarities with the likes of Scala and Swift. In a sense, it could be thought of the equivalent of Swift for the Java platform: a more modern, concise and safer language that runs in the JVM, fully interoperable with Java.
If that’s not enough, Kotlin also aims at compiling for other targets beyond the JVM, such as Javascript and native platforms and seeks to support asynchronous programming via coroutines and non blocking I/O.
In the context of using Kotlin with SmartFoxServer nothing would be easier: the integration on both server side and client side is painless and it works out of the box with any SFS2X release.
Let’s take a closer look, shall we? Continue reading
Creating Rooms from server side
In this recipe we will show how to create Rooms from your server side Extension. Continue reading
JavaScript is back!
With the release of SFS2X 2.13 last week we’re happy to reintroduce JavaScript as a server side language. For those familiar with the history of SmartFoxServer, JavaScript has been available since the early days of SFS PRO for writing server side code, and it’s now coming back thanks to the latest improvements in JDK 7 and 8.
SmartFoxServer 2X 2.13 released!
A new SmartFoxServer 2X version is available that focuses mainly on JavaScript for both client and server side.
We’re gladly re-introducing JavaScript as full-fledged server-side language for Extensions, thanks to the improved performance of the Nashorn engine, provided in JDK 8. Continue reading
SmartFoxServer 2X v2.12.4 patch released
SmartFoxServer 2X v2.12.4 is available for download as a patch to be installed on v2.12+.
This release fixes an issue with IPv6 addresses parsing and output to the logs.
You can download the update from here.
The return of JavaScript
As disclosed in our latest newsletter, JavaScript is coming back to SmartFoxServer!
With release 2.13 we’ll launch a new JavaScript client API taking full advantage of the SmartFoxServer 2X binary (and compressed) protocol, providing improved network efficiency. Continue reading
Ways of working with NPCs in a multiplayer game (p.2)
This is the last chapter of our two part series dedicated to managing NPCs. Make sure to review our first chapter if you haven’t already done so.
Standalone AdminTool for SFS2X
The SmartFoxServer 2X Administration Tool is now also available as a standalone macOS and Windows application.
You can get it here: http://www.smartfoxserver.com/download/sfs2x#p=extras