AE 2.9

Previous topic - Next topic

MrPlow

I've got it working and its looking great so far - my hibernate issue seems to be resolved etc

(Just netwebend is not working )

As well as what SF said make sure you have manifest with Ads reference (if using)

update: Interstitial.gbas and AndroidExtras.gbas code files in your project.




Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

Also none of the gbas files is required for compiling and running (few fixes is in official commands as well). Only if using the extras functions.

It's weird about NETWEBEND issue. But make sure to stop music and sound before calling it. Here property it's should have done that automatic for music...
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Is it also because I used ALLOWESCAPE TRUE ?
With allowescape false i thought it was crashing?


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

see help.

ALLOWESCAPE TRUE allways close down and happens on all platforms.

On some platforms ALLOWESCAPE FALSE also might happens too.

if music is playing before calling the command with ALLOWESCAPE FALSE, then its might crash.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Minion

OK, been ill the past couple of weeks so havent been able to get back to try this.

Anyway, I decided to do a clean run. So downloaded a new version of GLB and installed to a new folder, updated that to latest GLB, then downloaded the AE 2.9 full install and installed that.

Got my project, trash-canned it to be on the safe side, then compiled for windows with no problem.

Then tried to compile for Android and this ...

Quote
"interstitial.gbas"(52) error : GPC0009 call to undefined function : GLB_ON_PAUSE

So added to dummy fucns ...

Code (glbasic) Select

SUB GLB_ON_PAUSE:
ENDSUB

SUB GLB_ON_RESUME:
ENDSUB


...just to get around the issue. Then it fails thus ...

Code (glbasic) Select
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.053 SN:17d88e8b - 3D, NET
Wordcount:653 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-19"
You can use "C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\glb_android_build.bat" to change the API level and SDK path.

AndroidIcons.exe [v3-3-2015] running...
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_36_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-ldpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_48_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-mdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_72_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable/icon.png
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_72_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-hdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_96_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-xhdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_180_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-xxhdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_192_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-xxxhdpi/icon.png
C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_ouya_AndroidExtras.png is missing (732x412 size)
the Ouya icon is not important, if you dont want to support the console
copy C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/icon_ouya_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/_OUYA/OUYATest1xxx/distribute/Android/res/drawable-xhdpi/ouya_icon.png

Checked AdActivity (intersititals):


Android Extras version (SDLActivity.java):
* 2.9

Checking Icons Finished...

BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
Updated and renamed default.properties to project.properties
Updated local.properties
Added file C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\build.xml
Updated file C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\proguard-project.txt
.
BUILD STAGE 3: Build a debug build
Buildfile: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 24.0.2
[checkenv] Installed at Q:\Compiler\platform\android\android-sdk-windows

-setup:
     [echo] Project Name: glbasic
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.2
     [echo] Resolving Build Target for glbasic...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin\res
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin\rsObj
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin\rsLibs
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\gen
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin\classes
    [mkdir] Created dir: C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for glbasic...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 29 source files to C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\bin\classes
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:21: package com.google.android.gms.ads does not exist
    [javac] import com.google.android.gms.ads.AdListener;
    [javac]                                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:22: package com.google.android.gms.ads does not exist
    [javac] import com.google.android.gms.ads.AdRequest;
    [javac]                                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:23: package com.google.android.gms.ads does not exist
    [javac] import com.google.android.gms.ads.InterstitialAd;
    [javac]                                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:36: cannot find symbol
    [javac] symbol  : class InterstitialAd
    [javac] location: class org.libsdl.app.Interstitial
    [javac] public InterstitialAd mInterstitial;
    [javac]        ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:94: cannot find symbol
    [javac] symbol  : class AdListener
    [javac] location: class org.libsdl.app.Interstitial
    [javac] class GoogleAdmobListener extends AdListener
    [javac]                                   ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:45: cannot find symbol
    [javac] symbol  : class InterstitialAd
    [javac] location: class org.libsdl.app.Interstitial
    [javac] { mInterstitial = new InterstitialAd(context);
    [javac]                     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:63: package AdRequest does not exist
    [javac] mInterstitial.loadAd(new AdRequest.Builder().build());
    [javac]                                   ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:101: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:112: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac] { case AdRequest.ERROR_CODE_INTERNAL_ERROR:
    [javac]      ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:115: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac]             case AdRequest.ERROR_CODE_INVALID_REQUEST:
    [javac]                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:118: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac]             case AdRequest.ERROR_CODE_NETWORK_ERROR:
    [javac]                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:121: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac]             case AdRequest.ERROR_CODE_NO_FILL:
    [javac]                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:107: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:127: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:132: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:138: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 16 errors

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.

