project-navigation
Personal tools

Author Topic: UFO:AI Android port  (Read 78056 times)

Offline pelya

  • Rookie
  • ***
  • Posts: 22
    • View Profile
Re: UFO:AI Android port
« Reply #30 on: December 10, 2011, 11:22:57 am »
I've fixed the link. I intend to fix restoring from background, and add touch-anywhere-and-drag smartphone-like scrolling to the textlists, then I'll update the package on the Android Market.

Offline zotje

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: UFO:AI Android port
« Reply #31 on: December 10, 2011, 01:44:31 pm »
Thank you for all your work.
Any particular reason why the packages have gotten so much larger btw?

Version 2.4.0.4 worked though with garbled graphics.
Version 2.4.0.5 loads to black screen and then terminates.

Code: [Select]
D/alogcat (17054): stopped
D/alogcat (17054): starting ...
D/AudioHardwareALSA( 2359):
D/AudioHardwareALSA( 2359):  ALSA OPEN mode 0,device 2
I/AudioHardwareALSA( 2359): Try to open ALSA PLAYBACK device AndroidPlayback_Speaker_normal
I/AudioHardwareALSA( 2359): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
D/AudioHardwareALSA( 2359): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA( 2359): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 2359): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA( 2359): Buffer size: 2048
D/AudioHardwareALSA( 2359): Latency: 46439
W/PowerManagerService( 2463): Timer 0x3->0x3|0x3
I/AudioHardwareALSA( 2359): Output standby called!!. Turn off PCM device.
W/PowerManagerService( 2463): Timer 0x3->0x3|0x0
E/imdg81  ( 2463): IsShutDownStarted()
E/imdg81  ( 2463): IsShutDownStarted()
W/PowerManagerService( 2463): Timer 0x7->0x3|0x0
D/dalvikvm( 7380): GC_EXPLICIT freed 2640 objects / 142960 bytes in 165ms
D/NativeCrypto( 7380): Freeing OpenSSL session
V/WindowManager( 2463): Dsptch > Window{486453c8  paused=false}
V/WindowManager( 2463): Dsptch > Window{486453c8  paused=false}
V/alogcat (17054): save instance
V/alogcat (17054): paused
D/AudioHardwareALSA( 2359):
D/AudioHardwareALSA( 2359):  ALSA OPEN mode 0,device 2
I/AudioHardwareALSA( 2359): Try to open ALSA PLAYBACK device AndroidPlayback_Speaker_normal
I/AudioHardwareALSA( 2359): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
D/AudioHardwareALSA( 2359): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA( 2359): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 2359): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA( 2359): Buffer size: 2048
D/AudioHardwareALSA( 2359): Latency: 46439
I/Zygote  (17078): Zygote: pid 17078 has INTERNET permission, then set capability for CAP_NET_RAW
I/System.out(17078): libSDL: Creating startup screen
I/System.out(17078): libSDL: Loading libraries
I/System.out(17078): libSDL: loaded GLESv2 lib
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl-1.2.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl-1.2.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl-1.2.so 0x4801da00
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_net.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_net.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_net.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libsdl_net.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_mixer.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_mixer.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_mixer.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libsdl_mixer.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_image.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_image.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_image.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libsdl_image.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_ttf.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_ttf.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libsdl_ttf.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libsdl_ttf.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libtheora.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libtheora.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libtheora.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libtheora.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libintl.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libintl.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libintl.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libintl.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/liblua.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/liblua.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/liblua.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/liblua.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libcurl.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libcurl.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libcurl.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libcurl.so 0x4801da00, skipping init
I/System.out(17078): libSDL: loading lib /data/data/net.sourceforge.ufoai/files/../lib/libmxml.so
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/files/../lib/libmxml.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/files/../lib/libmxml.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/files/../lib/libmxml.so 0x4801da00, skipping init
I/System.out(17078): libSDL: Loading settings
I/System.out(17078): libSDL: Settings.Load(): enter
I/System.out(17078): libSDL: old cfg version 24005, our version 24005
I/System.out(17078): libSDL: Settings.Load(): loaded settings successfully
I/System.out(17078): libSDL: 3000-msec timeout in startup screen
I/ActivityManager( 2463): Displayed activity net.sourceforge.ufoai/.MainActivity: 490 ms (total 490 ms)
D/alogcat (17054): stopping ...
D/alogcat (17054): stopped
D/dalvikvm( 2463): GC_EXPLICIT freed 20059 objects / 1182256 bytes in 212ms
W/PowerManagerService( 2463): Timer 0x3->0x3|0x0
I/AudioHardwareALSA( 2359): Output standby called!!. Turn off PCM device.

