Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mim2011

#1
Quote from: eri0o on Fri 13/07/2018 02:38:56
created an issue on the github tracker

I wasn't making sense of anything since I didn't know either there was a menu or the possibility of showing the keyboard. On my phone pressing the home button just goes to my Android Home, and back exits, so both buttons do exit the game. I haven't played a game that requires the keyboard, so I didn't noticed it.

I still don't understand why @mim2011 wasn't able to build the port, but I can't created an environment to try to reproduce.

Edit: Also, there is one thing being mixed here! Building the libags*.so /libpe.so files and building the App. I never did this in one step. The NDK is for compiling the AGS libs and the Android Studio makes Android app that can use libs - like the AGS Android App. I see the Android port and the Android App as two different things, because the last is for playing games made for pc on Android and the first for making actual Android games from an AGS game.

What I mean is that this modification can reuse already built libs since it's only the app and this should be easier.

hi eri0o

as I already said, I am able to build the libraries (libags*.so /libpe.so) but not the App.
I tried to follow the Readme.me file:

Quote## Java app

There are two parts to the Java app, one is the engine library in <SOURCE>/Android/library
and the other one is the launcher app. The default launcher which displays a list
of games from the SD-card is in <SOURCE>/Android/launcher_list.

The easiest way to build the app is to create an Android project in Eclipse. Choose the
"create from existing source" option and point Eclipse to the launcher directory.

To build from the command line, you can use the tool 'ant'.

e.g. (assuming the SDK is installed in /opt)

    $ export ANDROID_HOME=/opt/android-sdk-linux
    $ cd <SOURCE>/Android/launcher_list
    $ ant debug
    $ ant release # for release build

but it did not helped :-) I tried only the command line path, maybe I should try to install Eclipse...
I use NDK r15c and last version from Android Studio. My OS is Fedora 28, 64 bits.
#2
Quote from: Crimson Wizard on Tue 10/07/2018 10:22:23
@mim2011, have you set up ANDROID_HOME enviroment variable before running ant?

This is from the README:
Quote
e.g. (assuming the SDK is installed in /opt)

$ export ANDROID_HOME=/opt/android-sdk-linux
(If your SDK is installed in different place, of course set your own path.)
hi,

yes I have defined ANDROID_HOME, it works with other projects.
I don't think that the hack with copying the ant folder into a newer ndk works.
I am able to build the external libraries and the ags libraries, but for the last step, the launcher, no chance
I even tried to convert it to a gradle project for Android Studio but still nothing...

#3
Quote from: Crimson Wizard on Mon 09/07/2018 10:27:31
Quote from: mim2011 on Mon 09/07/2018 10:18:53
I can access Preferences on the launcher, not in game
Yes, these ones. We'd need to try adding a new option there for the Back key to work like Menu.

Quote from: mim2011 on Mon 09/07/2018 10:18:53
I tried to build master before branching the 3.4.1
Yes, master is in wip state right now, better use stable release tag.

Quote from: mim2011 on Mon 09/07/2018 10:18:53/ags/Android/launcher_list/build.xml:90: Cannot find <HOME>/android/sdk/tools/ant/build.xml imported from <HOME>/ags/Android/launcher_list/build.xml

I am using NDK r15c (not the newest but ant was removed before)

Oh right, looks like I forgot to mention this in the Readme. You need to download older SDK, then copy ant to the tools folder:
https://stackoverflow.com/questions/42912824/the-ant-folder-is-suddenly-missing-from-android-sdk-did-google-remove-it

ok, after copying ant folder to <SDK>/tools I get othe errors
Code: ags

[ launcher_list]$ ant debug
Buildfile: <HOME>/ags/Android/launcher_list/build.xml
  [taskdef] Could not load definitions from resource anttasks.properties. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.

-set-mode-check:

-set-debug-files:

-check-env:

BUILD FAILED
<HOME>/android/sdk/tools/ant/build.xml:396: Problem: failed to create task or type checkenv
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds


I will try later to look into the problem
#4
I can access Preferences on the launcher, not in game
I tried to build master before branching the 3.4.1

Code: ags

[ launcher_list]$ ant
Buildfile: <HOME>/ags/Android/launcher_list/build.xml

BUILD FAILED
/ags/Android/launcher_list/build.xml:90: Cannot find <HOME>/android/sdk/tools/ant/build.xml imported from <HOME>/ags/Android/launcher_list/build.xml

Total time: 0 seconds


I am using NDK r15c (not the newest but ant was removed before)
#5
Quote from: Crimson Wizard on Sat 07/07/2018 15:29:19
Hello, I updated Android engine recently with some gfx related changes. That should not have break anything in theory, but still could some people test it out to see if it works same as before?

https://www.dropbox.com/s/nkoe0to8ceqziib/AGS-3.4.1-p3prepare.apk?dl=0


Quote from: mim2011 on Thu 21/06/2018 09:44:42
It will be possible to switch the Actions between Back an Menu buttons? In this way on a tablet without menu button it will be easy to play. Now, when the menu button is pressed it shows a menu with contains an exit point as well. The back button works only like a shortcut for exit. It is not possible to get the virtual keyboard without a menu button.

Only to give some reply, I wish someone who knows how to program Android apps looked into this, but right now we do not have the right person around.

Hi Crimson Wizard,

thank you for reply.
Unfortunately I am not able to build the part myself, I think that you are using an older ndk/sdk with ant.
The change that I propose is minimal, only one line of code in a java file, :

Code: ags

in /Android/library/src/com/bigbluecup/android/AgsEngine.java

                public void onBackKeyPressed(AgsEngine engine, boolean longPress)
                {
                        if (longPress) engine.showExitConfirmation();
-                       else engine.keyboardEvent(KeyCode.KeyBackHardKey);
+                       //else engine.keyboardEvent(KeyCode.KeyBackHardKey);
+                       else engine.showInGameMenu();
                }


It will only switch the result of pressing the back button, from prompting to exit to showing the in game menu. (line taken from the previous method onMenuKeyPressed).

I am not very familiar with open source development processes and with pull requests on github, I hope that I am not against the forum rules to post it here.
#6
Hi devs,

very nice port (3.4.1)! Thank you!
I tried to play Kong Quest 1 VGA from AGD Interactive on a tablet and it is really nice.
Only one problem. Not all tablets have a menu button, only the back button.
It will be possible to switch the Actions between Back an Menu buttons? In this way on a tablet without menu button it will be easy to play. Now, when the menu button is pressed it shows a menu with contains an exit point as well. The back button works only like a shortcut for exit. It is not possible to get the virtual keyboard without a menu button.
Thank you
SMF spam blocked by CleanTalk