Technical support > Mac

ufoai 2.3 on OSX PPC Leopard - save game fails

(1/5) > >>

virag0:
Hi,
I have compiled ufoai-2.3 for PPC on my late 2005 G5 (dual core pciE model) and it seems to work fine in skirmish and campaign
mode, to the point where I wanted to upload it somewhere so those people who can't get it running would have one to play with, but
I have reached one show-stopper I am hoping to get help with.

For now, I will just explain the problem and then dump some logs later when I am back on the console, but the problem
occurs when saving the game to any of the Campaign save slots.   The console reports that the file is created and then
corrupted.   I tried looking at the files uncompressed and they look like they have a full <xml> tagset with nothing
seemingly missing but the game reports that the header on these files is corrupted.

When I save the game into different slots without quitting, it seems to load them although the text field for the
slot is not displayed properly until you click the mouse.    Quitting then never allows the save files to be accessed
again.   Also, the files seemingly get generated at different lengths, so I am not sure if that is correct or not.

It is almost like the file is being opened but never properly let go or closed or something, but a  look
at the cp_save.c doesn't elicit any clues.   I am hoping that someone has a fix because everything
else is working fine.   When I try to compile 2.4-dev it will make, but runs like a hairy goat and
doesn't appear to like my G5 yet at all.....  ...so I am hoping to get this final 2.3 problem sorted!


Cheers....

virag0:
Here is the console log for the savegame problem. 
I am not sure what release I compiled but i am pretty sure it was the 2.3 stable version.

