How to Install for Stencyl 3.4

Musicman82121

  • *
  • Posts: 10
Hi Justin,
I'd like to add dialog to the beginning of my game (Instructions for how to play followed by a "press enter to continue" but the link you provided doesn't work. Do you have any other links available? I'm using Stencyl 3.4

waterrune

  • Posts: 2
Hi i cannot install the extension for this in my Stencyl. The programme told me to generate the logs. what should i do? log attached

Justin

  • *
  • Posts: 4184
Did you follow the steps in the second post in this thread? Don't try to download the extension through the repository.

For Live Support: Join our discord channel and ping me @justin.

dtishin

  • Posts: 20
Hi Justin, the URL (http://www.polydes.com/3.4.0-extensions/) says it can't load the page. Is the website temporarily down? Could you upload the files to a dropbox folder instead? Thanks a lot!

Wasanni

  • *
  • Posts: 115
Hey Justin, Is this still working on the latest 3.5 build? I tried installing it but when I click enable it says "ouch this should not have happened". I followed the instructions to install it. The files I am using might be a few months old but I cannot re-download them the site is down.

Justin

  • *
  • Posts: 4184
Sites back up, thanks for letting me know.

For 3.5, you should use the repository feature within Stencyl.

For Live Support: Join our discord channel and ping me @justin.

Wasanni

  • *
  • Posts: 115
Thanks Justin!

I tried it again with the new files how you described in this thread and when I open the sample project I get a Toolset Extension Error (image attached). Not sure if it's me doing something wrong but the instructions seem pretty straight forward. Build I'm using is 10195.

Error-Install" border="0



I also get an "ouch" error when I click on "click to enable Dialog Extension for this game", though it seems to be enabled already in the settings.


java.lang.NoSuchMethodError: com.polydes.common.nodes.Leaf.setParent(Lcom/polydes/common/nodes/Branch;Z)V
   at com.polydes.dialog.data.Folder.addItem(Folder.java:52)
   at com.polydes.dialog.data.Folder.addItem(Folder.java:40)
   at com.polydes.dialog.data.stores.Macros.load(Macros.java:34)
   at com.polydes.dialog.DialogExtension.onGameWithDataOpened(DialogExtension.java:155)
   at stencyl.sw.ext.GameExtension.installForGame(GameExtension.java:250)
   at stencyl.sw.app.ExtensionManager.enableExtension(ExtensionManager.java:272)
   at stencyl.sw.ext.ExtensionDependencyManager.enable(ExtensionDependencyManager.java:309)
   at stencyl.sw.ext.AddonPage$1.mousePressed(AddonPage.java:92)
   at java.awt.Component.processMouseEvent(Component.java:6532)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
   at java.awt.Component.processEvent(Component.java:6300)
   at java.awt.Container.processEvent(Container.java:2236)
   at java.awt.Component.dispatchEventImpl(Component.java:4891)
   at java.awt.Container.dispatchEventImpl(Container.java:2294)
   at java.awt.Component.dispatchEvent(Component.java:4713)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
   at java.awt.Container.dispatchEventImpl(Container.java:2280)
   at java.awt.Window.dispatchEventImpl(Window.java:2750)
   at java.awt.Component.dispatchEvent(Component.java:4713)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:709)
   at java.awt.EventQueue$3.run(EventQueue.java:703)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.awt.EventQueue$4.run(EventQueue.java:731)
   at java.awt.EventQueue$4.run(EventQueue.java:729)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Justin

  • *
  • Posts: 4184
Again, for 3.5, you should use the repository feature within Stencyl. The files in this thread are old versions that work in 3.4. The repository has versions for newer builds of Stencyl. It should be smart enough to download the right version for you.

For Live Support: Join our discord channel and ping me @justin.

Wasanni

  • *
  • Posts: 115
When I installed using the repository it seems to have worked as you said. I can now enable the extension and started making some dialog. I followed TheIndieStation's tutorials to learn about the extension. I did step by step what he did to avoid getting errors but when I test my game I get these errors:

