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

Pages: 1
1
Ask a Question / Get Pixel?
« on: June 17, 2022, 01:17:29 pm »
Hello!

How can I get the separate R, G, B values from the 'Get Pixel Of '-block?
I'm now trying with just printing out its returned value as a string, but I get one number as 9932684. I don't know how to use that?
I guess that really is a HEX value, but still; ->what block or code can I use to extract the RGB values from that in Stencyl?

2
I have a button with a triangular shape that I need to test if it has ben pushed or not. Is there a simple way to do this?   

3
Ask a Question / Failed: Running Android. (Return code: 1) [SOLVED]
« on: March 06, 2019, 04:30:32 am »
Hello! I'm trying to compile/publish to Android on Stencyl 4.0.1 and  I'm getting this error -> "Failed: Running Android. (Return code: 1)"

I have compiled to Android before in 3.5 so I know the basics and think I have set up everything right... but something is apparently missing...? (It works fine to compile to Android in both Unity and Android Studio.)

I have removed my old Android SDK folders from the stencylworks Android-SDK folder, since I now have the Android SDK installed in an other location. ( I don't know if I might have removed something Stencyl related when I did that, but I guess not. )
I might also have deleted some few other folders in the stencylworks folder, since I removed some folders 'that did not sound so important' like the folder 'games-generated', 'android-builds' and some folder named something like ~'Temp' or ~'Logs' ? I did this a long time ago while not using Stencyl for a while, to save space on my OneDrive...  Yesterday I heard that I shall NOT touch the stencylworks folder! I haven't deleted it but I realise that I do have messed with it... I guess it could be good for you to know if that might could cause this compiler error?


Please help. Here's a snippet from the log, and full logs are attached.

Thanks in advance.

Code: [Select]
2019-03-06 12:17:48,054 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Running command: BUILD
2019-03-06 12:17:48,055 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Copying library file: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/lime/lime/ndll/Android/liblime-v7.so -> Export/android/bin/app/src/main/jniLibs/armeabi-v7a/liblime.so
2019-03-06 12:17:48,056 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Creating directory: Export/android/bin/app/src/main/jniLibs/armeabi-v7a
2019-03-06 12:17:48,102 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: haxe Export/android/haxe/release.hxml -D android -D PLATFORM=android-14 -D HXCPP_ARMV7
2019-03-06 12:17:50,417 DEBUG [AWT-EventQueue-0] stencyl.sw.app.App: Action: Log Viewer
2019-03-06 12:18:06,363 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Changing directory: Export/android/obj
2019-03-06 12:18:06,363 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: haxelib run hxcpp Build.xml -options D:\OneDrive\stencylworks\games-generated\MischiefLounge_02c\Export\android\obj\Options.txt -Dandroid -DPLATFORM=android-14 -DHXCPP_ARMV7 -verbose
2019-03-06 12:18:06,542 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] hxcpp (Haxe C++ Runtime Support) (4.0.0)
2019-03-06 12:18:06,542 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using makefile: Build.xml
2019-03-06 12:18:06,542 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Reading HXCPP config: D:\OneDrive\stencylworks\prefs/.hxcpp_config.xml
2019-03-06 12:18:06,542 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] No specified toolchain
2019-03-06 12:18:06,543 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/setup.xml
2019-03-06 12:18:06,543 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: D:\OneDrive\stencylworks\prefs/.hxcpp_config.xml (section "vars")
2019-03-06 12:18:06,543 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/finish-setup.xml
2019-03-06 12:18:06,546 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing makefile: D:\OneDrive\stencylworks\games-generated\MischiefLounge_02c\Export\android\obj\Build.xml
2019-03-06 12:18:06,742 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/build-tool/BuildCommon.xml
2019-03-06 12:18:06,742 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/haxe-target.xml
2019-03-06 12:18:06,757 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/src/hx/libs/regexp/Build.xml
2019-03-06 12:18:06,759 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/src/hx/libs/std/Build.xml
2019-03-06 12:18:06,760 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/android-toolchain.xml
2019-03-06 12:18:06,762 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using Android NDK root: C:/Developer_SDKs/android-ndk-r19b
2019-03-06 12:18:06,762 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Detected Android NDK r19
2019-03-06 12:18:06,762 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Detected Android toolchain: arm-linux-androideabi-4.9
2019-03-06 12:18:06,763 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Detected Android host: windows-x86_64
2019-03-06 12:18:06,763 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using Android NDK platform: android-14
2019-03-06 12:18:06,763 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Adding path: C:/Developer_SDKs/android-ndk-r19b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin
2019-03-06 12:18:06,763 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/gcc-toolchain.xml
2019-03-06 12:18:06,765 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing compiler: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/common-defines.xml
2019-03-06 12:18:06,768 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Parsing include: D:\OneDrive\stencylworks\prefs/.hxcpp_config.xml (section "exes")
2019-03-06 12:18:06,769 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using compile threads: 7
2019-03-06 12:18:06,770 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj
2019-03-06 12:18:06,771 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7
2019-03-06 12:18:06,855 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch
2019-03-06 12:18:06,856 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe
2019-03-06 12:18:06,857 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Creating PCH directory "D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe"
2019-03-06 12:18:06,858 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Precompile D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch
2019-03-06 12:18:06,859 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: arm-linux-androideabi-g++ -Iinclude --sysroot=C:/Developer_SDKs/android-ndk-r19b/platforms/android-14/arch-arm -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_ARMV7 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 "-IC:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -Wno-overflow "-D_LINUX_STDDEF_H " -Wno-psabi -DHXCPP_CPP11 -DHXCPP_ARMV7 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=14 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -std=c++11 -o D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include/hxcpp.h"
2019-03-06 12:18:06,881 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] 'arm-linux-androideabi-g++' is not recognized as an internal or external command,
2019-03-06 12:18:06,881 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] operable program or batch file.
2019-03-06 12:18:06,883 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Error: Error while running command
2019-03-06 12:18:06,883 INFO  [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] arm-linux-androideabi-g++ -Iinclude --sysroot=C:/Developer_SDKs/android-ndk-r19b/platforms/android-14/arch-arm -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_ARMV7 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 "-IC:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -Wno-overflow "-D_LINUX_STDDEF_H " -Wno-psabi -DHXCPP_CPP11 -DHXCPP_ARMV7 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=14 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -std=c++11 -o D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include/hxcpp.h"
2019-03-06 12:18:06,923 DEBUG [pool-1-thread-15] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
2019-03-06 12:18:06,924 ERROR [pool-1-thread-15] stencyl.sw.app.tasks.buildgame.GameBuilder: Failed: Running Android. (Return code: 1)
2019-03-06 12:18:06,924 ERROR [pool-1-thread-15] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.