Total time: 1 second
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:21: package com.google.android.gms.ads does not exist
    [javac] import com.google.android.gms.ads.AdListener;
    [javac]                                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:22: package com.google.android.gms.ads does not exist
    [javac] import com.google.android.gms.ads.AdRequest;
    [javac]                                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:23: package com.google.android.gms.ads does not exist
    [javac] import com.google.android.gms.ads.InterstitialAd;
    [javac]                                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:36: cannot find symbol
    [javac] symbol  : class InterstitialAd
    [javac] location: class org.libsdl.app.Interstitial
    [javac] public InterstitialAd mInterstitial;
    [javac]        ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:94: cannot find symbol
    [javac] symbol  : class AdListener
    [javac] location: class org.libsdl.app.Interstitial
    [javac] class GoogleAdmobListener extends AdListener
    [javac]                                   ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:45: cannot find symbol
    [javac] symbol  : class InterstitialAd
    [javac] location: class org.libsdl.app.Interstitial
    [javac] { mInterstitial = new InterstitialAd(context);
    [javac]                     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:63: package AdRequest does not exist
    [javac] mInterstitial.loadAd(new AdRequest.Builder().build());
    [javac]                                   ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:101: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:112: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac] { case AdRequest.ERROR_CODE_INTERNAL_ERROR:
    [javac]      ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:115: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac]             case AdRequest.ERROR_CODE_INVALID_REQUEST:
    [javac]                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:118: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac]             case AdRequest.ERROR_CODE_NETWORK_ERROR:
    [javac]                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:121: cannot find symbol
    [javac] symbol  : variable AdRequest
    [javac] location: class org.libsdl.app.Interstitial.GoogleAdmobListener
    [javac]             case AdRequest.ERROR_CODE_NO_FILL:
    [javac]                  ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:107: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:127: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:132: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android\src\com\glbasic\test\Interstitial.java:138: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 16 errors
    [javac] Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
HOW TO INSTALL? Install by invoke this command:
"Q:\Compiler\platform\android\bin\..\android-sdk-windows\platform-tools\adb.exe" install -r "C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android"
.
Android=C:\Users\Windows User\Documents\GLBasic\_OUYA\OUYATest1xxx\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 10.7 sec. Time: 11:31
Build: 1 succeeded.


spacefractal

look lits its a AE bug im should look on. For some reasons Interstitial.java have not been overwrote correctly and should have uses the none ads version.

AndroidExtras.exe should have copyplatform\android\bin\build\Intersitials\None.java to platform\android\templateproj\src\com\glbasic\test\Interstitial.java, but for some reasons its have failed, and its not even show any error about it. This is a bug, im look on later this week.

In meantime, copy the java file manual.

There is 3 versions of Interstitial.java in AE2.9: Amazon, Google and None.

interstitial.gbas require those two glbasic calls if you using ads. That cant been avoid, but if you dont uses those ads, you dont need to uses interstitial.gbas at all.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Minion

Thanks spacefractal, thats seems to allow me to compile to Android again ;)

