Where to dl "Dialog Extension Sample" game?

NeoCHI

  • Posts: 523
On the site the dl instructions now say to use to use the repo to download the extension but using that way doesn't seem to download the "Dialog Extension Sample" game.

I went back and dled a legacy version of the extension for 3.3.2 and that seemed to come with the sample game but it doesn't seem to run properly. When I try to open the game it throws a "Couldn't initialize Data Structure Extension, Error: null". Then when I try to test it in the "Flash (Player)" it gives the following error:
Code: [Select]
ds/dialog/Style: Unexpected :
line: 198
columns: 12-13

I've enabled the "Dialog Extension" in the the sample game but I don't know how to enable the "Data Structures" extension?

Justin

  • *
  • Posts: 4716
You may need to follow these upgrade steps to get the sample to work.

http://community.stencyl.com/index.php/topic,39253.0.html

If that doesn't do any good, I'll take a look.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

NeoCHI

  • Posts: 523
I didn't have an old version of the extension and I had already enabled the dialog extension. Am I missing something?

Justin

  • *
  • Posts: 4716
Any of the steps that include deleting / installing extension files don't have to be done, but the game-specific steps still need to be done to import the old sample game.

To confirm you've installed everything:
- Open Stencyl. Go to Extensions > Get Extensions. Add the repository "http://www.polydes.com/repo".
- Install the Dialog Extension. Everything it needs should be installed with it. (that is, toolset and engine extensions for both dialog and data structures. You can also make sure to install/upgrade each of them individually if it doesn't work)

To upgrade the game:
- Open your game. It will complain about the "dialog" engine extension missing. That's fine.
- Go to the dialog extension in the dashboard sidebar and enable it for the current game.
- Test.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

NeoCHI

  • Posts: 523
That's everything I did, but it didn't work. :'(

Justin

  • *
  • Posts: 4716

« Last Edit: May 08, 2016, 01:47:31 am by Justin »
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

NeoCHI

  • Posts: 523
After importing the game I'm getting the following error when I try to open it:
Code: [Select]
Could not open game.

Could not restore from backup /Users/foobar/stencylworks/games/Dialog Extension Sample 166/snippets/list.xml.bak.

NeoCHI

  • Posts: 523
Ok so copied all the files within the link you gave me and put them into the sample game I had and it works now. Question now is which files within the link you sent do I need to copy into my actual game if I want to use the settings within the sample game for my actual game's dialog?

Justin

  • *
  • Posts: 4716
The extras folder, and then you need to set stuff like the pointer actor and sounds and other resources that don't exist in your game.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

DoctorMikeReddy

  • *
  • Posts: 180
After importing the game I'm getting the following error when I try to open it:
Code: [Select]
Could not open game.
Could not restore from backup /Users/foobar/stencylworks/games/Dialog Extension Sample 166/snippets/list.xml.bak.

I too got the same error for the new sample :-( and the file structure doesn't seem to be anything like a normal Stencyl project. The old sample https://dl.dropboxusercontent.com/u/63356485/DialogTest.stencyl gives the following error whenever the text pauses for key input at the <but> command (see attached):

« Last Edit: April 11, 2016, 07:11:17 am by DoctorMikeReddy »

NeoCHI

  • Posts: 523
The extras folder, and then you need to set stuff like the pointer actor and sounds and other resources that don't exist in your game.

The sample game in the link you sent wasn't a complete project. Specifically it didn't even contain the extras folder.

I've already copied the extra folder from an old sample game (legacy 3.3.2) from your site into my actual game already but it's erroring like the old sample game (legacy 3.3.2). So I'm guessing whatever change you did in that new link you sent I need to do in my actual game now too?

Also how do I set stuff like the pointer actor and sounds and other resources that don't exist in your game?

Justin

  • *
  • Posts: 4716
Sorry, totally my fault. I uploaded the wrong thing. Try again. You need to copy both the extras folder and the extension-data folder.

Set those resources by going to Dashboard sidebar, clicking Data Structures Extension, and looking through the various items, and setting stuff that's unset. You probably will need to set at least the pointer animation for it not to crash at <but>, and you'll need to set the controls too.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

NeoCHI

  • Posts: 523
I've copied both the extras and the extension-data folder into my actual game now but whenever I click on anything in the Data Structures Extension I still get the following error:
Code: [Select]
java.lang.NullPointerException
at com.polydes.datastruct.data.types.general.StructureType$StructureEditor.<init>(StructureType.java:250)
at com.polydes.datastruct.ui.table.PropertiesSheet.createEditor(PropertiesSheet.java:419)
at com.polydes.datastruct.ui.table.PropertiesSheet.loadRows(PropertiesSheet.java:225)
at com.polydes.datastruct.ui.table.PropertiesSheet.addDataItem(PropertiesSheet.java:55)
at com.polydes.datastruct.ui.table.PropertiesSheet.buildSheetFromFolder(PropertiesSheet.java:646)
at com.polydes.datastruct.ui.table.PropertiesSheet.buildSheetFromFolder(PropertiesSheet.java:648)
at com.polydes.datastruct.ui.table.PropertiesSheet.buildSheetFromFolder(PropertiesSheet.java:648)
at com.polydes.datastruct.ui.table.PropertiesSheet.<init>(PropertiesSheet.java:352)
at com.polydes.datastruct.ui.objeditors.StructureEditor.<init>(StructureEditor.java:45)
at com.polydes.datastruct.data.structure.PreviewStructure.getEditor(PreviewStructure.java:22)
at com.polydes.datastruct.ui.objeditors.StructureDefinitionEditor.<init>(StructureDefinitionEditor.java:236)
at com.polydes.datastruct.data.structure.StructureDefinition.getEditor(StructureDefinition.java:137)
at com.polydes.datastruct.ui.page.StructureDefinitionPage$1.selectionStateChanged(StructureDefinitionPage.java:85)
at com.polydes.common.ui.darktree.DarkTree.valueChanged(DarkTree.java:332)
at javax.swing.JTree.fireValueChanged(JTree.java:2927)
at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3391)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188)
at javax.swing.JTree.setSelectionPath(JTree.java:1634)
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2393)
at com.polydes.common.ui.darktree.DTreeUI.mousePressed(DTreeUI.java:234)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
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.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1673)
at java.awt.Component.setVisible(Component.java:1625)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.polydes.datastruct.ui.page.StructureDefinitionsWindow.setVisible(StructureDefinitionsWindow.java:126)
at com.polydes.datastruct.MainPage$1$1.run(MainPage.java:39)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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.awt.EventQueue.dispatchEvent(EventQueue.java:726)
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)

I was getting this in the legacy sample game before too but now the new link you gave works fine. I'm guessing I still need to make some other change?

NeoCHI

  • Posts: 523
Nvm, deleted everything in both directories in my actual game and recopied those directories from you sample game in and now it seems to be working! THANKS!

NeoCHI

  • Posts: 523
Hmm, I may have spoke to soon. The sample game doesn't seem to stop at the <but> commands anymore and it doesn't seem to show the pointer animation either.

Btw, can I use the sounds from the sample game in my actual game?