Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

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.

Messages - HCDaniel

Pages: 1 2 [3] 4 5 ... 11
31
WME Lite / Re: Android, how to set up project?
« on: November 07, 2015, 01:45:21 PM »
Yes I did that. No change :( Any Way I can get you to compile the final apk for me?

Can you check whether you have any local modifications to files - modifications which "do not look correct"? ("hg diff" would tell, resp. the appropriate TortoiseHG command)

Certainly I could build a debug .apk for you - just send me your .dcp file(s) and tell me the app's canonical name (like "com.mydomain.mygame.MyGameTitle"). This would be fine for your local tests (as it would be signed with my "debug key").

To finally publish an app, you need to sign it with your "release key", and that is one you better keep secret ;-) So in the end we need to get the toolchain working for you, even if I can help you out in the meantime.

32
WME Lite / Re: Android, how to set up project?
« on: November 06, 2015, 01:09:13 PM »
Hmm, that is really strange. The dependencies package only replaces the files in the "libs" folder, the "AndroidManifest.xml" should remain untouched.

Also pretty strange is how the "AndroidManifest.xml" ended up in your "bin" folder.

Can you try an "ant clean" before "ant debug"?

33
WME Lite / Re: Android, how to set up project?
« on: November 01, 2015, 11:16:40 AM »
I have updated the dependencies package and the repo on bitbucket (original wmelite project). Your game template now works for me. Please update repo and dependencies, then you can try it out.

34
WME Lite / Re: Android, how to set up project?
« on: October 27, 2015, 07:54:00 AM »
It's not about money. I don't have a lot of time at the moment (working on releasing a game this week). Let's see if everything works well, then I can spend some more time on wmelite soon.

35
WME Lite / Re: Android, how to set up project?
« on: October 27, 2015, 07:32:20 AM »
You could use my branch, but that would mean compiling all native libraries from source. With a working Android NDK install (and Cygwin for Windows) this is doable, but probably quite a hassle if you haven't done it before.

36
WME Lite / Re: 64 bit apps?
« on: October 27, 2015, 07:02:41 AM »
The good news is that at least the rebuilt dependencies seem to work (initially) for you :)

In my fork, I try to replace BASS by SDL_Mixer (because that one is royalty free). But it probably still has bugs (at least one I'd say).

Can you manually change the iOS project to remove the "USE_SDL_MIXER" define, replace the 2 relevant files from the "SDL_mixer" subdir with the regular ones, and add the BASS libraries? Then you should be back to BASS. (You might also try to simply use the main repo with my dependencies plus BASS, this might also work.)

I haven't seen the crash, because I only use the functions with a channel (e.g. PlayMusicChannel() and so on). If you don't mind, would you send me a project where the error occurs (unless it's the same one that you want to build for Android...)? Will probably take a while until I can have a look though.

37
WME Lite / Re: Android, how to set up project?
« on: October 27, 2015, 06:55:10 AM »
I found this error in the log file:

Code: [Select]
E/AndroidRuntime(11427): FATAL EXCEPTION: main

E/AndroidRuntime(11427): Process: org.CopelandGames.FartBlackjack, PID: 11427

E/AndroidRuntime(11427): java.lang.UnsatisfiedLinkError: Native method not found: org.libsdl.app.SDLActivity.nativeAddHintCallback:(Ljava/lang/String;Lorg/libsdl/app/SDLActivity$SDLHintCallback;)V

E/AndroidRuntime(11427): at org.libsdl.app.SDLActivity.nativeAddHintCallback(Native Method)

E/AndroidRuntime(11427): at org.libsdl.app.SDLActivity.onCreate(SDLActivity.java:189)

E/AndroidRuntime(11427): at android.app.Activity.performCreate(Activity.java:5585)

E/AndroidRuntime(11427): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)

E/AndroidRuntime(11427): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2400)

E/AndroidRuntime(11427): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)

E/AndroidRuntime(11427): at android.app.ActivityThread.access$900(ActivityThread.java:170)

E/AndroidRuntime(11427): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1304)

E/AndroidRuntime(11427): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(11427): at android.os.Looper.loop(Looper.java:146)

E/AndroidRuntime(11427): at android.app.ActivityThread.main(ActivityThread.java:5635)

E/AndroidRuntime(11427): at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(11427): at java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime(11427): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)

E/AndroidRuntime(11427): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)

E/AndroidRuntime(11427): at dalvik.system.NativeStart.main(Native Method)

This looks like a mismatch of native libraries and the SDLActivity Java class. Now that I think about it, you were probably using the dependency package on bitbucket, which is out of date. I need to update and test the original WME on Android again (was only working on my branch lately). I hope I'll find the time to do that in the coming days.

38
WME Lite / Re: Android, how to set up project?
« on: October 26, 2015, 01:29:57 PM »
Unfortunately I can't check your project right now. Sooner or later you will need a working "adb" anyway, so please try to get this one working.

You need to install a driver for your device, apart from the standard functionality of accessing files on the phone storage. Sometimes, Windows will prompt you to do so. Once you have "USB debugging" enabled on your device (in the developer settings), check that a driver for the "adb interface" is installed. If not, try to get the driver from the manufacturer website, or try to force the Google driver (somewhere in the SDK) to be installed instead.

As a bonus, "ant installd" will then automatically install and run your app.