Continued in next post...
« Last Edit: December 10, 2011, 02:58:49 pm by zotje »

Offline zotje

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: UFO:AI Android port
« Reply #32 on: December 10, 2011, 02:58:09 pm »
Code: [Select]
I/System.out(17078): libSDL: Timeout reached in startup screen, process with downloader
I/System.out(17078): libSDL: Starting data downloader
I/System.out(17078): libSDL: Starting downloader
I/System.out(17078): libSDL: Initializing video and SDL application
V/SDL     (17078): GLSurfaceView_SDL::EglHelper::start(): creating GL context
D/libEGL  (17078): loaded /system/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL  (17078): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL  (17078): loaded /system/lib/egl/libGLESv2_POWERVR_SGX540_120.so
V/SDL     (17078): GL config 0: R5G6B5A0 depth 0 stencil 0 type 1 (GLES) caveat none nr 0 pos 2
V/SDL     (17078): GL config 1: R5G6B5A0 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 0
V/SDL     (17078): GL config 2: R5G6B5A0 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 0
V/SDL     (17078): GL config 3: R8G8B8A8 depth 0 stencil 0 type 1 (GLES) caveat none nr 0 pos 18
V/SDL     (17078): GL config 4: R8G8B8A8 depth 0 stencil 0 type 1 (GLES) caveat none nr 0 pos 18
V/SDL     (17078): GL config 5: R8G8B8A8 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 16
V/SDL     (17078): GL config 6: R8G8B8A8 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 16
V/SDL     (17078): GL config 7: R8G8B8A8 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 16
V/SDL     (17078): GL config 8: R8G8B8A8 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 16
V/SDL     (17078): GLSurfaceView_SDL::EGLConfigChooser::chooseConfig(): selected 1: R5G6B5A0 depth 24 stencil 8 type 1 (GLES) caveat none nr 0 pos 0
V/SDL     (17078): GLSurfaceView_SDL::EglHelper::createSurface(): creating GL context
I/System.out(17078): libSDL: DemoRenderer.onSurfaceCreated(): paused false mFirstTimeStart true
I/System.out(17078): libSDL: DemoRenderer.onSurfaceChanged(): paused false mFirstTimeStart false
I/libSDL  (17078): Physical screen resolution is 800x480, virtual screen 800x480
I/System.out(17078): libSDL: DrawLogo
D/dalvikvm(17078): GC_EXTERNAL_ALLOC freed 15147 objects / 377440 bytes in 25ms
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/lib/libapplication.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/lib/libapplication.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/lib/libapplication.so 0x4801da00, skipping init
D/dalvikvm(17078): Trying to load lib /data/data/net.sourceforge.ufoai/lib/libsdl_main.so 0x4801da00
D/dalvikvm(17078): Added shared lib /data/data/net.sourceforge.ufoai/lib/libsdl_main.so 0x4801da00
D/dalvikvm(17078): No JNI_OnLoad found in /data/data/net.sourceforge.ufoai/lib/libsdl_main.so 0x4801da00, skipping init
I/System.out(17078): libSDL: setting envvar LANGUAGE to 'en_GB'
I/System.out(17078): libSDL: accelerometer start required: true
D/SensorManager(17078): ====>>>>>Num Sensor: 1
D/SensorManager(17078): ====>>>>>Num Sensor: 2
D/SensorManager(17078): ====>>>>>Num Sensor: 3
D/SensorManager(17078): ====>>>>>Num Sensor: 4
D/SensorManager(17078): ====>>>>>Num Sensor: 0
E/SensorManager(17078): ####### akmd2 started!!!
I/System.out(17078): libSDL: starting accelerometer
E/SensorManager(17078): registerListener 0:SMB380 delay:60
E/SensorManager(17078): =======>>>Sensor Thread RUNNING <<<========
D/sensor_stub( 2363): sensor_stub_activate sensors[00000001] mask[00000001]
D/sensor_stub( 2363): sensor_stub_activate current_active[00000010]
D/sensor_stub( 2363): sensor_stub_activate IN , LightSensor_enable: 1
D/sensor_stub( 2363): sensor_stub_activate OUT changed:0
D/sensor_stub( 2363): sensor_set_delay [60]
I/libSDL  (17078): Changing curdir to "/mnt/sdcard/app-data/net.sourceforge.ufoai"
I/libSDL  (17078): Calling SDL_main("sdl")
I/libSDL  (17078): param 0 = "sdl"
I/UFOAI   (17078): ---- endianness initialization -----
I/UFOAI   (17078): found little endian system
I/UFOAI   (17078):
I/UFOAI   (17078): ---- filesystem initialization -----
I/UFOAI   (17078): Adding game dir: ./base
I/UFOAI   (17078): Could not load './base/0base.pk3'
I/UFOAI   (17078): Added packfile ./base/0music.pk3 (65 files)
I/UFOAI   (17078): Added packfile ./base/1base.pk3 (4101 files)
I/UFOAI   (17078): Adding game dir: /mnt/sdcard/app-data/net.sourceforge.ufoai/.ufoai/2.4-dev/base
I/UFOAI   (17078): using /mnt/sdcard/app-data/net.sourceforge.ufoai/.ufoai/2.4-dev/base for writing
I/UFOAI   (17078): couldn't execute filesystem.cfg
I/UFOAI   (17078): couldn't execute default.cfg
I/UFOAI   (17078): couldn't execute config.cfg
I/UFOAI   (17078):
I/UFOAI   (17078): ----- network initialization -------
I/UFOAI   (17078): libcurl/7.21.3 zlib/1.2.3 initialized.
I/UFOAI   (17078):
I/UFOAI   (17078): ------ server initialization -------
I/UFOAI   (17078):
I/UFOAI   (17078): ----- console initialization -------
I/UFOAI   (17078): Console initialized.
I/UFOAI   (17078):
I/UFOAI   (17078): ------- video initialization -------
I/UFOAI   (17078): SDL version: 1.2.14
I/UFOAI   (17078): I: desktop depth: 16bpp
I/UFOAI   (17078): I: video memory: 131072
I/UFOAI   (17078): I: Available resolutions: 800x480 800x600 640x480 640x400 320x240 320x200 256x224 533x320 400x240 480x320 800x480 544x332 640x350 (13)
I/UFOAI   (17078): I: video driver: android
I/UFOAI   (17078): I: setting mode -1
I/UFOAI   (17078): I: set multisample buffers to 0
I/UFOAI   (17078): I: set swap control to 0
E/libSDL  (17078): ERROR: No video mode large enough for 1024x768
I/UFOAI   (17078): SDL SetVideoMode failed: No video mode large enough for 1024x768
I/UFOAI   (17078): Failed to set video mode 1024x768 fullscreen.
I/UFOAI   (17078): I: set multisample buffers to 0
I/UFOAI   (17078): I: set swap control to 0
I/libSDL  (17078): SDL_SetVideoMode(): application requested mode 800x480 OpenGL 2 HW 0 BPP 16
I/UFOAI   (17078): I: 800x480 (fullscreen: no)
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
E/libSDL  (17078): ERROR: GL_GetAttribute not supported
I/UFOAI   (17078): GL_VENDOR:
I/UFOAI   (17078): Imagination Technologies
I/UFOAI   (17078):
I/UFOAI   (17078): GL_RENDERER:
I/UFOAI   (17078): PowerVR SGX 540
I/UFOAI   (17078):
I/UFOAI   (17078): GL_VERSION:
I/UFOAI   (17078): OpenGL ES-CM 1.1
I/UFOAI   (17078):
I/UFOAI   (17078): GL_EXTENSIONS:
I/UFOAI   (17078): GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_IMG_texture_stream GL_IMG_vertex_program
I/UFOAI   (17078):
I/UFOAI   (17078): OpenGL version detected: 1.1
I/UFOAI   (17078): GL_ARB_multitexture not found
I/UFOAI   (17078): Overriding GL_ARB_multitexture - it is always present in GLES
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glActiveTexture"): 0xac202b50
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glClientActiveTexture"): 0xac202c2c
I/UFOAI   (17078): GL_OES_texture_npot not found
I/UFOAI   (17078): GL_EXT_texture_filter_anisotropic not found
I/UFOAI   (17078): GL_EXT_texture_lod_bias not found
I/UFOAI   (17078): GL_ARB_vertex_buffer_object not found
I/UFOAI   (17078): GL_ARB_fragment_shader not found
I/UFOAI   (17078): GL_ARB_shading_language_100 not found
I/UFOAI   (17078): GLSL shaders unsupported by OpenGL implementation.
I/UFOAI   (17078): found GL_###_framebuffer_object
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glIsRenderbufferEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glIsRenderbufferOES"): 0xac2037e4
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glBindRenderbufferEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glBindRenderbufferOES"): 0xac2037fc
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glDeleteRenderbuffersEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glDeleteRenderbuffersOES"): 0xac203810
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGenRenderbuffersEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGenRenderbuffersOES"): 0xac203824
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glRenderbufferStorageEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glRenderbufferStorageOES"): 0xac203838
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glRenderbufferStorageMultisampleEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glRenderbufferStorageMultisampleOES"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glRenderbufferStorageMultisampleARB"): 0x0
I/UFOAI   (17078): glRenderbufferStorageMultisample### not found
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGetRenderbufferParameterivEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGetRenderbufferParameterivOES"): 0xac20384c
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glIsFramebufferEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glIsFramebufferOES"): 0xac203860
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glBindFramebufferEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glBindFramebufferOES"): 0xac203878
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glDeleteFramebuffersEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glDeleteFramebuffersOES"): 0xac20388c
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGenFramebuffersEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGenFramebuffersOES"): 0xac2038a0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glCheckFramebufferStatusEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glCheckFramebufferStatusOES"): 0xac2038b4
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture1DEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture1DOES"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture1DARB"): 0x0
I/UFOAI   (17078): glFramebufferTexture1D### not found
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture2DEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture2DOES"): 0xac2038e0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture3DEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture3DOES"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferTexture3DARB"): 0x0
I/UFOAI   (17078): glFramebufferTexture3D### not found
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferRenderbufferEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glFramebufferRenderbufferOES"): 0xac2038cc
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGetFramebufferAttachmentParameterivEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGetFramebufferAttachmentParameterivOES"): 0xac2038f4
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGenerateMipmapEXT"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glGenerateMipmapOES"): 0xac203908
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glDrawBuffers"): 0x0
I/libSDL  (17078): ANDROID_GL_GetProcAddress("glBlitFramebuffer"): 0x0
I/UFOAI   (17078): using GL_ARB_framebuffer_object
I/UFOAI   (17078): max draw buffers: 1
I/UFOAI   (17078): max render buffer size: 2048
I/UFOAI   (17078): max color attachments: 1
I/UFOAI   (17078): Invalid value for cvar r_programs
I/UFOAI   (17078): Invalid value for cvar r_postprocess
I/UFOAI   (17078): max supported vertex texture units: 0
I/UFOAI   (17078): max supported lights: 8
I/UFOAI   (17078): max texture units: 4
I/UFOAI   (17078): max texture coords: 4
I/UFOAI   (17078): max vertex attributes: 8
I/UFOAI   (17078): max varying floats: 202861916
I/UFOAI   (17078): max fragment uniform components: 202861916
I/UFOAI   (17078): max vertex uniform components: 202861916
I/UFOAI   (17078): max texture size: detected 2048
I/UFOAI   (17078): Using low resolution globe textures as requested.
I/UFOAI   (17078): not using GLSL shaders
I/UFOAI   (17078): SDL_image version 1.2.11
I/UFOAI   (17078): Could not load environment map 0
I/UFOAI   (17078): FS_RemoveFile: remove /mnt/sdcard/app-data/net.sourceforge.ufoai/.ufoai/2.4-dev/base/keys.cfg
I/UFOAI   (17078): There are still 1 opened files
I/UFOAI   (17078): Backtrace (run command "arm-eabi-gdb libapplication.so -ex 'list *0xaabbccdd'" where aabbccdd is a stack address below):
F/UFOAI   (17078): Error: Shutdown
D/Zygote  ( 2358): Process 17078 exited cleanly (1)
W/ISensorClient( 2363): transact([00000001]) failed
W/SensorService( 2363): gWeakClients->notify failed
D/alogcat (17054): stopping ...
D/alogcat (17054): canceling periodic saves
V/alogcat (17054): started
V/alogcat (17054): resumed
D/alogcat (17054): starting ...
D/dalvikvm(17054): GC_FOR_MALLOC freed 3510 objects / 517792 bytes in 66ms
I/dalvikvm(17054): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm( 2463): GC_EXPLICIT freed 4573 objects / 221728 bytes in 205ms
W/PowerManagerService( 2463): Timer 0x3->0x3|0x3
D/GTalkService( 7380): [RosterMgr] roster not modified
D/GTalkService( 7380): [OtrMgr] OTR not modified
W/PowerManagerService( 2463): Timer 0x3->0x3|0x0
E/imdg81  ( 2463): IsShutDownStarted()
E/imdg81  ( 2463): IsShutDownStarted()
V/WindowManager( 2463): Dsptch > Window{48378100 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity paused=false}
V/WindowManager( 2463): Dsptch > Window{48378100 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity paused=false}

