Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - iterbi7

Pages: 1
1
Extensions / Re: How to Create a New Extension
« on: August 22, 2014, 06:04:46 am »
Hello!

The user above me is asking how to run the script. Well I figured that out but I have another problem. After I drag and drop the build script into terminal i get the following error:

aljosas-mini:project lupsina$ /Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/build
mkdir: ../ndll: File exists
mkdir: ../ndll/iPhone: File exists
dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/../../../haxelib
  Reason: no suitable image found.  Did find:
 /usr/lib/libneko.dylib: mach-o, but wrong architecture
/Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/build: line 4:   841 Trace/BPT trap: 5       ../../../haxelib run hxcpp Build.xml -Dandroid
dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/../../../haxelib
  Reason: no suitable image found.  Did find:
 /usr/lib/libneko.dylib: mach-o, but wrong architecture
/Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/build: line 5:   843 Trace/BPT trap: 5       ../../../haxelib run hxcpp Build.xml -Diphoneos
dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/../../../haxelib
  Reason: no suitable image found.  Did find:
 /usr/lib/libneko.dylib: mach-o, but wrong architecture
/Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/build: line 6:   844 Trace/BPT trap: 5       ../../../haxelib run hxcpp Build.xml -Diphoneos -DHXCPP_ARMV7
dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/../../../haxelib
  Reason: no suitable image found.  Did find:
 /usr/lib/libneko.dylib: mach-o, but wrong architecture
/Users/lupsina/Applications/Stencyl/plaf/haxe/extensions/mytest/project/build: line 7:   845 Trace/BPT trap: 5       ../../../haxelib run hxcpp Build.xml -Diphonesim


I was using bundled version of haxe (3.0.1) but now I've installed 3.1.3 and the problem persists. 

also what should this command suppose to do?

export DYLD_LIBRARY_PATH=/path-to-stencyl/plaf/neko-mac
export PATH=$PATH:/path-to-stencyl/plaf/neko-mac

because after i replace "path-to-stencyl" and run everything in terminal it happens nothing (cursor jumps to new line).

So any ideas about the error? Am I missing something?

2
Extensions / Re: How to Create a New Extension
« on: August 22, 2014, 05:56:20 am »
Just drag and drop "build" script into your terminal after you navigate to that particular directory.

3
Toolset Extensions / Re: Creating an Extension. [Problems encountered]
« on: August 16, 2014, 08:50:50 am »
Hello, me again :)

I've sucessfuly created my first engine extension +1 (PlusOne) button. I did this by editing the extisting engine extension "test-native" found in Stencyl folder.  I removed the old code and put the creation of the PlusOne button in the "run" method of the NativeTest.java file.

It works, but I'm not satisfied because I need feedback when the user interacts with the +1 button.  I can implement the onPlusOneClickListener and it works (potential click is detected), but in that code I need to use startActivityForResult(intent, 0) - it is required. When the user interacts with button the +1 confirmation dialog popus up and it asks the user if he wants to "Cancel", "Share", or "+1". Originally I would overrode the "onActivityResult" method in my Activity (Because the original activity "listens" for potential feedback from previously started activity ) and thus get the result, but I don't know where to implement that method when dealing with haxe and stencyl. Where is activity lifecycle handled anyway.. and in where are handled such methods like "onActivityResult", and others?

I hope you understand what I asked :) Thank you for your answer.

4
Toolset Extensions / Re: Creating an Extension. [Problems encountered]
« on: August 09, 2014, 09:36:31 am »
I thank both for the answer.

There are two things I would like to accomplish:
1. I would like to make Google Plus (Google+) extension (from existing Android class) . So people in my game would click the "+1" button and thus recommend Google my product.
2. I would like to learn how to make Stencyl extensions ( I know Java ) and develop more extensions for this awesome tool.

Check your logs, or post them here. If the jar was created but doesn't show up, maybe there's an error in the logs.

Do you mean LOG in Eclipse? In the console window it shows that everything is okay.




5
Toolset Extensions / Creating an Extension. [Problems encountered]
« on: August 09, 2014, 07:32:28 am »
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  :)






Pages: 1