[tool] LoveToAndroid - .love to .apk without thinking

Showcase your libraries, tools and other projects that help your fellow love users.
Sisi
Prole
Posts: 3
Joined: Wed Jun 22, 2016 3:08 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Sisi »

Thanks for your work! Is it possible to make it fully compatible with 0.10? Actually i have libraries using function setStencil for example, and it doesnt work
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by qubodup »

Hi,

https://love2d.org/wiki/love.graphics.setStencil says "Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0".

Changes compared to love for desktop are hopefully all listed on https://bitbucket.org/MartinFelis/love- ... /wiki/Home
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Sisi
Prole
Posts: 3
Joined: Wed Jun 22, 2016 3:08 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Sisi »

Woops my bad, I was talking about "stencil" and "setStencilTest", not "setStencil"
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by qubodup »

If there is a problem, you might want to search and - if not covered yet - report it on viewforum.php?f=4 or https://bitbucket.org/MartinFelis/love- ... tatus=open with a quote of the error message. I just compiled and packaged love android but I don't know much about its development and availability of non-basic functions. Good luck!
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
dj--alex@ya.ru
Prole
Posts: 23
Joined: Sat Jun 17, 2017 1:23 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by dj--alex@ya.ru »

Hello qubodup , are you here? it's great program! really
Exist version for Love 0.11? i leave 5 stars for you on itch. good service ,and i try donate (im from another country)

in home i create man and use signed app - there
viewtopic.php?f=4&t=85554&p=222346#p222346

but i in vacation with fresh clean notebook.

I thinking is not working debug key - is the real problem.

Code: Select all

alex@NOUT:~/Programs/StartGamedev$ keytool -keygen -v -keystore debug.keystore -alias androiddebugkey -storepass android
insufficient option:  -keygen    
SOLUTION!!!!!!!! FOR CRAPPY JAVA KEYGEN!!!

Code: Select all

 keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"
 
On page 2 solution wont help
========================
how looks error without keygen::: Keywords ::: Unable to get debug signature key

Code: Select all

lex@NOUT:~/Programs/StartGamedev$ sh make-apk.sh 
i get error
cp: не удалось выполнить stat для 'bin/love_android_sdl2-debug.apk': Нет такого файла или каталога
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating love_android_sdl2-debug-unaligned.apk and signing it with a debug key...
[apkbuilder] Exception in thread "main" java.lang.ExceptionInInitializerError
[apkbuilder] Caused by: java.lang.RuntimeException: could not locate data
[apkbuilder] 	at sun.text.normalizer.NormalizerImpl.<clinit>(NormalizerImpl.java:60)
[apkbuilder] 	... 8 more

BUILD FAILED
/home/alex/Programs/StartGamedev/tools/android-linux/tools/ant/build.xml:969: The following error occurred while executing this line:
/home/alex/Programs/StartGamedev/tools/android-linux/tools/ant/build.xml:312: com.android.sdklib.build.ApkCreationException: Unable to get debug signature key
	at com.android.sdklib.build.ApkBuilder.getDebugKey(ApkBuilder.java:27
Funlife2003
Prole
Posts: 10
Joined: Mon Jul 06, 2020 10:47 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Funlife2003 »

does it work on 0.11 ? thanks for making this tho.
Funlife2003
Prole
Posts: 10
Joined: Mon Jul 06, 2020 10:47 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Funlife2003 »

for some reason a error pops up in the line k:read("*all"). this only occurs in the apk and not in the love file. please help.
zingo
Citizen
Posts: 55
Joined: Mon Jan 16, 2023 7:34 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by zingo »

Sorry to "necropost", but this would be extremely useful if updated for the newest version of Love2d (11.4 at the moment). It's also fun to code/test games directly on an android, so if at all possible, an app would be awesome as well. Apologies again for digging this old thread up, but I wasn't able to find any similar "automated" tools...at least, none that were up to date.
User avatar
GVovkiv
Party member
Posts: 685
Joined: Fri Jan 15, 2021 7:29 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by GVovkiv »

zingo wrote: Fri Jan 20, 2023 10:54 am Sorry to "necropost", but this would be extremely useful if updated for the newest version of Love2d (11.4 at the moment). It's also fun to code/test games directly on an android, so if at all possible, an app would be awesome as well. Apologies again for digging this old thread up, but I wasn't able to find any similar "automated" tools...at least, none that were up to date.
Considering that author was last online in 2017... that's highly unlikely to happen, sadly
zingo
Citizen
Posts: 55
Joined: Mon Jan 16, 2023 7:34 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by zingo »

This much is true, but figured it was worth a shot. May just stick to exporting to linux appimage, windows executable, or web, as those platforms seem more readily supported and/or common...actually, come to think of it, I haven't run across any Love2d games in .apk format...yet (or I just haven't been looking in the right place). At any rate, it may be a while before I have a finished project. Thank you for taking the time to respond anyhow, and I hope OP is doing well, wherever they may be...
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Semrush [Bot] and 2 guests