Offline pelya

  • Rookie
  • ***
  • Posts: 22
    • View Profile
Re: UFO:AI Android port
« Reply #33 on: December 10, 2011, 09:04:15 pm »
Seems like your 0base.pk3 got corrupted. Your log has line:
Quote
I/UFOAI   (17078): Adding game dir: ./base
I/UFOAI   (17078): Could not load './base/0base.pk3'
I/UFOAI   (17078): Added packfile ./base/0music.pk3 (65 files)
I/UFOAI   (17078): Added packfile ./base/1base.pk3 (4101 files)

while it should be

Quote
Adding game dir: ./base
Added packfile ./base/0base.pk3 (4078 files)

Could you please delete the directory app-data/net.sourceforge.ufoai on your SD card so it will re-download data files?
Also please deselect "Additional maps" and "Music" packages from the SDL startup config -> Downloads menu, I was testing it only with base files (you can always select them back later). The package size grew because of additional maps, and because I've included some hi-res textures into the "base" package (the earth image mainly, and by "hi-res" I mean 512x256, all other textures are resized to 256x256 or lower).

Offline zotje

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: UFO:AI Android port
« Reply #34 on: December 11, 2011, 12:44:18 am »
Yep, redownloading 0base.pk3 solved the issue.
Everything loads fine now (including when music and extra maps are included).
Graphics problem from 2.4.0.4 is also fixed in this version.

