[OpenBor] Android Update Version?

  • Thread starter Thread starter stin
  • Start date Start date
Mycohl said:
When I tried to build a vanilla android version of it, there were a bunch of missing/undefined JNI references. Trying to call any of the SDL joystick stuff with the current libSDL2 causes it to crash. Maybe I'm just doing it wrong.

Do you mean you didn't use NDK successfully? I also built libSDL2.so and libopenbor.so using NDK. No error message noticed.

FYI, I have put an apk built from original source code in my previous post. Perhaps you can try this file.

Added:
Sorry. After further check, I  was wrong. I didn't built libSDL2.so from source code.
 
Mycohl said:
@ericavd101: How did you get controller support working? It looks to me like utunnels is using a custom build of libSDL2 that targets API 10, so no joystick support. Did you re-build it?

Are you sure about no joystick support?
I am no SDL expert. By a rough browsing of "video.c" (source code of in dir "jni"), I see:

void initSDL()
{
    SDL_DisplayMode mode;
    int init_flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_JOYSTICK;
    const char *var = SDL_getenv("SDL_VIDEO_FULLSCREEN_DISPLAY");
    int vm;


It seems that SDL joystick is initialized.
 
ericavd101 said:
It seems that SDL joystick is initialized.

Yes, but when you call the JNI methods (nativeAddJoystick, onNativePadUp/Down, onNativeJoy) from SDLActivity, it crashes. This behavior, combined with the manifest and properties files stating that it targets API 10, are what leads me to believe that there is no joystick support (on the android side) in that build of libSDL2. I could very well be wrong, and I'm certainly not an expert on SDL2 or even coding in general. I need to sit down and try to puzzle through the SDL2 source at some point to get a better idea of what is going on.
 
Can somebody upload the most stable Android build up to date please?

I tried installing O Illusionista's apk from his link in the previous page but it will not install. Redownloaded it a few times and I still get the same results.

Also, ericavd101's links are broken.

I managed to find build 3824 online, but of course it only runs older modules and none of the awesome new released stuff.

You would be doing me and I'm sure a handful of others a great favor. Thanks in advance.
 
i asked him how he compiled android version, i have eclipse and sdk installed, i would like to compile source with fixed gamepads.
 
Thank you for those builds ericavd101!

Now, I have only a small issue. I managed to install both builds on my phone without a problem, but for some weird reason they won't install on my tablet.

Like I mentioned before, I've been running an old build 3824 on my tablet without a problem. I even uninstalled it and tried installing anything from 3979 and up but they won't install.

Any suggestions?
 
I tested your build on my android device( GPD Q88+ ) with buttons and they work nice,  built in gamepad is recognized automatially but some strange things are happening in game like you shoot projectiles backwards or you walk backward but play animation forward, i switched back to usual version, did you changed anything in the code besides controls ?
 
As I stated in previous post of the thread, I only altered
6 lines of source code in the modifided apk. It's all about key mapping.
IIRC, the apk provided above are ok with Sixaxis Controller. The modified apk is intended to be used with Sixaxis Controller because I am using a DS3 controller. Do you have Sixaxis Controller installed on your Android device?
 
It also happens when i control characters with touchscreens, its not about controls but about game features , spawning projectile spawns them behind you flying backwards instead in front of you flying forward, also walk forward is played when you walk backwards and characters is not flipped.IT doesnt happen all the time but it happens too often to be considered unimportant temporary problem, its serious bug.
I think you altered the code too deep in the engine where animations change takes place ?
I have GPD Q88+ and it works also with normal builds released by utunnels.
 
The 6 lines that I modified will NOT create such behavior. I am pretty sure.
If the modified apk does not work for you, then you should use the original apk which is built from original source code.

The modified apk is created for my own purpose. It is not intended to be used by people with different device and config. For most people, the original apk built from original source code (no modification) should be the first choice.
 
Back
Top Bottom