love-java-android/love-native-android: project information

A project to port LÖVE to Android handhelds
dudeabot
Prole
Posts: 17
Joined: Tue Nov 13, 2012 2:28 am

Re: love-java-android/love-native-android: project informati

Post by dudeabot » Thu Nov 15, 2012 3:50 pm

looks like exit cleanup issues for me ( for me it happens on the second launch -> usualy means a pointer was deleted on destruction last time and something calls it, or, the pointer is not deleted and is recreated, or even attempts to delete an already invalid pointer)

here is the printed stack code:

Code: Select all

I/DEBUG   (25333): Build fingerprint: 'samsung/GT-I9100/GT-I9100:2.3.6/GINGERBREAD/UHLB2:user/releas
e-keys'
I/DEBUG   (25333): pid: 28397, tid: 28455  >>> net.schattenkind.nativelove <<<
I/DEBUG   (25333): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000008
I/DEBUG   (25333):  r0 0017ed60  r1 afd46648  r2 00000007  r3 00000000
I/DEBUG   (25333):  r4 00184f00  r5 00000000  r6 46b795b8  r7 00000000
I/DEBUG   (25333):  r8 000000d0  r9 00040100  10 00000001  fp 00000000
I/DEBUG   (25333):  ip afd464b4  sp 46b795a8  lr afd1127c  pc 8228ccb0  cpsr 00000030
I/DEBUG   (25333):  d0  00000000000001e0  d1  0000000042c80000
I/DEBUG   (25333):  d2  00000000477fff00  d3  43c7000000000000
I/DEBUG   (25333):  d4  3e4ccccd00000000  d5  3f8000003f800000
I/DEBUG   (25333):  d6  000003203f800000  d7  0000000144480000
I/DEBUG   (25333):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   (25333):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   (25333):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   (25333):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   (25333):  d16 3ff0000000000000  d17 3ff0000000000000
I/DEBUG   (25333):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   (25333):  d20 3ff0000000000000  d21 8000000000000000
I/DEBUG   (25333):  d22 0000000000000000  d23 bda8fae9be8838d4
I/DEBUG   (25333):  d24 3fc74721cad6b0ed  d25 3fc39a09d078c69f
I/DEBUG   (25333):  d26 0000000000000000  d27 0000000000000000
I/DEBUG   (25333):  d28 0000000000000000  d29 3ff0000000000000
I/DEBUG   (25333):  d30 0000000000000000  d31 3ff0000000000000
I/DEBUG   (25333):  scr 60000010
I/DEBUG   (25333):
I/DEBUG   (25333):          #00  pc 0008ccb0  /data/data/net.schattenkind.nativelove/lib/liblove.so
I/DEBUG   (25333):          #01  lr afd1127c  /system/lib/libc.so
I/DEBUG   (25333):
I/DEBUG   (25333): code around pc:
I/DEBUG   (25333): 8228cc90 fe14f7ff 1c202110 ec98f7a9 73032301
I/DEBUG   (25333): 8228cca0 60836833 600368b3 604368f3 68036830
I/DEBUG   (25333): 8228ccb0 4798689b 1c201c01 ea36f7a9 1c202101
I/DEBUG   (25333): 8228ccc0 f7a94249 4a26ec30 1c202102 4249447a
I/DEBUG   (25333): 8228ccd0 ed18f7a9 1c204923 44792200 ef40f7a9
I/DEBUG   (25333):
I/DEBUG   (25333): code around lr:
I/DEBUG   (25333): afd1125c 08bd87f0 e5964000 e5967000 e2144903
I/DEBUG   (25333): afd1126c 1a00000f f57ff05f e5965000 ebffed2f
I/DEBUG   (25333): afd1127c e2055a02 e3853001 e1500003 0a000006
I/DEBUG   (25333): afd1128c e5865000 e1a00006 e1a01005 e3a02001
I/DEBUG   (25333): afd1129c ebfffea3 e1a00004 e8bd87f0 e3a00000
I/DEBUG   (25333):
I/DEBUG   (25333): stack:
I/DEBUG   (25333):     46b79568  00184f78
I/DEBUG   (25333):     46b7956c  82110c59  /data/data/net.schattenkind.nativelove/lib/liblua.so
I/DEBUG   (25333):     46b79570  000000d0
I/DEBUG   (25333):     46b79574  00184f00
I/DEBUG   (25333):     46b79578  00000010
I/DEBUG   (25333):     46b7957c  00185420
I/DEBUG   (25333):     46b79580  00000000
I/DEBUG   (25333):     46b79584  821123d5  /data/data/net.schattenkind.nativelove/lib/liblua.so
I/DEBUG   (25333):     46b79588  00184f00
I/DEBUG   (25333):     46b7958c  00000010
I/DEBUG   (25333):     46b79590  46b795b8
I/DEBUG   (25333):     46b79594  8211037f  /data/data/net.schattenkind.nativelove/lib/liblua.so
I/DEBUG   (25333):     46b79598  00184f00
I/DEBUG   (25333):     46b7959c  00000000
I/DEBUG   (25333):     46b795a0  df002777
I/DEBUG   (25333):     46b795a4  e3a070ad
I/DEBUG   (25333): #00 46b795a8  00184f00
I/DEBUG   (25333):     46b795ac  00000000
I/DEBUG   (25333):     46b795b0  00000000
I/DEBUG   (25333):     46b795b4  82248e91  /data/data/net.schattenkind.nativelove/lib/liblove.so
I/DEBUG   (25333):     46b795b8  0017ed60
I/DEBUG   (25333):     46b795bc  822df748  /data/data/net.schattenkind.nativelove/lib/liblove.so
I/DEBUG   (25333):     46b795c0  0000000a
I/DEBUG   (25333):     46b795c4  00000020
I/DEBUG   (25333):     46b795c8  82326a30
I/DEBUG   (25333):     46b795cc  82326ad8
I/DEBUG   (25333):     46b795d0  46b79620
I/DEBUG   (25333):     46b795d4  00184f00
I/DEBUG   (25333):     46b795d8  00000000
I/DEBUG   (25333):     46b795dc  00000000
I/DEBUG   (25333):     46b795e0  00000000
I/DEBUG   (25333):     46b795e4  821069e5  /data/data/net.schattenkind.nativelove/lib/liblua.so
I/DEBUG   (25333):     46b795e8  001851d8
I/DEBUG   (25333):     46b795ec  82104df3  /data/data/net.schattenkind.nativelove/lib/liblua.so
I/BootReceiver( 2707): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
I/DEBUG   (25333): dumpstate /data/log/dumpstate_app_native.txt

