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.


Topics - spaceman

Pages: 1
1
After upgrading from build 8140 to build 8261, I have gotten the following error in the log with a game I had no trouble with earlier. The error happens at the end of the "Test Game" compilation for android, and the game launches successfully automatically on the device after compilation, as well as perfectly fine manually once closed and re-opened from the application drawer. I will upload a complete log on request. The fact that everything seems to work as expected, and yet this error pop up is a little unnerving. The error happens right after the "RUN" command in the log.
Code: [Select]
Level:     ERROR
When:      2015-03-14 14:57:34:626
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] Starting: Intent { act=android.intent.action.MAIN cmp=com.yourname.gamename/.MainActivity }

2
Resolved Questions / Actor Not Being Killed Offscreen
« on: March 01, 2015, 07:53:31 am »
I have a problem with an actor not being killed when outside of the screen bounds. I have a single scene,  a scene behaviour that creates an actor, and pushes it+rotates it in a direction leading it off the screen. The actor has no behaviours, and its only event is a 'do every' block, it checks if it's alive, and prints to the console that the actor is still alive. There is no "make self always active" block anywhere near the actor or the behaviour that creates it, or any 'set offscreen bounds' blocks either. I know that the actor should normally be killed the moment a part of it leaves the screen, but that's certainly not the case here. Attached is the scene behaviour (create asteroids on click), and the asteroids actor event (print every 0.1 sec if it's still alive).

What can possibly cause an actor to stay alive offscreen?

3
Ask a Question / Issue Publishing Android APK "build.xml"
« on: February 09, 2015, 07:40:59 pm »
I have the following errors in the log viewer when going trying to do Publish>Mobile>Android or Test Game [Android]
Code: [Select]
Level:     ERROR
When:      2015-02-09 22:24:06:604
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] BUILD FAILED
Level:     ERROR
When:      2015-02-09 22:24:06:605
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] /home/user/Documents/stencylworks/android-sdk/android-sdk-linux/tools/ant/build.xml:892: The following error occurred while executing this line:
Level:     ERROR
When:      2015-02-09 22:24:06:605
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] /home/user/Documents/stencylworks/android-sdk/android-sdk-linux/tools/ant/build.xml:894: The following error occurred while executing this line:
Level:     ERROR
When:      2015-02-09 22:24:06:605
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] /home/user/Documents/stencylworks/android-sdk/android-sdk-linux/tools/ant/build.xml:906: The following error occurred while executing this line:
Level:     ERROR
When:      2015-02-09 22:24:06:605
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] /home/user/Documents/stencylworks/android-sdk/android-sdk-linux/tools/ant/build.xml:283: null returned: 2
Level:     ERROR
When:      2015-02-09 22:24:06:605
From:      stencyl.sw.util.StreamGobbler

[openfl.sh] Total time: 7 seconds
There nothing that I can tell refers to any certificate errors (the only related problem I can find on the forums). It was working fine until I started setting game icons, and making a certificate that didn't just have "test" in every field. I'll post complete log on request. Build 8140 on Linux.

Edit: Couldn't find the problem, but I used an old backup of the file and it worked fine. I think it was because I started changing the name of the game in some places and somewhere it stopped matching up, and caused that particular error

Also, where upon successful building can I find the APK? I found little documentation on this process.

4
 Build 8140 on Linux; running a test game on an Android device using official built in "Show Mobile Ad" block in a game to show Admob ads. The block is used in the "On Create" method for the first scene's behaviour. Testing the game on a real device, I timed that it takes the ad ~60:00 seconds to initialize/load and finally display. I have other mobile games that were not made in Stencyl that show their Admob ads almost instantly when run.

After searching the forums, I couldn't find an "average" time for this. I was wondering if this was normal behaviour, and if anyone would like to share how long it takes for their own ads to load. If there's a method to  optimize load speeds, feel free to share*.  ;D

*My case is that the game play is a casual win/lose mechanic, with a single play through sometimes being a few seconds (think something you might whip out to play while waiting in line at a bank). I would just like to know if it was possible for advertisements to show up faster to reflect this case.

Edit: With the latest version of the unofficial Admob Addon, the banner ads take ~3 seconds to load. Would highly recommend using it over the stock admob features of Stencyl.

5
Just decided to test a game on a real device.

After some initial issues of getting the whole thing going:
- Initial errors about not having the jdk/android sdk: JDK8 Didn't work, got 6 and set new location
- Errors Compiling and Permission Errors in Log: Erroneously ran 'android-setup.sh' with sudo, which lead to obvious permission errors. I deleted the folders the script made, and then ran the script again without sudo (just chmod +x)
- Making Sure Device was Discovered: Android Device Manager (run from inside Stencyl) displayed my phone as ?'s (just a series of question marks) under every column. The Yuri's comment (the second like with 'ATTR...') fixed it (I installed adb from the software center (Ubuntu) to test it out. Running 'adb devices' showed the devices properly after unplugging, and plugging it back in. It showed up in the Android Device Manager  (run from inside Stencyl) also showed the devices properly.


My current issue is the fact that when I try to run "Test Game" after selecting "Android" from the dropdown, it all seems to be going great.  "Saving", "Finalizing", "Compiling", and then absolutely nothing. I don't even get anything interesting in the log (attached). I found nothing on the forums about this issue.

tl;dr: Compiling game to test on android (no certificates or anything) set. I get "Saving", "Finalizing", "Compiling", and then nothing happens. Would really like to be able to test game on a real android device.

Edit: Removed Log attachment from post after having found the following line in the last log:

2015-01-29 21:51:13,151 INFO  [Thread-41] stencyl.sw.util.StreamGobbler: /home/user/Documents/stencylworks/android-sdk/android-sdk-linux/tools/ant/build.xml:483: The SDK Build Tools revision (19.0.0) is too low for project 'Name of the Game'. Minimum required is 19.1.0

Running Android SDK Manager (Launched from Android Device Manager > Window > Android SDK Manager) and installing everything under the "Tools" folder (including 19.1.0).  This solved everything. Game compiled and launched on phone.


Mods, feel free to delete this post or move it to a more appropriate area.

Pages: 1