The game crashed on going into the battlescape though.
If you want i can try this with the logger on again as well.

As for the interface. The laptop mouse effect worked well enough.
The only 2 real problems i had was when placing a base, the world was spinning at such a speed it was difficult to control where to place your base, and the rotate world/zoom buttons were very unresponsive in worldscape.

Offline pelya

  • Rookie
  • ***
  • Posts: 22
    • View Profile
Re: UFO:AI Android port
« Reply #35 on: December 11, 2011, 01:22:34 am »
Most probably it crashes because it eats up all memory.
How much RAM does your device have?
I could run skirmish mode with "training_a" map on my HTC Evo, which has something near 500 Mb RAM. There were no sounds installed (they are inside additional map pack, and instantly eat smth like 20 Mb RAM on load), and I've used "initial" weapon setting for both teams - that will give only knives to the soldiers, and won't load other weapon models.
My device can run UfoAI with bigger maps, but then it will kill all background processes, and if UfoAI itself is put to background - it will also immediately kill it, just to load back desktop. That's the reason behind "base pack" with only smallest maps.
Also, you can rotate the Earth by touching your device screen with two fingers, and sliding them.
Also it should support pinch-to-zoom and rotate on the battle map, however the speed is too fast for my device with it's 2-3 FPS - I've tried to modify default settings, but there's seems to be some hard limit on camera speed in source code.

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: UFO:AI Android port
« Reply #36 on: December 11, 2011, 02:21:13 pm »
Pelya, would you like an even simpler map with fewer textures to load? What eats up the RAM in the battlescape most? I could try reducing lightmap size and other things if it will help.

