Null error?

ElytraPower46

  • Posts: 3
I'm not super familiar with Stencyl so forgive me if I'm just being an idiot/misusing terms.

I downloaded and installed the Dialog Extension, copied the sample project's files/settings over, replaced some of its image and text files with my own, and ran the project. It's repeatedly giving me the same issue in the Flash player.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at dialog.util::BitmapDataUtil$/getActorTypeAnimation()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\util\BitmapDataUtil.hx:333]
   at dialog.core::AnimatedImage()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\AnimatedImage.hx:43]
   at dialog.ext::FlowScripts/but()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\ext\FlowScripts.hx:187]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at Function/<anonymous>()
   at dialog.core::DialogBox/executeTag()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\DialogBox.hx:510]
   at dialog.core::DialogBox/messageStep()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\DialogBox.hx:419]
   at dialog.core::DialogBox/update()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\DialogBox.hx:577]
   at dialog.core::Dialog/updateDialogBoxes()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\Dialog.hx:478]
   at dialog.core::Dialog/dialogUpdater()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\Dialog.hx:204]
   at com.stencyl::Engine/update()[C:\Program Files\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2618]
   at com.stencyl::Engine/postUpdate()[C:\Program Files\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2839]
   at com.stencyl::Engine/onUpdate()[C:\Program Files\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2831]

No clue what the issue is - there don't seem to be any name inconsistencies. Any help appreciated!

Justin

  • *
  • Posts: 4663
Looks like you're missing the animation displayed when waiting for user input to proceed the dialog. Check under the "Flow Scripts" extension in your data structures.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

ElytraPower46

  • Posts: 3
Thanks man, got it fixed (as well as many other errors in a similar line) and I think I finally understand the basics of how to use the extension. Great work, by the way.

It's now giving me a different error I have totally no idea what to do with - I know the dialog is responsible for its triggering but, having checked the source code the lines lead to, I don't know how to fix. Any ideas?

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at dialog.core::DialogStyle/tieExtensionsToDialogBox()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\DialogStyle.hx:47]
   at dialog.core::DialogBox()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\DialogBox.hx:98]
   at dialog.core::Dialog$/cbCall()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\engine-extensions\com.polydes.dialog\src\dialog\core\Dialog.hx:155]
   at MethodInfo-10507()[C:\Users\cassa\AppData\Roaming\Stencyl\stencylworks\games-generated\star_Born\Source\scripts\SceneEvents_0.hx:95]
   at com.stencyl::Engine/update()[C:\Program Files\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2600]
   at com.stencyl::Engine/postUpdate()[C:\Program Files\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2839]
   at com.stencyl::Engine/onUpdate()[C:\Program Files\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:2831]


Justin

  • *
  • Posts: 4663
This thread was continued over Discord.

https://discord.com/channels/209323692205932544/227870283749523459/943764381018234912

In the end, the problem was that there was a blank extension listed in the style.

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)