Sadly, cant seem to get the joypads to work for OUYA now ;(

Im using the following code ...

Code (glbasic) Select


?DEFINE ANDROID
?IFDEF WIN32
        ?UNDEF ANDROID
?ENDIF

SETSCREEN 800,600,1

init:

Android.init()
//Android.GameControllersSetLayout$("Left=Move Left;Right=Move Right;Up=Move Up;Down=Move Down;b1=Jump Button");
Android.GameControllersSetLayout$("Left=Go Left;Up=Go Up;Right=Go Right;Down=Go Down;b1=Button 1;b2=Button 2;b3=Button 3;b4=Button 4")

SETCURRENTDIR("Media")
Android.Check_Asset("smalfont.png")
LOADFONT "smalfont.png",1
SETFONT 1

main:

Android.GameControllers("Update")

CLEARSCREEN RGB(0,0,0)


FOR n=0 TO 1
LOCAL nn=n*200

PRINT "LEFT: " + Android.GameControllers("Left",n), 0, 100+nn
PRINT "RIGHT:" + Android.GameControllers("Right",n), 0, 130+nn
PRINT "UP:   " + Android.GameControllers("Up",n), 0, 160+nn
PRINT "DOWN: " + Android.GameControllers("Down",n), 0, 190+nn

PRINT "LEFT: " + Android.GameControllers("PadL_Left",n), 100, 100+nn
PRINT "RIGHT:" + Android.GameControllers("PadL_Right",n), 100, 130+nn
PRINT "UP:   " + Android.GameControllers("PadL_Up",n), 100, 160+nn
PRINT "DOWN: " + Android.GameControllers("PadL_own",n), 100, 190+nn

PRINT "LEFT: " + Android.GameControllers("PadR_Left",n), 200, 100+nn
PRINT "RIGHT:" + Android.GameControllers("PadR_Right",n), 200, 130+nn
PRINT "UP:   " + Android.GameControllers("PadR_Up",n), 200, 160+nn
PRINT "DOWN: " + Android.GameControllers("PadR_own",n), 200, 190+nn

PRINT "BUTTON1: " + Android.GameControllers("b1",n), 300, 100+nn
PRINT "BUTTON2: " + Android.GameControllers("b2",n), 300, 130+nn
PRINT "BUTTON3: " + Android.GameControllers("b3",n), 300, 160+nn
PRINT "BUTTON4: " + Android.GameControllers("b4",n), 300, 190+nn

PRINT "stick : " + n, 450, 100+nn


NEXT

SHOWSCREEN

GOTO main
END




But nothing is reported for either controller. Although, pressing the "A" button on either controller will instantly exit the app. Any thoughts ? The controller used to (semi) work prior to the new update to AE.

spacefractal

#22
Create a new app in devs.ouya.tv, that correspons to your package name used.
Download the app key file and put that to distribute\Android\assest\Keys\keys.der.

Im forget about that one in the AndroidExtras help file, and is now required to get Ouya controllers working (the Dev Key bits is also required, that was covered in the help file). This is due a change in a newer Ouya SDK, so im was forced to move detection directly in OnCreate() instead in Shop.java.

Also a little stupid bug where right stick down did not work. Here in GameControllers.Java, a OuyaController.AXIS_RS_Y should jave been a -OuyaController.AXIS_RS_Y few lines after Log.i("glbasic", "OUYA Combatible Controllers found")).

Android.Check_Asset("smalfont.png") is not required anymore.
Android.GameControllersSetLayout$() is also not required anymore from AE12.10.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Minion