Offline zotje

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: UFO:AI Android port
« Reply #37 on: December 12, 2011, 05:43:13 pm »
Yeah, i suspect so, it's only 304 MB.
Still, 500 MB bare minimum for a phone is quite steep.
Maybe you should consider reducing the textures even more instead of going for some hi-res ones.

Offline pelya

  • Rookie
  • ***
  • Posts: 22
    • View Profile
Re: UFO:AI Android port
« Reply #38 on: December 13, 2011, 11:47:11 am »
I don't know what eats that much RAM - when I'm loading the training_a map the UfoAI process eats 270 Mb RAM, when I put it to background all OpenGL textures are destroyed and it takes up 200 Mb RAM. So textures occupy only 70 Mb, everything else should be internal game structures, I wonder why it's that many.
I can try one lame-ass optimization - when loading map restart UfoAI process so it won't load any menu and earthscape data, only the battlescape, but I don't think it will change things dramatically.
There are some huge structures allocated for map BSP tree and for pathfinding, as far as I understood by reading sources halfyear ago.
Android 2.3 official device requirements document requires device to have at least 128 Mb userspace RAM (that is, not used by device drivers), Android 4.0 document requires 340 Mb userspace RAM - that's enough for most maps in UfoAI I guess.

Edit: training_a map launched from Skirmish menu, with multiplayer equipment takes 330 Mb RAM with sounds, and 280 Mb without them (I've removed sounds from 1base.pk3, add or remove few megabytes due to randomized item generation). lake_ice map did non load with sounds at all, but it loaded without them, and used 330 Mb RAM (but crashed after a while). And bunker map crashes even without sounds (I remember playing it halfyear ago though)

335 Mb is the limit of my HTC Evo, when it kills foreground app, it could be higher if the stock firmware wasn't preloaded with lot of crap, the home screen process is the biggest among them and takes up 70 Mb RAM. And the actual RAM accessible to user space is 425 Mb, as shown by "adb shell cat /proc/meminfo".
« Last Edit: December 13, 2011, 07:06:16 pm by pelya »

Offline Sayman

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: UFO:AI Android port
« Reply #39 on: May 28, 2012, 03:34:04 am »
Hello.android port is still supported? i have problem with version 2.4.0.5 - sounds not working. if i set initialization all sounds, then game is crashed. my device is acer a500 with cusmnor rom by Thor (v14.2).

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: UFO:AI Android port
« Reply #40 on: May 28, 2012, 09:16:59 am »
No idea, but do you have 512MB of RAM?

Offline Sayman

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: UFO:AI Android port
« Reply #41 on: May 28, 2012, 10:13:29 am »
no. have 490mb (max 502mb can free). but all previous versions have sounds (but have other bugs, like screen artifacts in 2.4.0.4 or just not readable fonts or uncontrolable UI).

Offline Crystan

  • Project Artist
  • Captain
  • ***
  • Posts: 572
  • UFO:AI Lead Sound Artist
    • View Profile
    • http://crysea.cr.funpic.de/
Re: UFO:AI Android port
« Reply #42 on: May 28, 2012, 12:21:29 pm »
sounds not working
The most important part of the game does not work! Revolution!!!!! :D

Offline pelya

  • Rookie
  • ***
  • Posts: 22
    • View Profile
Re: UFO:AI Android port
« Reply #43 on: May 28, 2012, 01:31:39 pm »
Yeah, enabling sounds crashes the game, it's a bug, and this does not depend on the amount of RAM.
I'm gonna fix that someday, but right now I'm laaaaaaazy.

Offline CyberSA

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: UFO:AI Android port
« Reply #44 on: September 27, 2012, 10:06:52 am »
Manual Download of PK3 files.

Hi Guys I do not want to download the files via my 3g account and trying via Wirless on my Xoom and it keeps dropping the line and says "Error Writting to . . ."

I have downloaded the files form the Website to my PC and even though I copy them to the tablet it keeps downloading them again and over writing the files i manually copied to the device.

Question: How do I copy the files to the Xoom and make sure the Program sees that the Files are allready downloaded?

Thanks for your help.

(also I would like to mod the PK3 files too so I hope your answer will help me to do this)