How to Create a New Extension

Jon

  • *
  • Posts: 17524
How to Create an Extension

http://www.stencyl.com/help/view/how-to-create-engine-extension/
http://www.stencyl.com/help/view/how-to-create-native-engine-extension/


How to Submit an Extension

You've now finished up an extension and want to share it with the community. Here's what you need to do.

1) ZIP it up into a folder.

2) If you’ve made a native (iOS / Android) extension, you can omit the project subfolder from the redistributed extension. This contains the source code to your extension.

3) Start a forum topic here using this template (the Extensions forum) to get feedback.

« Last Edit: November 02, 2015, 10:25:43 am by Jon »

ShivaFang

  • Posts: 248
I know this is an old post, but it's still stickied.  The linked post indicates that an updated version of the document exists on StencylPedia, but looking for the information there only pulls up the *other* type of extension (Stencyl extensions - like the Resource Manager, not code/block extensions)

What am I missing?
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!

captaincomic

  • *
  • Posts: 6108
StencylPedia hasn't been updated to 3.0 (naturally, since 3.0 hasn't officially been released yet.)
So the drafts are the only reference for 3.0 at the moment.

ShivaFang

  • Posts: 248
Oh I get it - the PDF is what replaces the post below it.  I somehow missed that there were attachments, sorry!

The reference to the 'pedia' was what threw me (I thought the pedia already was replacing even the PDF).  Nevertheless, I think I got it now, thanks!
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!

GeorgeN

  • Posts: 856
Now the "color" tag is working.
Code: [Select]
color = any of these [blue, cyan, green, lime, purple, red, gray, charcoal]
Also you can use the "help" tag to describe your blocks.

Example:
Code: [Select]
<palette>
<block tag="test-print" spec="print %0 to console %1" code="Test.print(~); /* Testing: ~ */" type="action" color="purple" help="Print some text to console." returns="void">
<fields>
<text order="0"></text>
<dropdown order="1">
<choices>
<c text="Pressed" code="1"></c>
<c text="Released" code="2"></c>
</choices>
</dropdown>
</fields>
</block>
</palette>

QkyGames

  • Posts: 125
Hi,

Quote
For example, if you are on a Mac and want to build the test-native extension, you would cd to [STENCYL_INSTALL]/plaf/haxe/extensions/test-native/project and then run build.

how I run the build? if I double click opens a text and the end says "access denied"

sorry for my English.
Maxi.

iterbi7

  • Posts: 5
Just drag and drop "build" script into your terminal after you navigate to that particular directory.

iterbi7

  • Posts: 5
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?

mvmsaikrishna

  • Posts: 83
same problem here[. any help guys?


quote author=iterbi7 link=topic=15059.msg196453#msg196453 date=1408712686]
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?
[/quote]