Hello everyone.
First I would like to apologize If I put this topic in the wrong thread.
Second, I came here to ask for help because I ran into some problems creating my first Stencyl extension and I really hope someone could help me with this.
So, I want to create a very simple extension and I was going through a tutorial found here:
http://www.stencyl.com/help/view/creating-extensions/. I will tell exactly what I did at every step found in link above, so you can tell me where I messed up.
First I've downloaded Stencyl Extension SDK.
Then've followed the instructions:
1. " First, navigate to [STENCYL_FOLDER]/plaf/sw/ - This folder contains all of your extensions."I did but I think this step is a little outdated? Because In my stencyl installation directory I don't have any "sw" folders inside "plaf" directory. (Check the screenshot)
2. "Open up the Sample Project in your IDE by creating a new, existing project. Peek at the README, which contains specific instructions for the nitty gritty project setup. Add sw.jar to the project's classpath and edit build.xml as directed."I've done that. I put Sample Project into existing workspace and Eclipse recognize it without problems when I give it the same name when creating "new java project". My package explorer in Eclipse looked like this (no errors):
Going futher I edited the build.xml file as directed:
1. "value" of "property" name="name" is the same name as the main class. So in this case "SampleExtension".
2. "value" of property name="swworkdir" is the workspace of stencyl. I've checked it where it is under Stencyl-> File ->Preferences->Workspace -> Workspace Folder. I copied that location and paste it in build.xml file. Also I've added value to "srcdir" which is a path to my java compiler ( without this It wouldn't sucessfully build .jar file )
build.xml now looks like this:
3. After that is done, run the "dist" ANT task. This builds a JAR file that Stencyl recognizes as an extension.I did and it build sucessfully. Here is the screenshot:
In this stage .jar file was created in "C:\Users\Matej\AppData\Roaming\Stencyl\stencylworks\extensions" with name SampleExtension.
4. Launch your copy of Stencyl, and you will see the Sample Extension appear in the Extensions menu and also inside the Extensions Manager. Play around with it.I launched Stencyl and Sample Extension
DID NOT appear in the Extension Manager.
So the questions is: What Am I doing wrong that Extension would not appear in the Extensions manager? Another question which I have is: What is the difference between Toolset Extensions and Engine extensions. What you can do with one of each? Can you make the Google+ Extension (+1 button) with toolset extension?
I also have all the required specifications needed:
1. Stencyl 3.1
2. Java JDK 6 (jdk1.6.0_45)
3. Eclipse IDE
Any help REALLY appriciated. Have a nice day