Android Extras (Micro Game Consoles/GPS/Keyboard/Audio)

Previous topic - Next topic

spacefractal

You could checks with DOESFILEEXIST to make sure its not a case or spelling issue.

Square is best,  but should not case any issues, other than you might waste some memory (often they just got allocated to nearest power of 2 as im have read of).

Like pngs, jpg's can been encoded in two ways: standard encodning as well progressive encodning. Im do allways uses standard encodning here and have not have trouble on that. Could that been a issue?

And which device was it on?

when using AE, also dont forget to do Android.Check_Asset() of course.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

There is a another new console, which got support from Ouya:
http://arstechnica.com/gaming/2014/03/ouya-everywhere-initiative-promises-more-indie-games-on-more-devices/

Both Maz Catz controller is allready supported in a recent AE update (before im was known about the console, but lucky they used same controller layout for the other Mad Catz controller they released and im only did searched part of the device name), so your game would run "out of the box" on that console. Howover there is not possible to choice a surface on it, but its a quite faster console on both GameStick and Ouya, so im dont think its a issue this time.

So except to see your Ouya game in thier store for M.O.J.A

EDIT:
Its seen there is a little bug, which seen missing detecting the Moja console its self, even the controller was allready supported. Im are now going to upload a Karma Miwa with Mojo fixes. If that one got passed, im will update AE.

For your code, only input controller images might need to been changed, and mojo can been detected throught the extended android info.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

oh damnet, there is some issues, that why im detect ouya and mojo is incorrect. that is due a stupid limit in Ouya SDK, which means im cant uses the official hardware dectection function, which is required to been done in OnCreate(), but keys is first init after that function.

But hopefully im have fixed that and will resubmit soon as possible.

If that one got passed, im will release Android Extras 2.3 with Android Mojo support. Im also added a little extra function in AndroidExtras.gbas, so you can checkout which console its run it (gamestick, ouya or mojo).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

Stupid OUYA.


Good luck with the update/re-submission :)
I came. I saw. I played.

spacefractal

its my own fault, hehe, not testing on Ouya correctly before submitting :zzz:. Im do now checks the consoles again directly with android.os.Build.MODEL string again.

Its now works again as its should on Ouya and hopefuly on Mojo too. Im do like the idea Ouya team is doing by expainding coop with other companies, which of course should been used.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

now its need some test, because im have now just implemented Ouya Everywhere in a more official mode. That also means im needs to remove the remapping feature for those consoles (but keeps it on a Normal device of course). This is not possible to do that anymore on Ouya (but xbox, ps3 and other unknown controllers is still supported). But this is no big deal really.

Also the OUYA DEV KEY is now also needs to been inserted to Strings.xml file, because this was the only way to get workaround a annoying limit, because im needs to detect hardware in OnCreate(), which needs the key allready there. The shop system is first invoked after that.

Also im will in Android Extras possible to checkout the button string for the connected controller (this is need to been implemeted in gbas too).

Im do thinks Ouya Everywhere is a great idea really to expands to other systems that is Ouya Combatible and automatic can run on those.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

Finally im have just uploaded v2.3. By now the update version is finshed and the full install version is being uploaded.

This versions adds Ouya Everywhere support and fixed screen dimmer issue.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

About the
Code (glbasic) Select
PLATFORMINFO $ ( "DOCUMENTS" ): You cannot access this until you require WRITE_EXTERNAL_STORAGE. You can simulate this behaviour in 4.3 and below developer options.
So you should use "APPDATA" wherever possible.
Is that OK?

Gesendet von meinem GT-N7100 mit Tapatalk

spacefractal

im known.

im found that when im got issues with Greedy Mouse about half year ago/year ago after a system update on Ouya (which breaked the savegames on that). Now PLATFORMINFO$("DOCUMENTS") diddent works anymore for savegames (that even the WRITE_EXTERNAL_STORAGE was set). Instead im of course uses PLATFORMINFO$( "APPDATA") for Android. Its was a issue long time ago.

Also with Kitkat and some Android devices (like Ouya), even with WRITE_EXTERNAL_STORAGE is set, you have only read rights on the sdcard now, even in the Download folder. Write permission is only granted on the application own folder on the sdcard in a very contain folder. Here its is what PLATFORMINFO$("DOCUMENTS") should do on Kitkat, while on other systems, its should still point to the Download folder. This is a change many people dosent like.

This is property require upgrade to API-19, so im have not did that yet. Its a pretty minor issue anyway. Im do not have a KITKAT device yet.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Minion

Just updated the AE using the "Android Extras Update 2.2.x -> 2.3", ran my prog and now I get this :(

Code (glbasic) Select

running glb_build.bat
Using ANDROID_TARGET="android-18"
You can use "C:\Users\Windows User\Documents\GLBasic\Cassette50\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
Checking Icons....
BUILD STAGE 2: Start compiler (android.bat)
C:\Program Files (x86)\GLBasic_v12\Compiler\platform\android\android-sdk-windows
Error: Target id 'android-18' is not valid. Use 'android.bat list targets' to get the target ids.
.
BUILD STAGE 3: Build a debug build
Buildfile: build.xml does not exist!
Build failed
.
BUILD STAGE 4: Build a release build
Buildfile: build.xml does not exist!
Build failed
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m


Everything seemed to be working fine, and I only updated it so I can get to use BACK/MENU buttons. Anyone have any idea whats gone wrong or how to fix this ?

spacefractal

look like the installation update file is failed. Im will look on that tomorrow, so im will soon remove that file. Instead download the full install of v2.3.

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

Minion

Can I just confirm that the "Back" button code actually works ? Ive tried various combinations in my code and nothing seems to change. I even tried the AndroidSample version as well, changeing the "END" statement to this.

Code (glbasic) Select

IF Android.GameControllers("Menu")>100
sound3.play(FALSE)
ENDIF


But it just exits the app (ive tried bothe the back and menu buttons on my phone). Ive also tried changing the EnabaleBackButton from True to False and still no change. In all cases it just exits the app.

spacefractal

do you uses v2.3? Im remember there was some eailer versions. in v2.3 the back button is disabled by default.

have you tried tot add those commands top of your app?

      ALLOWESCAPE FALSE
      AUTOPAUSE TRUE

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

Minion

Yup. ive tried all combinations (I think). it either does nothing or returns to the desktop (of the phone).

Any chance of a simple piece of code showing how to do it ? Not to END but do something like play a sound etc when Back is hit ?

And yes, it is v2.3 (i used the full install just yesterday as the partial instal was not working)

spacefractal

if you not adding the gamecontroller code. What does it now? Its should do nothing. Then the basic thing works.

You need to add a Android.GameControllers("Update") after a SHOWSCREEN to update polling of the buttons (that include pause, menu etc). That even you not using gamecontroller input for other things than the back button.

You also need to do a Android.GameControllersSetLayout$() in the init area.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/