[OLD-1] AGS engine Android port

Started by JJS, Thu 03/11/2011 20:18:29

Previous topic - Next topic

eri0o

Out of curiosity, what does "config_enabled = 0", in your android.cfg, means?

Crimson Wizard

#861
Quote from: eri0o on Fri 09/11/2018 16:05:47
Out of curiosity, what does "config_enabled = 0", in your android.cfg, means?

Hm. It means that the contents of the config will be ignored, except for translation. I have no idea why such option is there. The Android library code may hold an answer.

The creature

That's pretty incredible, setting that flag to 1 fixed the issue! I'd have never seen that I'd it hadn't been pointed out. Thankyou all so, so much!!

It's looking incredible now 😊

Crimson Wizard

@The creature, could you experiment a little more and find out which location exactly does it read the config from?

Now what remains is to find out why do we need this flag at all, and how it is normally set/removed...

The creature

Sure, I'll do some more tests and see where the config files need to exactly be.

Cheers.

The creature

OK.

In my obb root I just have:
GAME.EXE
acsetup.cfg
android.cfg

With the config_enabled set to '1' it seems to use the settings defined by me. So I have no other directories in my obb. This couldn't have been possible without any of your help and especially your patience - especially Enrico and his original 'Let's Build an android release' post. This was amazing. I found I did have to rebuild the ags libs as there seemed to be an issue with them, but once that was done things started working fine. For those looking at doing this, you will need to sign up over on the google play console and pay the fee to set up a new app pretty early on.

I dont think you can get very far without having an RSA_public_key. This is a "license key" which can be found in the google Play Console under Development tools -> Services & API, a Base64-encoded RSA public key that you must copy and paste into the RSA public key in 'private.xml'

But it all seems to be working. Good timing really as I'm flying away next week to a funeral :(

I've never released anything to mobile, so it will be an interesting test for sure. Thank you again, if you need any more help though, I'll see what I can do.
C

arabow

Has anyone figured out a way to open a keyboard on Amazon Fire HD 10 (or any Android device for that matter)? It is impossible to play Sierra style adventure games without being able to use the save function. Why is it not possible to put a small button on the upper left corner of the screen (as in ScummVM) that when pressed opens a keyboard? :undecided:                

Crimson Wizard

There is no one around who would know how to program for Android and be willing to help.

Right now I am very busy with something, after that is complete I will buy a real Android device because emulator works a little different, and see if I am able to fix anything here.

JanetC

Is the AGS Android port used in any commercial games?


arabow

If anyone's interested, I've found a workaround. Install an app called "Hacker's Keyboard" and pin it to the notification area (from the app settings). Then just swipe down the notification area and open the keyboard whenever you need it.

Crimson Wizard

#871
I finally was able to actually look and test buttons on real Android device (yep, I now have one...).

Here's an APK built for AGS 3.5.0 with the change to device buttons as suggested by user:
https://www.dropbox.com/s/hq3a5ibzhos4x48/AGS-3.5.0-menu-on-backbtn.apk?dl=0

Here long press on "Back" button no longer displays exit confirmation, but instead displays in-game menu, which also has an option to display on-screen keyboard.

Since I now have real device it became more obvious to me why all this was necessary, and which problems Android users face. It's really a shame and pity that this issue was not addressed earlier.

The change will probably be included into upcoming version, as well as one extra 3.4.1 patch I was preparing.

Mehrdad

Great!!. Nice job CW!
I wish you can or others integrate Android port to AGS. It's the only reason that I don't make a game with AGS till now. In our country, (Iran) we haven't a desktop ports market. Only mobile.
My official site: http://www.pershaland.com/

Crimson Wizard

#873
Updated APK with different way to handle longclicks on "Back" and "Menu" buttons (the old way was not compatible with some newer devices it seems):
https://www.dropbox.com/s/rq5ys1iqg9m1dt5/AGS-3.5.0-buttonstest7.apk?dl=0

Quote from: Mehrdad on Sun 27/01/2019 05:22:38
I wish you can or others integrate Android port to AGS.

Sorry, I wish I could, but I cannot give any promises now. Definitely I won't be able to do that before final AGS 3.5.0 version is out because all my free time is taken.

UPDATE
By the way, here's an example that AGS game can make it to Google Play for Android (made by eri0o): 
https://play.google.com/store/apps/details?id=com.vacaroxa.hellspuppy

Like said before, it's all possible, just may require some manual work with Android Studio.

Mehrdad

Quote from: Crimson Wizard on Sun 27/01/2019 19:55:53

Sorry, I wish I could, but I cannot give any promises now. Definitely I won't be able to do that before final AGS 3.5.0 version is out because all my free time is taken.


OK. So there are some hopes for strat Android port after the stable version of AGS 3.5.0


Quote from: Crimson Wizard on Sun 27/01/2019 19:55:53
UPDATE
By the way, here's an example that AGS game can make it to Google Play for Android (made by eri0o): 
https://play.google.com/store/apps/details?id=com.vacaroxa.hellspuppy

Like said before, it's all possible, just may require some manual work with Android Studio.

Cool game!. Actually I'll contact with EriOo about it
My official site: http://www.pershaland.com/

eri0o


Mehrdad

Quote from: eri0o on Thu 31/01/2019 00:12:32
@Mehrdad I added the Android Studio Project here!

Awesome!!. Thanks a lot, @eriOo. Your guides are great and amazing. Please let me try and there was any question let you know.
My official site: http://www.pershaland.com/

Mehrdad

#877
@eriOo
Great!!!!. It works perfectly for me. Thanks a lot. I made an apk for "Black morph" game.

The image is fictitious

I'm waiting for your video tutorials. I hope for fix sound noise too.
My official site: http://www.pershaland.com/

Mike2000

Hi, I'm new to these forums, and I'm not sure if this is the right spot to post this, but I'm having a technical difficulty on AGS for Android on both my Android Phone and my Kindle Fire Tablet. Basically, when I attempt to run any AGS game from my SD Card, I get the following message:

QuoteError

Unable to write in the savegame directory
Make sure you have write permissions, and also check the disk's free space.

I checked the app's permissions in app settings, and AGS is approved for everything it asks for. Also, there are gigabytes of extra space on my SD cards, so I don't think that the error message is being very helpful. The games still work when loaded from internal memory, but I'm running low on internal storage so it would be useful to load games from my SD card. Is there anything I can or should do?

eri0o

Out of curiosity, from where did you install an AGS app?

SMF spam blocked by CleanTalk