zathras:/tmp 186> cat /tmp/ufoconsole.log
2010/09/03 02:28:23 ----- network initialization -------
2010/09/03 02:28:23 libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19 initialized.
2010/09/03 02:28:23 ------ server initialization -------
2010/09/03 02:28:23 added 7 maps to the mapcycle
2010/09/03 02:28:23 ----- console initialization -------
2010/09/03 02:28:23 Console initialized.
2010/09/03 02:28:23 ------- video initialization -------
2010/09/03 02:28:23 SDL version: 1.2.14
2010/09/03 02:28:23 I: desktop depth: 32bpp
2010/09/03 02:28:23 I: video memory: 0
2010/09/03 02:28:23 I: Available resolutions: 1280x1024 1280x960 1280x768 1024x768 800x600 640x480 (6)
2010/09/03 02:28:23 I: video driver: Quartz
2010/09/03 02:28:23 I: setting mode 3
2010/09/03 02:28:23 I: set multisample buffers to 2
2010/09/03 02:28:23 I: set swap control to 0
2010/09/03 02:28:23 I: 1024x768 (fullscreen: no)
2010/09/03 02:28:23 I: got 8 bits of stencil
2010/09/03 02:28:23 I: got 24 bits of depth buffer
2010/09/03 02:28:23 I: got double buffer
2010/09/03 02:28:23 I: got 8 bits for red
2010/09/03 02:28:23 I: got 8 bits for green
2010/09/03 02:28:23 I: got 8 bits for blue
2010/09/03 02:28:23 I: got 8 bits for alpha
2010/09/03 02:28:23 I: got 2 multisample buffers
GL_VENDOR: NVIDIA Corporation2010/09/03 02:28:23 GL_RENDERER: NVIDIA GeForce 6600 OpenGL Engine2010/09/03 02:28:23 GL_VERSION: 2.0 NVIDIA-1.5.482010/09/03 02:28:23 GL_EXTENSIONS: GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4 GL_EXT_transform_feedback GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_APPLE_aux_depth_stencil GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_draw_buffers GL_ARB_shader_texture_lod GL_EXT_compiled_vertex_array GL_EXT_framebuffer_object GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_depth_bounds_test GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp GL_EXT_packed_depth_stencil GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float GL_ARB_half_float_pixel GL_APPLE_pixel_buffer GL_APPLE_object_purgeable GL_NV_point_sprite GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_blend_square GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_fog_distance GL_NV_depth_clamp GL_NV_multisample_filter_hint GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_ATI_texture_mirror_once GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod 2010/09/03 02:28:23 2010/09/03 02:28:23 using GL_ARB_texture_non_power_of_two
2010/09/03 02:28:23 using GL_ARB_shading_language_100
2010/09/03 02:28:23 GLSL Version: 1.20
2010/09/03 02:28:23 using GL_ARB_framebuffer_object
2010/09/03 02:28:23 max draw buffers: 4
2010/09/03 02:28:23 max render buffer size: 4096
2010/09/03 02:28:23 max color attachments: 4
2010/09/03 02:28:23 using GL_ARB_draw_buffers
2010/09/03 02:28:23 max supported lights: 8
2010/09/03 02:28:23 max texture units: 4
2010/09/03 02:28:23 max texture coords: 8
2010/09/03 02:28:23 max vertex attributes: 16
2010/09/03 02:28:23 max texture size: detected 4096
2010/09/03 02:28:23 ...but using 1024 as requested
2010/09/03 02:28:23 Using low resolution globe textures as requested.
2010/09/03 02:28:23 SDL_image version 1.2.10
2010/09/03 02:28:24 SDL_ttf version 2.0.9 - we need at least 2.0.7
2010/09/03 02:28:24 ------- sound initialization -------
2010/09/03 02:28:24 SDL_mixer version: 1.2.11
2010/09/03 02:28:24 ... requested audio rate: 44100
2010/09/03 02:28:24 ... driver: 'coreaudio'
2010/09/03 02:28:24 ... audio rate: 44100
2010/09/03 02:28:24 ... audio channels: 2
2010/09/03 02:28:24 ... loaded ogg vorbis support
2010/09/03 02:28:24 ------- input initialization -------
2010/09/03 02:28:25 0 possible joysticks
2010/09/03 02:28:25 no joystick found.
2010/09/03 02:28:25 ----------- parse scripts ----------
2010/09/03 02:28:25 50 script files
2010/09/03 02:28:25 47 ui script files
2010/09/03 02:28:28 Shared Client/Server Info loaded
2010/09/03 02:28:28 ... 99 items parsed
2010/09/03 02:28:28 ... 32 damage types parsed
2010/09/03 02:28:28 ... 80 map definitions parsed
2010/09/03 02:28:28 ... 29 equipment definitions parsed
2010/09/03 02:28:28 ... 10 inventory definitions parsed
2010/09/03 02:28:28 ... 20 team definitions parsed
2010/09/03 02:28:28 executing keys.cfg
2010/09/03 02:28:28 music change to van_theme (from PsymongN3)
2010/09/03 02:29:03 CL_LanguageInit: language settings are stored in configuration: en
2010/09/03 02:29:03 ...using language: en_US.UTF-8
2010/09/03 02:29:03 SDL_ttf version 2.0.9 - we need at least 2.0.7
2010/09/03 02:29:03 ...registering 10 fonts
2010/09/03 02:29:03 134 static models loaded
2010/09/03 02:29:04 ====== UFO Initialized ======
2010/09/03 02:29:04 =============================
2010/09/03 02:29:04 Switch grab input off
2010/09/03 02:29:06 Change gametype to 'Skirmish mode'
2010/09/03 02:29:08 Shutdown gametype 'Skirmish mode'
2010/09/03 02:29:08 Change gametype to 'Campaign mode'
2010/09/03 02:29:08 --- save subsystem initialization --
2010/09/03 02:29:08 added base subsystem
2010/09/03 02:29:08 added research subsystem
2010/09/03 02:29:08 added campaign subsystem
2010/09/03 02:29:08 added hospital subsystem
2010/09/03 02:29:08 added market subsystem
2010/09/03 02:29:08 added employee subsystem
2010/09/03 02:29:08 added aliencont subsystem
2010/09/03 02:29:08 added aircraft subsystem
2010/09/03 02:29:08 added installation subsystem
2010/09/03 02:29:08 added ufostores subsystem
2010/09/03 02:29:08 added production subsystem
2010/09/03 02:29:08 added messagesystem subsystem
2010/09/03 02:29:08 added stats subsystem
2010/09/03 02:29:08 added nations subsystem
2010/09/03 02:29:08 added transfer subsystem
2010/09/03 02:29:08 added alien base subsystem
2010/09/03 02:29:08 added xvirate subsystem
2010/09/03 02:29:08 added messageoptions subsystem
2010/09/03 02:29:08 Campaign data loaded - size 4458784 bytes
2010/09/03 02:29:08 ...techs: 189
2010/09/03 02:29:08 ...buildings: 19
2010/09/03 02:29:08 ...ranks: 16
2010/09/03 02:29:08 ...nations: 8
2010/09/03 02:29:08 ...cities: 457
2010/09/03 02:29:08 2010/09/03 02:29:10 Savegame header for slot0 is corrupted!
2010/09/03 02:29:10 Savegame header for slot1 is corrupted!
2010/09/03 02:29:10 Savegame header for slot2 is corrupted!
2010/09/03 02:29:11 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:11 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:11 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:11 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:12 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:12 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:13 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:13 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:13 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:14 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:16 Savegame header for slot0 is corrupted!
2010/09/03 02:29:16 Savegame header for slot1 is corrupted!
2010/09/03 02:29:16 Savegame header for slot2 is corrupted!
2010/09/03 02:29:18 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:19 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:20 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:21 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:21 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:21 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:21 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:25 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:26 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:27 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:28 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:29 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:29 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:29 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:30 Unknown command "game_timestop" - wasn't sent to server
2010/09/03 02:29:32 Wrote config.cfg.
2010/09/03 02:29:32 Shutdown gametype 'Campaign mode'
2010/09/03 02:29:32 Wrote keys.cfg

virag0:
More info,
When I go to load the game and click the mouse inside the text field
to select a savegame slot, there is no text, but the mouse click
sends this message instead:

Unknown command "game_timestop" - wasn't sent to server

Is anyone else having problems with their save games on OSX PPC Leopard?


rachel

geever:
This must be some endian problem. Please open a ticket on the bugracker and upload your savegame there.

-geever

Mattn:
endian problem with xml? maybe the header file - please attach the savegame

Navigation

[0] Message Index

[#] Next page

Go to full version