Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Joseph DiPerla on Wed 22/02/2012 20:00:38

Title: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Wed 22/02/2012 20:00:38
http://dl.dropbox.com/u/63498272/AGSStream.apk

OK, so I have started a new project for AGS. This is a marketplace for AGS on Android. Packaging Games into the AGS APK is a hassle if not impossible. So I started this project this way it can be a place for those interested in AGS to download games automatically. Also, since many have had trouble in knowing where to extract the game files (including myself), I have made this utility as a way to download the game for you and put the files where they need to be. All you have to do is run AGS and choose the game you want to play.

Now, keep in mind, this is a super Alpha version of the market( Hence version 0.0.1) and was only done in 20 minutes. In the next couple of weeks I will be prettying it up and adding more games to the list. Right now it only has Space Quest -1. Test it out.

Here is a roadmap of what I plan to have done:

Features of Version 0.1.0 (Will be released in the next two weeks:
*Scroll through a list of games to choose from
*Ability to download the latest version of AGS for Android and install it.
*Featured Games page.
*Ability to download and install games automatically.
*Ability to run AGS from within the app.
*The Game page features a description, images, creators, team, etc.. and other features for each game.
*Has the ability to tell you if a game has already been downloaded from the market.

Roadmap (Not Guaranteed):
Version 0.1.1 will have:
*A hopefully nicer UI
*The ability to rate games and add comments.
*Sort by Genre feature - Hopefully.

Version 0.1.2:
*Ability to uninstall a game.
*Ability to search for a game.

Future:
*Stability fixes
*Even Nicer UI
*Ability to sell commercial games.
*Ability for users to upload their own games to the market.
*Have more games listed in the market.

---------------------------------------------

For the time being, this app will not support commercial projects. Its too much of a hassle. However, if you have a commercial game and would like it on the Android Market for download, I will create a special package that will download AGS and the game for you and set it all up for you. I will also walk you through creating a developer account on the android market and teach you how to upload the game so that you can make cash. If you are interested in this, please PM me.

In the meantime, check out version 0.0.1 of the app and be kind in your criticism of it. We just had a baby a couple of months ago and all I could do is 20 minutes of work on it today. Enjoy. Here is the link again:

http://dl.dropbox.com/u/63498272/AGSStream.apk


---------------------------------------------

Version 0.0.2: 2/23/12
*Added the ability to automatically download and install AGS for Android.
http://dl.dropbox.com/u/63498272/AGSStream.apk

Version 0.0.3: 2/23/12
*Fixed a couple of bugs.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.2) New update already!
Post by: Joseph DiPerla on Thu 23/02/2012 06:10:54
New Minor version already released.

Version 0.0.2: 2/23/12
*Added the ability to automatically download and install AGS for Android.
http://dl.dropbox.com/u/63498272/AGSStream.apk
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.2) New update already!
Post by: JJS on Thu 23/02/2012 08:36:41
Cool stuff!

Some problems though:

- At first I had AGS already on the phone (which was detected by the app) and I downloaded Space Quest. But it showed the "Download complete" notification multiple times (3 times I think) before the download was actually finished and I could start the game. The game was then playable though.

