Error compile Android

Previous topic - Next topic

Kyo

Thank for great job  :nw:

But you can use them at the same time only 4 audio files (with TSound)?

spacefractal

load them to the samme buffer. Im have not tested tSound, which was not created by me, but FiveSprites. Its more if you want to play the same sounds more than one me guess.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

Oh. How would I set the java path for the current dir?

Sent from my GT-N7100 using Tapatalk


Ian Price

#18
I've finally had time to try compiling for OUYA and I've had some success. Well "success" is perhaps a bit strong, as my app compiles and runs on OUYA, but is lacking all the media, so I'm left with a basic text message on the screen that should be hidden by graphics). :(

The media seems to be in the .APK due to its size (4.1MB) and the .APK works as expected in BlueStacks. So any ideas as to what I might be doing/have done wrong? I'm using GLB 11.559 and (I think) 1.52 of the Android Extras kit. Thinking about it, it's probably a media path thing. I use "SETCURRENTDIR ("Media") - I'm guessing that this doesn't work properly on OUYA?

Even though the game isn't working, getting the text message displaying on the screen was pretty exciting. :)
I came. I saw. I played.

MrTAToad

I would use direct access rather than use SETCURRENTDIR, just in case...

Ian Price

QuoteI would use direct access rather than use SETCURRENTDIR, just in case...

I have considered doing that, but I only had 20 minutes to "play" yesterday, so didn't have chance. I only asked because it worked fine in BlueStacks. Obviously the OUYA is a different beast (not that I am in anyway knowledgable of anything Android-wise!).

I'm sure it will be sorted fairly easily when I get some proper time.
I came. I saw. I played.

Wampus

Ian I wonder if putting all the media in a shoebox might a quick-ish way to get up and running.

Ian Price

QuoteIan I wonder if putting all the media in a shoebox might a quick-ish way to get up and running.

My media WAS originally in a shoebox (works on normal Android - not on OUYA), so I removed the shoebox and just used media (works on Android, not on OUYA). When I get chance I shall remove the SETCURRENTDIR and try it with just the media and see.
I came. I saw. I played.

spacefractal

#23
in the newest android extras also, im uses my own asset copy version instead that one used by Glbasic. In that version, you need to checkout any files by your self, before doing any LOAD commands etc. That why no of your medias worked.

If you want to do a quick test using the GlBasic copy assest system, just change manualCopyAssest to manualCopyAssest=1 in SDLActivity.java in line around 245.^

Im did that because im have never liked the assest copy function used by internal, which was painfully slow and could crash very easy (if closed down while copying while installing, which could mean its crashed constanly, until deleted the data. Not very good when that happens.

PS. the function im used is Check_Asset(assestfile$). Im have tried to explain that in the readme as well in the sample project.

PPS. Gernot, you need to send a java command to set the path, which is allways in the main attest dir, hence sounds never load.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

I've checked out your sample SpaceFractal and it does indeed work very well :) however I don't understand why you should actually need to check the assets before loading on OUYA - you don't on normal Android (or any other system I've ever worked on). How different is the version of Android on that compared to normal Android?

But anyway, your continuing and excellent work (and FiveSprites) is doing GLB proud. :)
I came. I saw. I played.

spacefractal

You dont need doing that, but it's havde prove against crashes on startup on both android and ouya and much much faster when update the app. You can still uses gernot system by change that line I'm wrote about, then it's will uses glbasic original system.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

QuoteYou can still uses gernot system by change that line I'm wrote about, then it's will uses glbasic original system.
Sorry, which line?


BTW I'm more than happy to use your system (seeing as I've tried several different things now without getting any images to load/display at all) :P

I'm just trying to get my head around the difference between GLBasic, the AndroidExtras and why my code worked on Android but not on OUYA. This is all completely new to me as you know and with limited time I've got to catch up fast! :S
I came. I saw. I played.

spacefractal

It's would works on both android and ouya, and it's much faster, so you don't see the asset copying on startup in each update.... similar should been done in glbasic really.

This also save a lots of value internal memory. That also why greedy mouse loads faster.

Howover it's manualCopyAssest variable in the file SDLActivity.java in around line 245.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

#28
I wasn't saying your system doesn't work on both systems - it does. And very well.

My AquaVenture game works perfectly on Android devices and in BlueStacks, but not on the OUYA (with normal GLBasic). So obviously something is different on OUYA. That's why I'm using your system :)

I've just built an .APK with help from the Android Extras Sample and still get no images being shown. And the screen is now rotated. LOL :/

[EDIT] D'oh I missed out the loadTextures call. Let's try again, shall we! :P

[EDIT II] And nope. Images are still not being displayed on OUYA (or BlueStacks now!). I'm going to have to cut everything back to basics methinks and start from scratch to see where I'm going wrong. Just need some time to do that :(
I came. I saw. I played.

Marmor

Hi ian

Ive got the same "error"