Page 1 of 1

how to load extension in admin tool

Posted: 24 Sep 2011, 09:36
by vadim888
Hi!
i put ButtleFarm extension to sfs2x/extensions/battleFarm/BattleFarmExtension.jar
then i create new extension in admin tool and chose "battleFarm" extension in drop down list. But i don't see any classes of this extension in "main class". Why?

smartfoxserver 2x ver. 2-0-0 RC3

Posted: 24 Sep 2011, 11:12
by xenomorphangel
1 thing i notice about smartfox is your extension name and folder of where it resides HAVE to be the same.

so change your folder name to BattleFarmExtension and see if it works.

eg: sfs2x/extensions/BattleFarmExtension/BattleFarmExtension.jar

Posted: 24 Sep 2011, 11:35
by vadim888
xenomorphangel wrote:1 thing i notice about smartfox is your extension name and folder of where it resides HAVE to be the same.

so change your folder name to BattleFarmExtension and see if it works.

eg: sfs2x/extensions/BattleFarmExtension/BattleFarmExtension.jar


no, it doesn't work too..

Posted: 24 Sep 2011, 11:51
by appels
No, the folder can be anything you want, the extension name itself needs to end with ...Extension. ( FPSExtension, ChessExtension...)
Once this is the case, the admin tool will pick it up.
Same for the zone extension in the jar, once it's called something like ZoneExtension, it will get picked up.

Posted: 24 Sep 2011, 13:44
by vadim888
I have cleaned browser cache
now it works fine )