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 - Wasanni

Pages: 1 2 3 4 5 6
31
Ask a Question / How to get Player ID?
« on: January 10, 2019, 08:35:55 pm »
Hey has anyone been able to get a player's Google Play Games ID? I see a block for Player's Name & ID for iOS but not for Google. Is there a snippet of code I can use to do this?

Thanks! :)

32
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: January 07, 2019, 05:21:46 pm »
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.

33
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: January 06, 2019, 06:56:06 pm »
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.

34
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: January 05, 2019, 07:52:08 pm »
Thanks Justin! I updated the extension and ran the dialog sample project and it's working!

35
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: January 05, 2019, 05:45:22 pm »
Hey Justin, here are the logs.

Thanks for taking a look!

(Build 10195)

36
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: January 05, 2019, 05:32:52 pm »
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.

37
Journals / Re: 3D Library Adventure
« on: December 31, 2018, 12:10:15 pm »
Can't wait to see more 3D in StencyI! I try to stay updated on this thread, It's very intriguing! I'm a 3D artist and it would be fun to be able to add 3D elements to a game in Stencyl one day! Very impressive!!! :)

38
Ask a Question / Re: How to fix HTTP Request error?
« on: December 31, 2018, 11:25:38 am »
It's working! Thank you both!! I uploaded a .txt file to my web server to test and it works! The issue was dropbox like you said. I'm testing on Android for now until I fix the flash permissions; going to look through that flashplayer documentation so I can test on my pc as it's more convenient and then I'm going to see if I can get POST to work.

Thanks a lot!!! :)

39
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: December 31, 2018, 11:21:30 am »
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)

40
Dialog Extension / Re: How to Install for Stencyl 3.4
« on: December 30, 2018, 10:19:45 pm »
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.

41
Ask a Question / How to fix HTTP Request error?
« on: December 30, 2018, 07:06:12 pm »
Hey! I've been following the instructions on Stencylpedia to make an HTTP Request and I keep getting an error. I tried something simple like getting a number from a .txt file on dropbox like in the example but it won't work. I've been trying for hours and no luck. Does this block still work? Does anyone have an example of this still working?

Thanks :)







This is the error message. It looks like it "cannot load data from https://www.dropbox.com/s/pm5ufn9xmnqwhuc/Test.txt". I tried running on Android as well.


Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Users/Wasanni/AppData/Roaming/Stencyl/stencylworks/games%2Dgenerated/Project%20M/Export/flash/bin/Project%20M.swf cannot load data from https://www.dropbox.com/s/pm5ufn9xmnqwhuc/Test.txt.
   at com.stencyl.behavior::Script$/visitURL()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\Script.hx:3661]
   at scripts::SceneEvents_0/init()[C:\Users\Wasanni\AppData\Roaming\Stencyl\stencylworks\games-generated\Project M\Source\scripts\SceneEvents_0.hx:91]
   at com.stencyl.behavior::Behavior/initScript()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\Behavior.hx:107]
   at com.stencyl.behavior::BehaviorManager/initScripts()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\behavior\BehaviorManager.hx:97]
   at com.stencyl::Engine$/initBehaviors()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1257]
   at com.stencyl::Engine/loadScene()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:1156]
   at com.stencyl::Engine/begin()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:949]
   at com.stencyl::Engine()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\com\stencyl\Engine.hx:738]
   at Universal/preloaderComplete()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib\stencyl\1,00\Universal.hx:410]
   at lime.app::_Event_Void_Void/dispatch()
   at scripts::StencylPreloader/unload()[C:\Users\Wasanni\AppData\Roaming\Stencyl\stencylworks\games-generated\Project M\Source\scripts\StencylPreloader.hx:334]
   at scripts::StencylPreloader/onLoaded()[C:\Users\Wasanni\AppData\Roaming\Stencyl\stencylworks\games-generated\Project M\Source\scripts\StencylPreloader.hx:303]
   at lime.app::_Event_Void_Void/dispatch()
   at lime.utils::Preloader/start()
   at lime.utils::Preloader/updateProgress()
   at lime.utils::Preloader/current_onEnter()

42
Ask a Question / Re: How to walk between grass?
« on: December 26, 2018, 07:43:51 pm »
Wow thanks LIBERADO!  That works great, just what I was looking for and you even made a version yourself, awesome!

Thanks Luyren. I was trying with those block but couldn't figure it out. Going to go with LEBERADO'S method as it seems quite quick to do and works well.

I appreciate everyone taking the time to come up with solutions for this problem. Much much appreciated!! :)

43
Ask a Question / Re: How to walk between grass?
« on: December 26, 2018, 04:49:43 pm »
Hey xplosion28, thanks for the reply!

Wouldn't the actor for the front part of the grass still have to be on a layer above the character? This would mean the character would be in front of the back piece of grass but behind the front piece. Maybe I am not understanding your explanation but wouldn't that give a result similar to the image below? (the black outline is just to see the front layer better)

Layer-Modify5" border="0

The character's head needs to be in front of both pieces of grass at all times so it looks like he is standing inside it. The body should always be behind the grass.

44
Ask a Question / How to walk between grass?
« on: December 26, 2018, 03:58:24 pm »
Hey everyone! Been trying to figure this out and I feel like it's probably something simple that I am overlooking but I have been unable to get an effect like the image below with the check mark.

Layer-Example" border="0

I'm not sure if I can achieve this with collision. The only thing I can think of is splitting the character graphic in two and using two actors and then having them on different layers but this is going to cause a lot of other issues and/or be time consuming. I thought of splitting the graphics for the grass (front and back) but if I make a big field of grass the front grass graphic will still be over the character.

Any ideas?

45
Ask a Question / Re: Publishing Status
« on: December 22, 2018, 08:25:58 am »
I just did a quick test with the latest build on my Galaxy Note 5 and it seems to be working! Thanks Justin!

Pages: 1 2 3 4 5 6