Is thae app key really necessary ? I have no intention of putting anything I do on the OUYA market, I just wanted to knock some stuff up for the kids. It seems a bit silly haveing to go thru all the bank stuff and getting SWIFT and IBAN codes just to test a little project ;(

spacefractal

you need to register a app, but you dont need to put anything on the market. Soon you register the app, you will get the key.

This seen cannot been avoid (im have just looked into that). This is sadly due a change in the newer Ouya SDK required it. The main issue is in the Ouya SDK isRunningOnOUYASupportedHardware() function. This will simply crash out, if you dont init the key.

But the game does not crash, but instead im disable all Ouya features instead. This was only way to go. Its a SDK restriction.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Minion

I hope (or not as the case may be) have this right. I need to go to developer/products then click on "New Product" to create a new app ?

If so then it just takes me to this screen (see attached) and Im unable to progress unless I give all billing info and tax details ;(

spacefractal

#26
Products is for inapp product purchases. You don't need that.

Creating a new app is under games tab. You also dont need to submit it or full fill all info.

This is a very stupid sdk bug in Ouya, and sadly im can no longer avoid it.

isRunningOnOUYASupportedHardware() is simply just bad coded. Its require init the OuyaFacade first, which is there you init both the app key and the dev key.

EDIT: Im are going to upload v12.10 now with a lots of GameControler relative changes.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#27
The annoying Hibernate does still sometimes crash.

Howover its seen im finally got that most annoying Android issue fixed.

glb_do_pause(0) and glb_do_pause(1) in sdl_main.cpp cannot been called from Java_org_libsdl_app_SDLActivity_glbasicOnPause(). If you do that, then the Java virtual machine might crash (due threading, but glbasic is not thread safe).

Im have removed those direct calls in sdl_main.cpp, so its only changes status of it, and then call the pause mode manually in SHOWSCREEN() and in HIBERNATE() instead (in glb_pc.cpp).

Its seen that fixed it.

im commit those changes to the new SVN, Kanonet have created (its a private one of course). The SVN is not public imo.

PS. Im also deleted and recreated the SVN repo, due commit issues. Im thinks that is fixed now, so revision 4 is the beginning.

PPS. Im thinks the HIBERNATE issue also exists on iOS as well, which some have noticed. Im gonna thinks its the same bug.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Minion

Hey, Im back again. I got everything working nicely, then fell ill so was unable to carry on. Came back to do some more work, and now it wont compile again but with a new error message :( I dont believe Ive done anything since I last coded so can`t see why this has happened. Can anyone shed any light on this ?

Code (glbasic) Select


_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.053 SN:17d88e8b - 3D, NET
"Game.gbas"(82) warning : GPC1004 variable already exists : inv
Wordcount:1449 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-19"
You can use "C:\Users\Windows User\Documents\GLBasic\New - Copy\distribute\Android\glb_android_build.bat" to change the API level and SDK path.

AndroidIcons.exe [v3-3-2015] running...
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_36_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-ldpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_48_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-mdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_72_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable/icon.png
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_72_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-hdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_96_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-xhdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_180_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-xxhdpi/icon.png
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_192_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-xxxhdpi/icon.png
C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_ouya_AndroidExtras.png is missing (732x412 size)
the Ouya icon is not important, if you dont want to support the console
copy C:/Users/Windows User/Documents/GLBasic/New - Copy/icon_ouya_AndroidExtras.png to C:/Users/Windows User/Documents/GLBasic/New - Copy/distribute/Android/res/drawable-xhdpi/ouya_icon.png

Checked AdActivity (intersititals):


Android Extras version (SDLActivity.java):
* 2.9

Checking Icons Finished...

BUILD STAGE 2: Start compiler (android.bat)
Q:\Compiler\platform\android\bin\..\android-sdk-windows
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Updated project.properties
Updated local.properties
Updated file C:\Users\Windows User\Documents\GLBasic\New - Copy\distribute\Android\build.xml
Updated file C:\Users\Windows User\Documents\GLBasic\New - Copy\distribute\Android\proguard-project.txt
Updated project.properties
Updated local.properties
Updated file C:\Users\Windows User\Documents\GLBasic\New - Copy\distribute\Android\bin\build.xml
Updated file C:\Users\Windows User\Documents\GLBasic\New - Copy\distribute\Android\bin\proguard-project.txt
.
BUILD STAGE 3: Build a debug build
Buildfile: C:\Users\Windows User\Documents\GLBasic\New - Copy\distribute\Android\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 24.0.2
[checkenv] Installed at Q:\Compiler\platform\android\android-sdk-windows


spacefractal

Is java sdk installed? This one seems quite odd and something missing (not those 20 path missing issues, that normal.

You should try to move glbasic installation out of () program folders, so it's don't create the q drive.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/