4
Extensions / SP_ValueMixer
« on: May 24, 2017, 08:41:46 am »
Hi, this is my first extension!  8) A small but useful one -> SP_ValueMixer:

Use SP_ValueMixer as an easy way to mix between any two values, value A mixes with value B, use a number between 0.0 and 1.0 to say how much of A shall mix with B.

These are the blocks I have created so far:

So as you can see,  you can also mix colors.

The green block Returns Number
And the blue block Returns Color

 SP_ValueMixer should work on all platforms, and I have only tested on Flash, Android and Windows.

Here is an example, where the MouseY position is used tofade between different values like, Position, Volume, Color:
<a href="http://www.segelson.com/Temp/Stencyl/FaderTest.swf" target="_blank" class="new_win">http://www.segelson.com/Temp/Stencyl/FaderTest.swf</a>
You can also find this Stencyl example project attached, named: FaderTest.stencyl.

How to install extensions: http://community.stencyl.com/index.php/topic,30432.0.html

Please show what you make with it! :D


 

5
Ask a Question / Best way to save a separate file?
« on: May 18, 2017, 02:26:39 am »
Hello! :)

I need to be able save several images from within a painting app that I'm working on. I will also need to be able to load those images and delete them from within the app. I need this to work solid on both iOS and Android. ( I also would like to be able to first check if there is enough disk space on the device to save an image, before trying to save it, to prevent crashing. )

What is the best way to do this from Stencyl?

