MANTRA: Check the docs!

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

MANTRA: Check the docs!

Post by Lapo »

This has been our mantra for all the past years dealing with SFS Basic/PRO support :)
"Check the docs" has probably become the most popular sentence in the forums... a more polite version of the infamous RTFM :)

Seriously, this time we not only want to reinforce the suggestion but we would also like to recommend to really checking the online preview documentation every once in a while as we will be publishing updates as soon as they are available.

Although we ship the docs with the beta download we want to emphasize that the online version will always be more up to date (for obvious reasons).

Happy SFS2X coding!
Lapo
--
gotoAndPlay()
...addicted to flash games
JRavey
Posts: 1
Joined: 01 Dec 2010, 16:23

Post by JRavey »

The preview docs are nice, so are the projects, but are there any plans for a Tic-Tac-Toe *tutorial* to go with the example project? If one exists, it would be nice to have a link to it.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
there is no tutorial right now although the code should be self explanatory if you have gone through the "Development Basics" section of the docs and the introduction on Extensions.

Anyways the good news is that we'll be releasing a series of video tutorials and we have plans to dissect the TicTacToe game as well :)
Lapo
--
gotoAndPlay()
...addicted to flash games
lolandroll
Posts: 7
Joined: 30 Nov 2010, 17:15

docs - are they valid

Post by lolandroll »

Hello!
I was trying to implement does examples

http://docs2x.smartfoxserver.com/Develo ... se-recipes

I have copy all folder sfs2x (from downloaded zip) to muppetExt folder in {MY-SFS2-FOLDER}/extensions/

as well as ExtensionTests.jar from downloaded zip.

I've made table in database on my localhost (Win7 + Xampp and Debian + Apache)

2 Every time when i am trying to start server i'm getting this error:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSException
Message: Extension creation failure: muppetsExt - Class not found: sfs2x.extensi
on.test.dblogin.DbLogin
Description: There were startup errors during the Zone Setup
Please connect via the AdminTool and correct the problem
+--- --- ---+

Could someone help me? Should i build it before? I am using NetBeans 6.9.1 but cant figure how to do my first extension - any links would be very helpfull.

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

Post by Lapo »

Sorry :oops:
Small typo in the docs. The class name is DBLogin not DbLogin
This will fix it.
Last edited by Lapo on 16 Dec 2010, 07:48, edited 1 time in total.
Lapo
--
gotoAndPlay()
...addicted to flash games
lolandroll
Posts: 7
Joined: 30 Nov 2010, 17:15

works fine

Post by lolandroll »

thanks Lapo!!!
gates
Posts: 15
Joined: 15 Dec 2010, 19:48

Post by gates »

I tried both DBLoign and DBLogin..

but still get this error

*-------------------------------------------*

02:19:58,312 WARN [main] v2.SmartFoxServer -
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.smartfoxserver.v2.exceptions.SFSException
Message: Extension creation failure: muppetsExt - Class not found: sfs2x.extension.test.dblogin.DbLogin
Description: There were startup errors during the Zone Setup
Please connect via the AdminTool and correct the problem
lolandroll
Posts: 7
Joined: 30 Nov 2010, 17:15

Post by lolandroll »

typo was in B not in l so it should be DBlogin - not DBLoign.

in spite of this - i see that tutorial on
"Writing your first simple MMORP game with SFS2X and Flash\Flex" would be HIT :lol:
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Post by hasbean »

I think there's an error in the Advanced Extensions Features section.

Code: Select all

@MultiHandler
public class RegisterMultiHandler extends BaseServerEventHandler
{
    @Override
    public void handleClientRequest(User sender, ISFSObject params)
    {
        // Obtain the request id
        String requestId = params.getUtfString(SFSExtension.MULTIHANDLER_REQUEST_ID);
    }
}
It didn't work for me until I replaced BaseServerEventHandler with BaseClientRequestHandler for the "extends" part.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Thank you, it was fixed.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply