can some1 help me
i cant see my own ext in zoneconfig
cant see my extention
cant see my extention
- Attachments
-
- sfsextctrl.png
- (178.68 KiB) Not downloaded yet
Re: cant see my extention
Hi,
Extensions must be compiled and deployed as a jar file.
Please make sure to read this section of the documentation:
http://docs2x.smartfoxserver.com/Extens ... uick-start
Also, if you're not familiar with Java you can write Extensions in Javascript which is easier. (Requires SFS2X version 2.13)
http://docs2x.smartfoxserver.com/Extens ... uick-start
Cheers
Extensions must be compiled and deployed as a jar file.
Please make sure to read this section of the documentation:
http://docs2x.smartfoxserver.com/Extens ... uick-start
Also, if you're not familiar with Java you can write Extensions in Javascript which is easier. (Requires SFS2X version 2.13)
http://docs2x.smartfoxserver.com/Extens ... uick-start
Cheers
Re: cant see my extention
i have fellow many tuto ..trying 2 way
if some1 french can explain me that will be easier for me .. if not i dont know .. im using eclipse if that can help ..
if some1 french can explain me that will be easier for me .. if not i dont know .. im using eclipse if that can help ..
- Attachments
-
- sfsctrlext.png
- (238.34 KiB) Not downloaded yet
Re: cant see my extention
ok i made one other extension from the link u shared me .. and that dont work anymore .. si i<ll put the src can u see and explain me what im going wrong plz ...
- Attachments
-
- bloodsong.rar
- (2.84 KiB) Downloaded 341 times
Re: cant see my extention
HI,
the extension you have sent doesn't even compile correctly, so it shouldn't be a surprise that it doesn't work.
The only line in your init() method refers to some "mathHandlers" symbol which can't be found anywhere.
I can only recommend that you actually follow the tutorial I linked, step by step.
If you prefer a video, here you go:
https://www.youtube.com/watch?v=nKGxhwJ0Ccc
But make sure to follow it exactly, otherwise you won't succeed.
Good luck
the extension you have sent doesn't even compile correctly, so it shouldn't be a surprise that it doesn't work.
Code: Select all
this.addRequestHandler(math, mathHandlers);
The only line in your init() method refers to some "mathHandlers" symbol which can't be found anywhere.
I can only recommend that you actually follow the tutorial I linked, step by step.
If you prefer a video, here you go:
https://www.youtube.com/watch?v=nKGxhwJ0Ccc
But make sure to follow it exactly, otherwise you won't succeed.
Good luck
Re: cant see my extention
any1 speack french ? i need some1 to talk lol
Re: cant see my extention
Lapo wrote:HI,
I can only recommend that you actually follow the tutorial I linked, step by step.
Good luck
its wont work any more ...
- Attachments
-
- MyExt.rar
- tuto extension
- (1.98 KiB) Downloaded 328 times
Re: cant see my extention
Hi,
the name of the jar file is incorrect and must end with "Extension" such as "MyExtension.jar" or "AsteroidExtension.jar".
Also the name of your main class doesn't follow the correct naming convention, which is optional.
Pleas make sure to read the documentation first:
http://docs2x.smartfoxserver.com/Gettin ... rator-zone
under "Zone Extension tab"
Thanks
the name of the jar file is incorrect and must end with "Extension" such as "MyExtension.jar" or "AsteroidExtension.jar".
Also the name of your main class doesn't follow the correct naming convention, which is optional.
Pleas make sure to read the documentation first:
http://docs2x.smartfoxserver.com/Gettin ... rator-zone
under "Zone Extension tab"
Thanks
Re: cant see my extention
Also it is documented in the "Writing the first Java Extension" tutorial here:
http://docs2x.smartfoxserver.com/Extens ... extensions
which I recommend to read in its entirety.
Cheers
http://docs2x.smartfoxserver.com/Extens ... extensions
which I recommend to read in its entirety.
Cheers
Re: cant see my extention
hell yea i finaly got my first extention work haha
Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: Provided Request Handler does not implement IClientRequestHandler: class com.a51.integrated.sfs2x.LoginEventHandler, Cmd: DBLogin
Description: Extension initialization failed.
wtf
Exception: com.smartfoxserver.v2.exceptions.SFSRuntimeException
Message: Provided Request Handler does not implement IClientRequestHandler: class com.a51.integrated.sfs2x.LoginEventHandler, Cmd: DBLogin
Description: Extension initialization failed.
wtf
- Attachments
-
- MyExtension.zip
- (5.42 KiB) Downloaded 335 times
Re: cant see my extention
It means that the class LoginEventHandler that you registered as Request Handler does not extend the BaseClientRequestHandler class as expected.
It's not very useful to attach the zipped extension with no sources
Just post the error, it's usually more than enough.
Thanks
It's not very useful to attach the zipped extension with no sources
Just post the error, it's usually more than enough.
Thanks
Who is online
Users browsing this forum: No registered users and 130 guests