love-android: discussion

A project to port LÖVE to Android handhelds
Locked
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android

Post by ghoulsblade »

Taehl wrote:Wow. I couldn't get the emulator to play sound even for demonstration apps.
i didn't have any trouble getting that to work, so not sure what the problem is, but below my config in case it helps you :
i used

Code: Select all

import android.media.SoundPool;
int miSoundID = audio.mSoundPool.load(filepath,0);
... audio.mSoundPool.play(miSoundID,fLeftVol,fRightVol,iPrio,iLoopMode,fRate);
for wav sounds, and since i couldn't get background music .mp3/.ogg to play in those, i used

Code: Select all

import android.media.MediaPlayer;
MediaPlayer mp = MediaPlayer.create(audio.vm.getActivity(), Uri.fromFile(audio.vm.getStorage().getFileFromSdCard(filename)) );
... if (mp != null) mp.start();
for those, in eclipse : android virtual device manager :
target : android 2.2 api level 8
sd card 512mb
skin: wvga854
hardware : gps, dpad, accellerometer, abs.lcd.dens=240, max vm app heap size 24, audio playback support yes, device ram 256 , cam no ,gpu emu no, touch screen yes, audio recording yes
i'm on ubuntu natty and it shows up as "qemu" in volume control, and is a bit quiet, so i have to turn volume up.
love-android - gamejams
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android

Post by ghoulsblade »

new try to upload a binary :
http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
this time i removed Log calls, and opened the manifest editor in the eclipse project, which had an option to
"Use the Export Wizard to export and sign an APK"
please try again =)

edit : android 2.1 test : http://ghoulsblade.schattenkind.net/lov ... id-a21.apk (adjusted some missing manifest things for this)
love-android - gamejams
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-android

Post by T-Bone »

ghoulsblade wrote:new try to upload a binary :
http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
this time i removed Log calls, and opened the manifest editor in the eclipse project, which had an option to
"Use the Export Wizard to export and sign an APK"
please try again =)

edit : android 2.1 test : http://ghoulsblade.schattenkind.net/lov ... id-a21.apk (adjusted some missing manifest things for this)
Still just crashes on startup.
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android

Post by ghoulsblade »

i re uploaded with a few manifest changes for 2.1 :
try downloading http://ghoulsblade.schattenkind.net/lov ... id-a21.apk
(even if you have android 2.2)
it seems it crashes if there are no love projects in /mnt/sdcard/love/ ,
so try unzipping the clouds demo to
/mnt/sdcard/love/clouds/

bartbes in irc just ran it successfully on his phone =D

i will try to fix the crash-if-empty soon, but first i need to figure out how i can delete stuff from sdcard on emu ^^
love-android - gamejams
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android

Post by ghoulsblade »

ok, crash fixed, now it'll should at least display an empty window if the /mnt/sdcard/love/ isn't there or is empty =)
http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
love-android - gamejams
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-android

Post by T-Bone »

Totally works, even with sound!
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: love-android

Post by TechnoCat »

I have no sound Disregard me, I suck xm. It works great with no.love

Samsung Galaxy S Captivate with Android 2.3.5.
logcat

also:
This happens when you leave the love activity and come back.
0JWxA.png
0JWxA.png (8.68 KiB) Viewed 576 times
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android

Post by ghoulsblade »

update : http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
it can play .love files without unpacking now, lists sdcard and downloads folder.
sound doesn't work from .love file yet, we might need help with someone very experience in android sdk here,
both MediaPlayer and SoundPool demand a file handle or filepath, they don't accept inputstream of buffered data from the zip.
i tried unpacking to temp files, but just got permission denied so far, maybe i need to specify a different folder for that =(
ah well, still nice progress.
love-android - gamejams
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android

Post by ghoulsblade »

update : http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
stubs for particlesystem and phyiscs, not visible, but should prevent crash in the majority of cases
love-android - gamejams
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-android

Post by T-Bone »

I really like the speed of development here! Keep up the good work!
Locked

Who is online

Users browsing this forum: No registered users and 1 guest