-> I have tried the "Attribute Saving"-extension, it works ok, but it does not seem to keep the files separated, so for each image I save it takes much longer time to save the next one. So all images seems to shear the same data. And I need to have it separated in some way. ( Also I'm clueless about how to see if there is enough disk space on the device, before saving an file. )

Please help with some ideas, thanks in advance!

6
My android app always restart itself after open a link in browser, using the block 'open URL in browser'? So if I hit the back arrow to switch back to my app, it has jumped back to the start scene. And I have nothing in my code that does that, so it happens when the app "loses focus" and sits idle in the background.

Is there a way I can prevent this?

I also wonder if it is possible to have an app running in the background as long as I want? Now my Stencyl made apps stops or resets to the start scene after idle a longer time in the background. Also timers does not seem to work when the app does not has focus/ is idle.

7
Chit-Chat / "Notify me of replies" on this forum does not work for me?
« on: September 13, 2014, 06:46:58 am »
Hm, "Notify me of replies" on this forum does not work for me? Does it work for you guys? I have checked that "Notify me of replies" box and  I dont have a spam filter, just have blocked some specific IP addresses. Makes me wonder from which IP address do you get the replies from?  :-\

8
Fixed Bugs (3.x) / Enable Purchases checkbox is "dead"
« on: January 11, 2014, 04:05:58 pm »
The Enable Purchases checkbox in Stencyls Game Settings meny is not respected.

So the Android Manifest, never includes the line: <uses-permission android:name="com.android.vending.BILLING" />

And maybe something else is missing, or have changed? Because when I edit the Android Manifest Template myself I still couldn't get the Android Purchases to work? I could before with the NME version...?


9
Fixed Bugs (3.x) / Android Version Code error
« on: January 11, 2014, 03:41:24 pm »
The Android Version Code entered in Stencyls Game Settings meny is not respected. So the final APK end up with any other Version Code.

I noticed that the Version Code in the Android manifest, now seems to auto increase for each build/compile??

The APK Version Code must be right to be able to upload a new APK version at Google Play.


11
iPhone / iPad / Android / 1D Arcade!
« on: October 26, 2013, 05:15:02 am »
Hello, here is my new app developed in Stencyl!
It contains in ap purchases and is available for both Android and iOS.
It's a game in only one dimension, 1D  8)

Catch good green waves as fast as you can, and avoid nasty red waves before they pass the centerline.

Also, prepare for other surprises that are waiting ahead. Play the fun pong like mini game in 1D to earn bonus. Have fun and challenge your friends to see who's the master of 1D Arcade.


Insert coin

Extra life

Goodies

Game over

Google Play:
https://play.google.com/store/apps/details?id=com.segelson.OneDeeArcade&hl=en

Itunes:
https://itunes.apple.com/en/app/1d-arcade/id638871602?mt=8

MrDumle from this forum have also been working on this game, thanks for your help!


12
Fixed Bugs (3.x) / How to deactivate ads on Android?
« on: September 18, 2013, 04:35:34 am »
I removed all the premissions in the android manifest file, but then it appears a red text message in my app saying: "You must have INTERNET and ACCESS_NETWORK_permissions to serve ads."?

Hmm ok, but I don't uses ads and I don't want to use them!? So how can I remove this message, without adding in the premissions that I like to remove?


13
Suggestion Archives / Amazon in app purchases
« on: September 09, 2013, 02:40:47 am »
When Android in app purchases are working it would be quite easy to implement Amazon in app purchases, see link: https://developer.amazon.com/sdk/in-app-purchasing/reference/google-to-iap.html

 :)

14
iPhone / iPad / Android / Banana Smash - My first game on iTunes
« on: January 24, 2013, 01:13:32 am »
This small iOS game was created with Stencyl and it's a collab between me and MrDumle.
I'm so happy that it's finally out today, and a free version will come later. Big thanks to MrDumle and the brains behind Stencyl for making this possible!

https://itunes.apple.com/ua/app/banana-smash/id594153366?mt=8

/ Svante

15
Ask a Question / Remove the black fading at start
« on: August 17, 2012, 06:13:53 am »
Hi! Is it possible to remove the fading from black at the start of a game?
I can't find the settings for that? Thanks in advance!

Pages: 1