Author Topic: AGS engine Android port  (Read 55528 times)  Share 

JJS

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2012, for his efforts in porting AGS to multiple platforms
    •  
AGS engine Android port
« on: 03 Nov 2011, 20:18 »
Here is the initial version of an engine port to Android. It is based on the PSP port, so it also shares some features:

- Support for AGS data files version 2.50 - 3.21
- Plugin support including AGSBlend and open-source recreations of the Snow/Rain and Flashlight plugin
- All color depths and screen resolutions

The mouse cursor is moved by dragging, a left click is done by a quick touch and a right click by touching with two fingers. You can bring up the software keyboard with the MENU button.

I chose the namespace as "com.bigbluecup.android". The reason was that I want to avoid the situation of the ScummVm project, where another private namespace was initially used and is still kept to avoid breaking updates through the market. Still, this is open to discussion. For now, the application is also not on the market (would be too early in development anyway).

Games must be placed on the SD card root in the "ags" directory. Each game needs its own subdirectory (like in the PSP port). The data file is automatically detected within the folder.

Native libraries are included for all Android platforms (armeabi, armeabi-v7, x86).

I am no expert in Android development so I would appreciate any feedback.  :=


Download of the package here: http://jjs.at/daily/ http://jjs.at/temp/AGS_3.apk http://jjs.at/temp/AGS.apk http://jjs.at/temp/AGS_2.apk
Source here: https://github.com/adventuregamestudio


:= UPDATE :=

If you want to stay on top of the newest developments, you can get intermediate binaries from my daily build site:
http://jjs.at/daily/

I will put an updated version there whenever I make changes to the source.

Also there is a bug tracker here:
http://jjs.at/tracker/ Please use the bug tracker on this forum instead.

For usage instructions see here:
https://github.com/adventuregamestudio/ags/blob/master/Android/README.md

Please also post feature requests and bugs there.
« Last Edit: 08 Jan 2013, 08:13 by JJS »
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

magintz

  • Mittens Knight
  • Just because I rock doesn't mean I'm made of stone
    • I can help with story design
    •  
    • I can help with web design
    •  
Re: AGS engine Android port
« Reply #1 on: 03 Nov 2011, 20:36 »
Where can I find the 'like' button...

oh here it is  :=
When I was a little kid we had a sand box. It was a quicksand box. I was an only child... eventually.

Dualnames

  • AGS Baker
  • Badass
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: AGS engine Android port
« Reply #2 on: 03 Nov 2011, 20:44 »
Despite i find this ultra-amazing, my android phone doesn't. Xperia 10 mini.
No more military army stuff. I'm alive and back.

Calin Leafshade

  • AGS Project Tracker Admins
  • Long live King Cat!
    • I can help with AGS tutoring
    •  
    • I can help with voice acting
    •  
  • Calin Leafshade worked on a game that was nominated for an AGS Award!Calin Leafshade worked on a game that won an AGS Award!
Re: AGS engine Android port
« Reply #3 on: 03 Nov 2011, 20:51 »
magic, will report back.

I have a new HTC sensation tho so i wont be much use for performance testing

JJS

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2012, for his efforts in porting AGS to multiple platforms
    •  
Re: AGS engine Android port
« Reply #4 on: 03 Nov 2011, 21:03 »
Despite i find this ultra-amazing, my android phone doesn't. Xperia 10 mini.
Hmm, so what happens? Does it not install or not run?

Maybe I should add that for non-market apps to work, you have toggle some setting in the system options (allow installation from "unknown sources").

The minimum Android version this runs on is 1.6 and I have only run it on my T-Mobile G1 (HTC Dream) which is probably a very low performance device nowadays. Overall games run way worse on it than on the PSP which is mostly due to lack of an FPU I guess.
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

Dualnames

  • AGS Baker
  • Badass
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: AGS engine Android port
« Reply #5 on: 03 Nov 2011, 21:15 »
Despite i find this ultra-amazing, my android phone doesn't. Xperia 10 mini.
Hmm, so what happens? Does it not install or not run?

Maybe I should add that for non-market apps to work, you have toggle some setting in the system options (allow installation from "unknown sources").

The minimum Android version this runs on is 1.6 and I have only run it on my T-Mobile G1 (HTC Dream) which is probably a very low performance device nowadays. Overall games run way worse on it than on the PSP which is mostly due to lack of an FPU I guess.

It installs, and when i run a game (the application seems to run okay), it freezes with a white screen. If you have some sort of test game, to make sure it's something else, I'd be happy to try it out.
No more military army stuff. I'm alive and back.

icey games

  • Official Nintendo Dev, Square Enix affiliate next
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: AGS engine Android port
« Reply #6 on: 03 Nov 2011, 21:19 »
yes! I hope this works on my phone.

Calin Leafshade

  • AGS Project Tracker Admins
  • Long live King Cat!
    • I can help with AGS tutoring
    •  
    • I can help with voice acting
    •  
  • Calin Leafshade worked on a game that was nominated for an AGS Award!Calin Leafshade worked on a game that won an AGS Award!
Re: AGS engine Android port
« Reply #7 on: 03 Nov 2011, 21:26 »
I have the same problem as duals.

The music does play tho, albeit in a distorted, stuttering kind of way.

