extension missing in admin tool

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

Moderators: Lapo, Bax

alvin3343
Posts: 80
Joined: 24 Jan 2006, 09:37

extension missing in admin tool

Postby alvin3343 » 02 Apr 2015, 03:14

Hi,

I use sfs2x 2.9.0 windows version for server framework.
I put my zone extension in SFS2X\extensions\somezone\somezone.jar

When I start server and log in with Admin tool.
I can see my zone in Zone Configurator.
But when I click [Zone Extension] tab, I see no zone in [ Name ] drop down list ..
So I can't add zone extension to my zone....

My development environment:
jdk 1.7 (32bit)
sfs2x 2.9.0 (32bit)
eclipse 4.4.2 (32bit)


I can set extension by editing somezone.xml
but if I log into admin tool I can't see that extension ...

anyone knows this problem....
thanks for help
regards.


Alvin
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: extension missing in admin tool

Postby Lapo » 02 Apr 2015, 08:02

Hi,
just to be clear the name of the Extension folder does not need to match the Zone name.

About your problem. There is a convention that requires your jar file to be called [something]Extension.jar so that the system can recognize the extension jar from other jar files, such as libraries etc...

From the documentation:
If JAVA is selected in the Type dropdown, all jar files contained in the Extension's folder are processed, provided their name ends with 'Extension.jar' (for example 'MyExtension.jar'); all other jar files are skipped. This is required to avoid receiving useless data (like the list of classes contained in library jar files).

http://docs2x.smartfoxserver.com/Gettin ... rator-zone (see the Zone Extension tab section)

In other words if your game is called "SpaceGame" just call your jar file SpaceGameExtension.jar, for example.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Stevenor and 107 guests