Extension-Error5" border="0

Everything I added has an image so I'm not sure what it's looking for exactly. Not sure if I am supposed to post here. Maybe a Topic/Section for installing for 3.5? Unless it's really just me doing something wrong and it's going smoothly for everyone else.

« Last Edit: January 05, 2019, 05:42:15 pm by Wasanni »

Justin

  • *
  • Posts: 4184
This is just a mismatch between versions. Downloading from the repository should ensure that doesn't happen, but something seems to be going wrong here. Could you post your log? It'll tell me what build of Stencyl you're using, as well as which versions of the extensions are installed.

For Live Support: Join our discord channel and ping me @justin.

Wasanni

  • *
  • Posts: 115
Hey Justin, here are the logs.

Thanks for taking a look!

(Build 10195)

Justin

  • *
  • Posts: 4184
Hey, sorry about this. It turns out that I made some changes to the engine extension's code months ago, but I forgot to release the update on the repository. It's been updated now. Go to "Extensions > Extension Repositories" to update, or if you have "Enable Extension Update Notifications" turned on, it'll ask you to update next time you open Stencyl.

For Live Support: Join our discord channel and ping me @justin.

Wasanni

  • *
  • Posts: 115
Thanks Justin! I updated the extension and ran the dialog sample project and it's working!

Wasanni

  • *
  • Posts: 115
Hey Justin, I have a question about the extension. It works with the sample project now but not with my own game and not with a new game. I get a null object reference error. I made a basic dialog with only the necessary Data (Style, ScalingImage, Window, Dialog Base) I added fade in and out tweens but that's it. I made sure everything is filled in and I get the Null object error.

Attempt 2
I took the sample project and deleted everything (including scenes, fonts, actors, etc...) to make it match my blank game dialog test and surprisingly it worked with the sample project. I figured something in my games (even blank ones) was the issue.

Attempt 3
I made a new game and copied 1 game folder at a time to my own blank game from the sample project and I found out that even if I copy the extension-data and extra folder and try to test dialog (after making a scene, font etc...) it would not work. As soon as I copy the game.xml file it works without making any adjustments. 

Not sure what is going on but that is the only way I've gotten it to work on my own games (new and old projects). I'm trying to see what line of code is making the difference so I can fix it on my game. Is this an actual bug or did I completely overlook something? I cleaned my projects and reinstalled the extension to start from scratch many times and been trying to troubleshoot but no luck today. I didn't want to make another post but I've been trying all day with no luck and figured you might know why this is happening.

Error-Dialog" border="0

This is the error I get no matter if I test on an old game or blank new game and copy the same basic setup as the sample project. Once I replace the game.xml file it works.


** UPDATE:

I  realized if I enable the 1.5x, 2x, 3x, 4x, scales in the sample dialog project, reload, and run the game it gives me the Null Object Error. If I uncheck them, clean the project/unused files, and run the game again it fixes the error.

« Last Edit: January 06, 2019, 07:49:37 pm by Wasanni »

Wasanni

  • *
  • Posts: 115
As far as I can tell there seems to be an issue with the project scaling. I installed Stencyl on a new computer and reinstalled the extension. I made a new blank game and I got the same null reference error. I unchecked the x1.5, x2, x3, x4 project scale and then it worked. This time when I put back the larger scales and closed/opened the game to create the larger graphics it worked. I think I had seen a few people around the forum a while back saying they had a similar issue. If I see those posts I'll let them know they can try that. I'm going to try this on a game that is not blank and see if it works.

UPDATE: Works on my other game as well. I guess I just needed to remove the large scales and then let Stencyl make them in higher resolution. Not sure for what because the font was made with the larger scales active. The only thing would be the scaling image in the extension but I thought that doesn't need multiple sizes since I didn't notice multiples of it in the games folder.

UPDATE2: Still crashes sometimes on larger scales. On Android always crashes unless I use 1x scale.

« Last Edit: January 09, 2019, 07:31:26 pm by Wasanni »