JJS

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2012, for his efforts in porting AGS to multiple platforms
    •  
Re: AGS engine Android port
« Reply #8 on: 03 Nov 2011, 21:34 »
I see. The white screen could be a problem with creating the screen texture (drawing is done via OpenGL). Does the white area fill the whole screen or does it change size when turning the phone?

e: Maybe not relevant because this might be a more fundamental problem, but basically all games I tried run on my phone. This includes e.g. all Ben Jordan titles.
« Last Edit: 03 Nov 2011, 21:38 by JJS »
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

Dualnames

  • AGS Baker
  • Badass
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: AGS engine Android port
« Reply #9 on: 03 Nov 2011, 21:38 »
I was able to rotate. It's not like the application freezes.
No more military army stuff. I'm alive and back.

Calin Leafshade

  • AGS Project Tracker Admins
  • Long live King Cat!
    • I can help with AGS tutoring
    •  
    • I can help with voice acting
    •  
  • Calin Leafshade worked on a game that was nominated for an AGS Award!Calin Leafshade worked on a game that won an AGS Award!
Re: AGS engine Android port
« Reply #10 on: 03 Nov 2011, 21:44 »
yes, ditto. The white texture resizes on rotate and the app doesnt crash

icey games

  • Official Nintendo Dev, Square Enix affiliate next
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: AGS engine Android port
« Reply #11 on: 03 Nov 2011, 21:45 »
My game doesn't load for some reason. I get a script error about some import called menu? Then when i try to quit I end up having to force close. btw I got a Sidekick 4g

JJS

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2012, for his efforts in porting AGS to multiple platforms
    •  
Re: AGS engine Android port
« Reply #12 on: 03 Nov 2011, 22:09 »
Ok, thanks. I have a lead, obviously something rotten is going on with garbage collection and the sound buffer. I only get errors in the emulator though and not on my phone  ???. Will investigate this further, sorry for the trouble.

Edit: Is this any better? http://jjs.at/temp/AGS_1.apk
« Last Edit: 03 Nov 2011, 22:30 by JJS »
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

Dualnames

  • AGS Baker
  • Badass
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: AGS engine Android port
« Reply #13 on: 03 Nov 2011, 22:29 »
Ok, thanks. I have a lead, obviously something rotten is going on with garbage collection and the sound buffer. I only get errors in the emulator though and not on my phone  ???. Will investigate this further, sorry for the trouble.

No trouble at all.
No more military army stuff. I'm alive and back.

Calin Leafshade

  • AGS Project Tracker Admins
  • Long live King Cat!
    • I can help with AGS tutoring
    •  
    • I can help with voice acting
    •  
  • Calin Leafshade worked on a game that was nominated for an AGS Award!Calin Leafshade worked on a game that won an AGS Award!
Re: AGS engine Android port
« Reply #14 on: 03 Nov 2011, 22:53 »

Calin Leafshade

  • AGS Project Tracker Admins
  • Long live King Cat!
    • I can help with AGS tutoring
    •  
    • I can help with voice acting
    •  
  • Calin Leafshade worked on a game that was nominated for an AGS Award!Calin Leafshade worked on a game that won an AGS Award!
Re: AGS engine Android port
« Reply #15 on: 03 Nov 2011, 23:13 »
Ok, it works on my hero but not on my sensation but the mouse movement doesnt work very well. The track ball seems to move the mouse a tiny bit and click the left button every time you move it.

dragging the mouse doesnt work at all.

Re: AGS engine Android port
« Reply #16 on: 04 Nov 2011, 02:32 »
I get the white screen on my Galaxy Tab 10.1 and Galaxy S.
Space Quest: Vohaul Strikes Back is now available to download!

Iceboty V7000a

  • * KILL* * KILL * * KILL *
    • Lifetime Achievement Award Winner
    •  
Re: AGS engine Android port
« Reply #17 on: 04 Nov 2011, 02:56 »
Yeah, I've tried 5 Days a Stranger on my Galaxy S2 and the same thing happened.

Also, my test game, which was compiled with V2.6SP1, didn't show up. Is it because my game is 8-bit and the engine does not support 8-bit modes?

I actually tried the PSP version some time earlier out of curiosity and it also didn't recognise my game, but since I just tested it with an emulator (I don't own a PSP, and never will) this cannot be any indication.

EDIT: I just put another 8-bit test game compiled with V3.21 and it was recognised (also white screen though), so it shouldn't be a colour depth. Maybe it has difficulties recognising V2.6SP1 games.
« Last Edit: 04 Nov 2011, 03:32 by Iceboty V7000a »

R4L

  • You need me Rick...
Re: AGS engine Android port
« Reply #18 on: 04 Nov 2011, 03:36 »
Same white screen results. On rooted LG Optimus V. Could be because my device is only clocked at 760 MHz, and that's overclocked. :P

abstauber

  • Mittens Knight
  • Order of the Maggot
  • quite remarkable
  • abstauber worked on a game that was nominated for an AGS Award!abstauber worked on a game that won an AGS Award!
Re: AGS engine Android port
« Reply #19 on: 04 Nov 2011, 07:03 »
First of all: have they finally released an Android port of Allegro? This is too good to be true ;)

Unfortunately I'm also stuck with that white screen. (Moto Defy on Cyanogen7 Android 2.3.5)