User avatar
Petunien
Party member
Posts: 191
Joined: Fri Feb 03, 2012 8:02 pm
Location: South Tyrol (Italy)

Re: love-java-android/love-native-android: project informati

Post by Petunien » Mon Nov 19, 2012 8:33 pm

Has something changed regarding to love.filesystem? It's available now? Are there any workarounds without using online services?

I need a highscore-file. :)
"Docendo discimus" - Lucius Annaeus Seneca

Moe
Party member
Posts: 115
Joined: Thu Dec 22, 2011 10:20 pm

Re: love-java-android/love-native-android: project informati

Post by Moe » Tue Nov 27, 2012 8:20 pm

Sorry for the delay in answering. I ended up in finishing my first game that made it into the Android market.

At the moment, we do not have a possibility to store files. We are looking into this issue, but it needs more effort than we expected. I want to continue by moving on to 0.8.0 and then adding all missing features and add some more Android specific stuff.

User avatar
miko
Party member
Posts: 409
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: love-java-android/love-native-android: project informati

Post by miko » Tue Nov 27, 2012 9:45 pm

Moe wrote:Sorry for the delay in answering. I ended up in finishing my first game that made it into the Android market.
Is that love-native-android based? Anyways, congratulations!
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples

Moe
Party member
Posts: 115
Joined: Thu Dec 22, 2011 10:20 pm

Re: love-java-android/love-native-android: project informati

Post by Moe » Wed Nov 28, 2012 7:08 pm

miko wrote:
Moe wrote:Sorry for the delay in answering. I ended up in finishing my first game that made it into the Android market.
Is that love-native-android based? Anyways, congratulations!
Thanks, but no it's not Love, it's pure Java. I was curious if Java is fast enough to create a game :)

dudeabot
Prole
Posts: 17
Joined: Tue Nov 13, 2012 2:28 am

Re: love-java-android/love-native-android: project informati

Post by dudeabot » Wed Dec 05, 2012 12:38 pm

Petunien wrote:Has something changed regarding to love.filesystem? It's available now? Are there any workarounds without using online services?

I need a highscore-file. :)

just found this:

http://www.brokenteapotstudios.com/andr ... droid.html

looks simple, you send the byte[] data through C to JAVA, JAVA knows where to save stuff, done :D

Code: Select all

    
    std:;string test = "hello";

    jbyteArray array = env->NewByteArray(test.size());
    env->SetByteArrayRegion(array, 0, test.size(), (jbyte*)test.data());
for a string example

User avatar
tavuntu
Citizen
Posts: 65
Joined: Mon Dec 24, 2012 6:56 am
Contact:

Re: love-android: project information

Post by tavuntu » Tue Apr 16, 2013 2:26 am

Jasoco wrote:I really want to test this on my bottom of the line Android phone. Is there a sample project I can try rather than this one which might be a bit too much? Time to do some research.

Edit: Okay.. well it's running. But it won't recognize the sample project I put in the folder it expects:

Code: Select all

function love.load()
  x = 0
end

function love.update()
  x = x + dt * 100
  if x > 300 then x = 0 end
end

function love.draw()
  love.graphics.circle("fill", x, 100, 30)
end
I'm not sure what I'm doing wrong. I get the blue screen with the logo and the titlebar but I can't load any projects?
You're not using the dt variable as a parameter in love.update() it must be love.update(dt).
Sorry for the bad english.

User avatar
Sheepolution
Party member
Posts: 253
Joined: Mon Mar 04, 2013 9:31 am
Location: The Netherlands
Contact:

Re: love-java-android/love-native-android: project informati

Post by Sheepolution » Thu May 23, 2013 8:20 pm

So I think I did everything correctly. Still, it says it can't find my game. I place my game.love in to both downloads/cache/ and sd/love/ folders. But nothing is happening when I try to run it. Anything I could be doing wrong?

User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-java-android/love-native-android: project informati

Post by T-Bone » Fri May 24, 2013 5:31 am

Sheepolution wrote:So I think I did everything correctly. Still, it says it can't find my game. I place my game.love in to both downloads/cache/ and sd/love/ folders. But nothing is happening when I try to run it. Anything I could be doing wrong?
Do you mind posting your .love? There are several unimplemented functions that simply crash when you try to run them.

User avatar
Sheepolution
Party member
Posts: 253
Joined: Mon Mar 04, 2013 9:31 am
Location: The Netherlands
Contact:

Re: love-java-android/love-native-android: project informati

Post by Sheepolution » Fri May 24, 2013 8:47 am

Hmm.. my game doesn't use anything really advanced, so I thought it would be able to run it. I'm using my friend's android device, so I I'll have to wait for him to come online to try another game.
Attachments
PONG.love
(51.73 KiB) Downloaded 149 times

Locked

Who is online

Users browsing this forum: No registered users and 3 guests