TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Extensions
→
External Data Extension [2.0.0]
Pages:
1
...
8
9
10
11
External Data Extension [2.0.0]
yoplalala
Posts: 1632
July 02, 2020, 02:13:34 am
Hi,
@Chris24XD
Try to DataUtils.hx in the extension folder.
And then
instead of
var stencylSound = new com.stencyl.models.Sound(-1, filename, true, false, 0.0, 1.0, ext);
put
var stencylSound = new com.stencyl.models.Sound(-1, filename, true, false, 0.0, 1.0, ext,1);
( or 0)
arpeggiudio
Posts: 14
July 08, 2020, 08:22:09 am
Hey the latest version here says v2.0, I found another version on the Discord server called "external data 4 fix" that says v1.6 .. the one linked here is the latest yes?
arpeggiudio
Posts: 14
July 08, 2020, 11:46:48 am
Assuming it is the latest, I was getting the "Not enough arguments, expected atlasID: Int" error when compiling, so I followed some advice down below and added another argument to the line 95. Game compiles and runs but crashes when this happens: [image attached]
I have a file named "test.txt" in the extras folder and would like to modify it. There are no other events or behaviors in this game. edit: correction there is one "when drawing" event that is drawing the text in "test.txt"
edit 2: it crashes even without the draw event
edit 3: tested on 2 different devices with different versions of android (5 and 8 ) - both crash
Any thoughts? Thank you!!! Been at this for weeks now
« Last Edit: July 09, 2020, 12:27:31 pm by arpeggiudio »
yoplalala
Posts: 1632
July 11, 2020, 08:49:05 am
Oh in fact, my correction was already on gihub
https://github.com/ETHproductions/external-data/commit/63cb38ab97f80d8875c36cb0cbea0bb71f4a3c2b
Try the latest version ( which is on github),
https://github.com/ETHproductions/external-data/archive/master.zip
if it still doesn't work I could install it and look at it...
arpeggiudio
Posts: 14
July 13, 2020, 11:50:43 am
Thanks for that. Tried the latest version. I am not getting the error but the extension still does not work as I expect. I must be doing something wrong? Could I trouble you to try this test? It's just a single scene. It exits/crashes every time I append text on Android.
« Last Edit: July 13, 2020, 12:06:51 pm by arpeggiudio »
arpeggiudio
Posts: 14
July 13, 2020, 12:59:45 pm
This could be helpful: I started testing directly from Stencyl (before I was copying the .apk file and installing) and the log has an error message.
yoplalala
Posts: 1632
July 14, 2020, 08:57:02 am
There seem to be somewthing wrong ...
A few things, what version of android do you have ?
Could you try this FileSave.hx ( I've just added a few traces) ? and send me the log?
(put it in the external data directory)
arpeggiudio
Posts: 14
July 16, 2020, 09:39:25 am
Thank you very much! Testing on two devices with Android 5.1.1 and Android 9. I recently did a fresh install of Stencyl (Build 10558), Android SDK (via stencyl) and the JDK (8u251) No luck with that file I'm afraid. Here's what I did:
+Uninstalled previous version of the extension (deleted folders from AppData\Roaming\Stencyl\stencylworks\engine-extensions)
+Copied the new filesave.hx file into the folder I installed the extension from (eternal-data-master.zip)
+Installed and enabled that extension
+redid the code to add text to the file as before
Thoughts? Thanks!
Justin
Posts: 4716
July 16, 2020, 02:22:04 pm
According to yoplalala's post, the only difference was the addition of a few traces. That means it prints a little but more information to the logs when you try to access the specific features that don't work. You'll need to share your new logs so yoplalala can see the new information.
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
arpeggiudio
Posts: 14
July 17, 2020, 07:12:34 am
*SMH* oooooh right. Sorry.
Do you need the bug report via the device's 'Take bug report' function from the Developer Option menu?
edit: or via Android studio? Sorry this is obvs all new to me!
Justin
Posts: 4716
July 17, 2020, 07:13:54 am
Just the same logs you provided last time, but with the new information.
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
arpeggiudio
Posts: 14
July 17, 2020, 07:33:21 am
Have a look, pls and thx!
Justin
Posts: 4716
July 21, 2020, 01:35:24 am
It looks like it's trying to save to "/mnt/sdcard". If this is in fact the desired place to save data with this extension, you should be able to enable that by adding the following line to
Settings > Advanced > OpenFL Settings
in Stencyl:
Code:
[Select]
<android permission="android.permission.WRITE_EXTERNAL_STORAGE" />
If this is not the desired path to be saving data to, the extension will need to be modified.
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
Justin
Posts: 4716
July 21, 2020, 01:47:29 am
I've made a change to this extension to enable the blocks to work with the "Auto-update Running Games" option in Stencyl. For those interested, the updated engine extension is attached.
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
arpeggiudio
Posts: 14
July 21, 2020, 05:45:30 am
Is "Auto-Update Running Games" required for this extension to work?
(thx btw )
Pages:
1
...
8
9
10
11