- Then I uninstalled both AGS and AGS Stream and tried the "download AGS" option. The download started and the button immediately changed to "already installed". After some time this error occured (from logcat):
02-23 09:23:54.508: I/B4A(3007): ** Activity (main) Create, isFirst = true **
02-23 09:23:54.999: I/B4A(3007): ** Activity (main) Resume **
02-23 09:24:50.083: E/B4A(3007): main_response_streamfinish (java line: 462)
02-23 09:24:50.083: E/B4A(3007): android.content.ActivityNotFoundException: No Activity found to handle Intent
{ act=android.intent.action.VIEW dat=file:///mnt/sdcard/AGS_2012-02-14_10-05-58.apk typ=application/apk flg=0x20000 }
02-23 09:24:50.083: E/B4A(3007): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
02-23 09:24:50.083: E/B4A(3007): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
02-23 09:24:50.083: E/B4A(3007): at android.app.Activity.startActivityForResult(Activity.java:2827)
02-23 09:24:50.083: E/B4A(3007): at android.app.Activity.startActivity(Activity.java:2933)
02-23 09:24:50.083: E/B4A(3007): at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:665)
02-23 09:24:50.083: E/B4A(3007): at com.agsstream.diperla.main._response_streamfinish(main.java:462)
02-23 09:24:50.083: E/B4A(3007): at java.lang.reflect.Method.invokeNative(Native Method)
02-23 09:24:50.083: E/B4A(3007): at java.lang.reflect.Method.invoke(Method.java:507)
02-23 09:24:50.083: E/B4A(3007): at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
02-23 09:24:50.083: E/B4A(3007): at anywheresoftware.b4a.BA$1.run(BA.java:218)
02-23 09:24:50.083: E/B4A(3007): at android.os.Handler.handleCallback(Handler.java:587)
02-23 09:24:50.083: E/B4A(3007): at android.os.Handler.dispatchMessage(Handler.java:92)
02-23 09:24:50.083: E/B4A(3007): at android.os.Looper.loop(Looper.java:130)
02-23 09:24:50.083: E/B4A(3007): at android.app.ActivityThread.main(ActivityThread.java:3835)
02-23 09:24:50.083: E/B4A(3007): at java.lang.reflect.Method.invokeNative(Native Method)
02-23 09:24:50.083: E/B4A(3007): at java.lang.reflect.Method.invoke(Method.java:507)
02-23 09:24:50.083: E/B4A(3007): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
02-23 09:24:50.083: E/B4A(3007): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
02-23 09:24:50.083: E/B4A(3007): at dalvik.system.NativeStart.main(Native Method)
02-23 09:24:50.083: E/B4A(3007): android.content.ActivityNotFoundException: No Activity found to handle Intent
{ act=android.intent.action.VIEW dat=file:///mnt/sdcard/AGS_2012-02-14_10-05-58.apk typ=application/apk flg=0x20000 }
02-23 09:25:19.111: I/B4A(3007): ** Activity (main) Pause, UserClosed = false **
02-23 09:25:19.201: I/B4A(3007): ** Activity (main) Create, isFirst = false **
02-23 09:25:19.762: I/B4A(3007): ** Activity (main) Resume **
02-23 09:25:56.407: I/B4A(3007): ** Activity (main) Pause, UserClosed = true **
02-23 09:27:31.931: I/B4A(3059): ** Activity (main) Create, isFirst = true **
02-23 09:27:32.461: I/B4A(3059): ** Activity (main) Resume **
02-23 09:27:35.244: I/B4A(3059): ** Activity (main) Pause, UserClosed = true **

Now I cannot install AGS through the app anymore because the button says it is already installed while it is acutally not.


Edit: Added linebreaks to avoid breaking the forum layout.

Edit2: Maybe I should add, HTC Desire rooted with Android 2.3.7
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.2) New update already!
Post by: Joseph DiPerla on Thu 23/02/2012 11:55:32
Oh my... Thats quite the Log file. I will look into it. Thanks JJS.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Thu 23/02/2012 12:44:42
Ok Version 0.0.3 is uploaded now with the bugfixes (I hope). Try re-downloading the APK file and trying again.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: JJS on Thu 23/02/2012 13:02:56
Still the same error when trying to install the APK. But I did a bit of testing and this works for me:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/AGS_2012-02-14_10-05-58.apk")),
    "application/vnd.android.package-archive");
startActivity(intent);

It is based on information found here: http://stackoverflow.com/questions/4967669/android-install-apk-programmatically
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Thu 23/02/2012 13:19:33
I actually had that in there with one difference. Instead of:

application/vnd.android.package-archive

I had:

application/vnd.android.packagearchive

Give it a shot. I uploaded the new package. It should work this time, I hope.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: JJS on Thu 23/02/2012 13:30:38
Quote from: Joseph DiPerla on Thu 23/02/2012 13:19:33It should work this time, I hope.
It does :)

edit:
I don't know how much I should criticize, but if you cancel the installation the app still thinks it is installed till it gets restarted. Also the button doesn't change from "Downloading" to "Downloaded. Click to install" automatically, but also only on restarting the activity. Turning the phone, lets the button text change to the "Downloaded. Click to install" one too but clicking it brings up an error about an invalid APK (obviously since the download is not yet finished).
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Thu 23/02/2012 13:34:09
Haha! Now I can move on to adding some new games and features. Thanks for the input JJS.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Sat 25/02/2012 17:50:17
Very thorough testing JJS. Let me look into it. If worse case scenario, I will just remove orientation switching.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: WHAM on Sat 25/02/2012 20:10:29
Game added, let's hope it works.
EDIT: Also: wrong thread  ;D
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Sat 25/02/2012 20:31:40
Awesome! Version 0.0.4 will have the new database loaded automatically from that point forward.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Haggis on Sat 07/04/2012 20:30:56
This is fantastical!!!
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: deltamatrix on Sun 08/04/2012 01:15:56
Shame no iphone support. Tis all I got lumbered with. :(
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: DazJ on Sat 14/04/2012 13:48:53
Is there no way to create standalone APKs of AGS games that will perhaps combine the engine itself so people can download and just run your game like a normal app/game?
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: R4L on Tue 17/04/2012 03:11:34
 Idk if it's because I'm on ICS 4.0.3. on a tablet or if you're still updating it, but AGS works fine; this doesn't though. Maybe I'm using it wrong? It's on my home page on my tablet and clicking it just opens a black screen with a white box saying AGS Stream, and under it it says Coming Soon. Am I doing something wrong?

EDIT: also tested on my rooted LG Optimus V running Froyo and this time AGS Stream won't even install.
Title: Re: AGS Stream: AGS Android Market (Super Alpha Version 0.0.3) Bug Fix Edition!
Post by: Joseph DiPerla on Tue 17/04/2012 04:17:26
DazJ: Yes, I am planning on trying to make a utility so that anyone who wants to create a commercial game and upload it to the Google play store.

R4L: Its still in Beta so that front page that loads is not complete. That is supposed to be a featured games page and I haven't really implemented too much into it. However, the true form is in the AGS tab which will install AGS if its not already there. Also, there is a games page with one game displayed which will download the necessary files. Its a space quest game. It will take a few minutes to download and install it. Then go to AGS itself and the game should appear there.