39
WME Lite / Re: Android, how to set up project?
« on: October 26, 2015, 11:26:50 AM »
Can you paste the relevant section of your android log? You can capture it by using "adb logcat" on the shell. I need the log of around the time when the game stops working.

Typical mistakes could be missing native libraries, or missing game data (if you added it in the assets/raw folder, you should update "WMELiteFunctions.java" as described in the wiki).

Maybe it is something else though. The log should tell.

40
WME Lite / Re: Android, how to set up project?
« on: October 26, 2015, 10:47:04 AM »
No, just change the filename to "FartBlackJack.java" (add the missing capital "J").

41
WME Lite / Re: Android, how to set up project?
« on: October 26, 2015, 10:24:07 AM »
You have a typo. The class is called "FartBlackJack" but the file has the name "FartBlackack.java". Class name and file name must match.

42
WME Lite / Re: Android, how to set up project?
« on: October 26, 2015, 07:15:33 AM »
Android SDK standalone install on Windows (Vista):

  • Download and install the "standalone SDK" executable for Windows. I chose "install for all users when prompted". The installer puts all files into this folder "C:\Program Files\Android\android-sdk" and creates some shortcuts in the start menu.
  • Start the "SDK manager" from the start menu as administrator (was required on my PC at least). If unsure, do not deselect anything. If you are sure, deselect the installation of the most recent SDK (currently 6.0) if you want to avoid a big download. Do not deselect anything else.
  • Select "SDK Platform" only for the 2 entries "Android 2.3.3 (API 10)" and "Android 3.1 (API 12)". To see API 12, you need to check "Obsolete" in the bottom of the window. Then, select the most recent "Android SDK build-tools" (currently 23.0.1). Install and then close the SDK manager.
  • For a working command line, the 2 paths "C:\Program Files\Android\android-sdk\tools" (for "android") and "C:\Program Files\Android\android-sdk\platform-tools" (for "adb") need to be in your path. Add them to the "path" environment variable separated by ";". My path variable now has 3 paths added, so it looks like this: "<a looong list of folders...>;C:\Program Files\apache-ant-1.9.6\bin;C:\Program Files\Android\android-sdk\tools;C:\Program Files\Android\android-sdk\platform-tools;"
  • Check that typing "android" in a new command line window will show the SDK manager again (just close it when it appears), and that the "adb" command is recognized.

43
WME Lite / Re: Android, how to set up project?
« on: October 26, 2015, 07:01:41 AM »
Ant installation on Windows (Vista):

  • A "Java Development Kit" (JDK) is required, a "Java Runtime Environment" alone is not sufficient. If there is nothing, or only a JRE installed, please download & install a JDK. In my case, I have a JDK installed here: C:\Program Files\Java\jdk1.7.0_25
  • Download the "binary distribution" of Ant as .zip file. Extract it to your "program files" folder. On my PC it was much faster to extract to the Desktop first, and then move the generated folder to "Program files". I now have a folder "C:\Program Files\apache-ant-1.9.6" with ant, but it is not yet recognized by the system.
  • According to the instructions (http://ant.apache.org/manual/install.html#installing) I need to set 3 environment variables. I go to "System" -> "Advanced System Settings" -> "Environment Variables" (loosely translated to English).
  • I need to add ant's "bin" path to the path variable. "Path" already exists as a system variable, so I add "C:\Program Files\apache-ant-1.9.6\bin" at the end, separated by ";".
  • ANT_HOME and JAVA_HOME do not exist, so I add them as user variables. I set ANT_HOME to "C:\Program Files\apache-ant-1.9.6" and JAVA_HOME to my JDK root "C:\Program Files\Java\jdk1.7.0_25" (I have a rather old JDK).
  • After saving all my changes, I open a new command prompt. Now "ant" is recognized as a command, and (correctly) says sth. like "build.xml not found".

44
WME Lite / Re: Android, how to set up project?
« on: October 25, 2015, 01:34:34 PM »
Let me dig out my old windows vista pc, then I'll see how to do this on windows.

45
WME Lite / Re: Android, how to set up project?
« on: October 25, 2015, 12:58:01 PM »
I can't give you a complete guide on how to setup your system. But basically, you need to install Java and then ant. For Linux, you simply use the package manager of the distribution. For Windows, you can download an .exe file for installing Java. Then you can download and install ant as per the instructions on the ant website (here http://ant.apache.org/manual/install.html#installing are generic install instructions).

Your install was successful, if you open a command prompt, and type "java" without an error message (like "command not found"), and then repeat the same for "ant".

Finally, the Android SDK (whether installed standalone or in combination with Android Studio) should be in your path as well, so that when you type "android", something else than an error message appears (typically the "Android SDK Manager" GUI should appear). If it doesn't, you should add the "tools" subdirectory from the base directory of the Android SDK to your path, then it should work. (I have set my path as follows:
Code: [Select]
export PATH=$PATH:/opt/android/android-sdk-linux/platform-tools/:/opt/android/android-sdk-linux/tools/ to have both "android" and "adb" (you might need that one later) available in Linux.)

If these commands are available in your command prompt, the build instructions should work. Just go to the "wmelite/android" directory and type the commands.



Pages: 1 2 [3] 4 5 ... 11

Page created in 0.187 seconds with 23 queries.