Simple Extension doesn't show up in the admin

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

Moderators: Lapo, Bax

appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Postby appels » 12 Jul 2011, 15:16

Thats wierd, have you tried clearing the cache of your browser or maybe try with another browser ?
The demo extensions should at least show.
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 13 Jul 2011, 08:04

bax wrote:@Angélique, did you check the logs for possible errors when starting SFS, or when you access the extension setup tab in the AdminTool?

Quoting myself. You should check if you have errors in the server-side logs when you load the Zone configuration in the AdminTool.
Also, are you sure you are using the latest version of the AdminTool? Maybe you are still using the old one, cached by the browser? Clear the browser's cache.
Paolo Bax
The SmartFoxServer Team
shahidbits2012
Posts: 16
Joined: 09 Jun 2021, 07:23

Re: Simple Extension doesn't show up in the admin

Postby shahidbits2012 » 09 Jun 2021, 10:37

This problem is relevant even today.
Create a single class project with Extension class in IntelliJ, create jar via Build Artifacts, add it to extension folder under any folder like SimpleExtention.
It won't show up in Admin Panel in the zone configurator. I am not sure why Admins can't provide a simple tutorial on how to create Smartfox-friendly extension jars.

Waiting !!!
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Simple Extension doesn't show up in the admin

Postby Lapo » 09 Jun 2021, 10:49

Hi,
If the Extension doesn't show up in the AdminTool you probably didn't follow the recommended naming convention:

    IMPORTANT NOTE
    The name of the main Extension jar file must end with the word Extension, for example MyExtension.jar. This is important because the AdminTool will only show the classes contained in the jar files which use this convention. For more informations see the additional note on the Use naming convention setting of the Zone Extension tab or Room Extension tab in the Zone Configurator module documentation).

Reference: http://docs2x.smartfoxserver.com/Extens ... extensions
Section: "Deploying the Extension"

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 43 guests