[[NEW]] SmartFoxServer 2X 2.8.0 released!

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: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

[[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 14 Nov 2013, 16:29

Hello!
We have just released SmartFoxServer 2X 2.8.0 which introduces the new MMOApi, a new set of server and client API specifically designed with large virtual worlds and MMO-type applications. We also added a new Room Persistence API and a number of fixes and improvements that were discussed recently in the support forum.

The new patch can be applied to any previous SFS2X 2.7.0.
NOTE: If you are running any version < 2.7.0 you will need to first performa a full SFS2X 2.7.0 installation[/url].

Together with the update we have also release two new examples for the Flash platform and one for Unity to demonstrate the new MMO Api, and updated client libraries for Actionscript 3 and C#.

Learn more here:
-----------------------------------------------------
» MMO Rooms
» Room Persistence API
» SimpleMMOWorld Example

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

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 14 Nov 2013, 16:30

Release notes:

Code: Select all

[NEW] MMO API, providing several new classes and functionalities for large and extra large virtual worlds and games.
- MMORoom: uses Area-Of-Interest based updates to minimize traffic in MMORooms with thousands of players interacting together
- MMOItem: non player entity that can be used to represent bonuses, triggers, bullets, etc, in an MMORoom
- MMOItemVariable: dynamic custom properties for MMOItems

[NEW] Room Persistence API, providing a set of simple API to store Room data to any storage system, including out of the box support for File and Database storage.
[NEW] SFSEventType.USER_VARIABLES_UPDATE is now also dispatched at Room level.
[NEW] Added CreateRoomSettings.setRoomProperties(...) allows to add custom properties to the Room that will be available in the Room Extension.
[NEW] Updated Admin Tool.
[FIX] Fixed problems with SFSGame creation. leaveLastJoinedRoom would always result as true.
[FIX] Invitation system might end up inviting the Room creator when a private SFSGame is launched with a certain configuration.
[FIX] User now receives a USER_EXIT when leaving a Room that is being destroyed.
[FIX] Added more SystemRequests to the SystemControllerFilter system: SetUserPosition, AddBuddy, BlockBuddy, RemoveBuddy, SetBuddyVariables, BuddyMessage, InviteUser, InvitationReply, CreateSFSGame, QuickJoinGame.
[FIX] Runtime string format error in PlayerToSpectator request.
[FIX] Issue with Bluebox queue internal limit, now set to 120 messages max.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 14 Nov 2013, 16:31

Make sure to also download the latest Client API:

» C# for Unity/Win8/Win Phone: now supporting the new 2.8.0 MMO Api
» Actionscript 3: now supporting the new 2.8.0 MMO Api
» Objective-C: 100% ARC release, supports iOS7, XCode 5, several important bug fixes.

Download:
http://www.smartfoxserver.com/download/sfs2x#p=client

MMOApi :: Other client platform support:
The client side MMOApi for iOS, Android, HTML5 and C++ are under development and will be released in the next months.
Lapo

--

gotoAndPlay()

...addicted to flash games
Zanpher
Posts: 96
Joined: 05 Oct 2009, 23:15

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Zanpher » 14 Nov 2013, 17:04

Now I have to ask ...

Do NPEs take up a player license like NPCs?
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 14 Nov 2013, 17:27

If NPE means non player entity, then no they don't.
Lapo

--

gotoAndPlay()

...addicted to flash games
tichfuie
Posts: 26
Joined: 28 Aug 2012, 21:53

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby tichfuie » 15 Nov 2013, 01:12

thanks lapo,

can you post an updated client api download link please,

the existing c#/unity link still points to 1.40


also where are the examples at?
thanks again
tichfuie
Posts: 26
Joined: 28 Aug 2012, 21:53

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby tichfuie » 15 Nov 2013, 04:42

ok,
well, i downloaded the SFS unity examples and imported the MMORoomDemo.unitypackage

that contained the client api 1.50 at least that is what the unity debug console says.

run SFS 2.8 server
but the AoI example does not work for me. running unity 4.3
when play the unity demo the client connects ok, the client enters the BasicExamples zone then creates UnityMMODemo room,

open other unity client instance and connect, i can see both connections in same room on the SFS Server admin zone monitor,

but can not see each other in the game, both spawned in the same location but cant see eachother, then after 15 secs i can see both clients leave the UnityMMODemo room for some reason, altho the still connected to the zone but in no room.

weird.


can you advise please.

maybe the unity setup example was not actually tested? or am i missing something?
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 15 Nov 2013, 09:36

@tichfuie:
As regards the API please check again, we updated the links.

About the example: try testing in it in the browser, instead of Unity editor. The players are supposed to be spawned all in the middle of the map so if you don't move them they will overlap.

If it doesn't work anyway can you check the errors on the server side?
We haven't tested the project in Unity 4.3 but I don't see why it should't be working. Are there specific errors in the console?
Lapo

--

gotoAndPlay()

...addicted to flash games
tichfuie
Posts: 26
Joined: 28 Aug 2012, 21:53

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby tichfuie » 15 Nov 2013, 15:09

thanks for the client api download link update.

no, still the demo does not work, not even the stock webplayer demo,

the unity c# example lacks of a zone xml for the server.

you may want to take a look at since it does not work out of the box
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 15 Nov 2013, 15:41

I don't understand. Could you please report exactly what kind of error you are getting?
The Zone used by the Unity MMORoomDemo is the usual BasicExamples that is shipped by default. Maybe you've deleted it?

NOTE: The aforementioned Zone is there since your first installation. Of course the new patch is expecting it to still be there. If you have deleted it, it won't create a new one, so if that's the case you can recreate it from the AdminTool
Lapo

--

gotoAndPlay()

...addicted to flash games
tichfuie
Posts: 26
Joined: 28 Aug 2012, 21:53

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby tichfuie » 15 Nov 2013, 17:55

ok, I figured the issue,

forgot to add the extension pyTest/MMORoomDemo.py

now works great in both unity 4.2 and 4.3

but why is it being called and configured the AoI settings from client side instead of the server?
ConnectionGUI.cs

Code: Select all

   public void OnLogin(BaseEvent evt)
   {
      Debug.Log("Logged in successfully");
      if (smartFox.GetRoomByName(UNITY_MMO_ROOM) == null)
      {
         var settings = new MMORoomSettings(UNITY_MMO_ROOM);
         settings.DefaultAOI = new Vec3D(25f, 1f, 25f);
         settings.MapLimits = new MapLimits(new Vec3D(-100f, 1f, -100f), new Vec3D(100f, 1f, 100f));
         settings.MaxUsers = 100;
         settings.Extension = new RoomExtension("pyTest", "MMORoomDemo.py");
         
         //settings.ProximityListUpdateMillis = 50;
         smartFox.Send(new CreateRoomRequest(settings, true, null));




also, are there any tutorials on using python instead of java?

thanks again
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 15 Nov 2013, 18:47

The MMORoom can be built from client side or server side, it's really doesn't matter.

As regards the Python Extension, it's a quick example to generate many NPCs and add a little more "action" in the demo.
Even if you are completely new to python you should be able to understand what it does... it's a very readable, straightforward language.

The only important thing it does is detecting User Variables updates and calling the SetUserPosition(...) method. We could have done it on the client as well but this way you save one call for every movement.

In any case a tutorial will be published soon with more details about the demo.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
iceherosubzero
Posts: 15
Joined: 06 Mar 2009, 07:52
Location: India
Contact:

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby iceherosubzero » 25 Nov 2013, 11:45

Hello Lapo,

I downloaded and installed SFS 2X version 2.7.0 on my VPS having windows server 2008. I
then downloaded the patch and extracted the patch folder into Smartfoxserver_2x/installation folder then I ran the patch file
install-win.bat
my OS drive:\Users\{username}\SmartFoxServer_2X\SFS2X-Patch-2.8.0
Everything went well and it displayed all the msgs during the patching process as SUCCESS!
Then when I started the sfs server sfs2x-standalone. The log console screen gave a msg "Was not able to bind socket (127.0.0.1:9933)UPD and Was not able to bind socket (127.0.0.1:9933)TCP".

What went wrong and i cant even login into the admin panel.

before the patch process all was working gr8.

Also the Flash AS3 API SWC file does not show the class files when I expand the swc in flash develop and when I add it to the library. API version of the SWC 1.2.0.
The error is : Error : version required to extract this entry not supported (788).

Please help. Thanks

Regards,
iceheros
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby Lapo » 25 Nov 2013, 11:57

Hi,
the patch doesn't touch your configuration files, so those messages must have been there before.

As regards the API what is giving you the error? Is it Flash Builder? Flash CS? Which version please?
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
iceherosubzero
Posts: 15
Joined: 06 Mar 2009, 07:52
Location: India
Contact:

Re: [[NEW]] SmartFoxServer 2X 2.8.0 released!

Postby iceherosubzero » 25 Nov 2013, 12:37

Thanks for the reply Lapo.
Got the API working will check the patch thing myself, and if nothing works will ask you again thanks a lot.

Regards,
Iceheros

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 2 guests