davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
97 stars 25 forks source link

Gameboard not appearing #266

Open MCMic opened 3 years ago

MCMic commented 3 years ago

Hello,

I built the game on ArchLinux using the AUR package which builds from git. I had to patch anura to fix https://github.com/anura-engine/anura/issues/316 and an other error about mallinfo being deprecated.

The game menu works fine, I could create an account and connect to it (at least it seemed to work, but it said I was the only one connected to the server).

I tried to start the campaign and click on train, but the gameboard never shows, I see only the background image.

I tried running with --test option and I get:

argentum-age-git --test                                                                                                                                                     13:38:38   master  
INFO: main.cpp:492 : Anura engine version 1.4                                                                                                                                                                                                 
INFO: main.cpp:531 : Default Tile Size: 16                                                                                                                                                                                                    
INFO: main.cpp:532 : Default Tile Scale: 2                                                                                                                                                                                                    
INFO: main.cpp:534 : Build Options:                                                                                                                                                                                                           
INFO: main.cpp:536 :     isomap                                                                                                                                                                                                               
INFO: main.cpp:536 :     lua                                                                                                                                                                                                                  
INFO: main.cpp:536 :     save_png                                                                                                                                                                                                             
INFO: main.cpp:536 :     sdl2                                                                                                                                                                                                                 
INFO: main.cpp:536 :     svg                                                                                                                                                                                                                  
INFO: preferences.cpp:592 : SET PREFERENCES PATH: ~/.argentum-age/                                                                                                                                                                            
INFO: module.cpp:334 : LOOKING IN 'modules/argentum-age/module.cfg': 1                                                                                                                                                                        
INFO: preferences.cpp:592 : SET PREFERENCES PATH: ~/.argentum-age/                                                                                                                                                                            
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: main.cpp:637 : ARGS: --module=argentum-age                                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --auto-size-window                                                                                                                                                                                                 
INFO: main.cpp:637 : ARGS: --auto-size-ideal-width=1920                                                                                                                                                                                       
INFO: main.cpp:637 : ARGS: --auto-size-ideal-height=1080                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --defer-archive-min-window-width=800                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --defer-archive-min-window-height=600                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --auto-anchor-objects                                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --set-fps=60                                                                                                                                                                                                       
INFO: preferences.cpp:1091 : FPS: 60 = 16ms/frame                                                                                                                                                                                             
INFO: main.cpp:637 : ARGS: --no-autopause                                                                                                                                                                                                     
INFO: main.cpp:637 : ARGS: --server=http://theargentlark.com:23456                                                                                                                                                                            
INFO: main.cpp:637 : ARGS: --tbs-server                                                                                                                                                                                                       
INFO: preferences.cpp:1130 : TURN ON internal server                                                                                                                                                                                          
INFO: main.cpp:637 : ARGS: --allow-debug-console-clicking=false                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --disable-global-alpha-filter                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --mouse-drag-threshold=100                                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --loading-screen-bg-color=#16232e                                                                                                                                                                                  
INFO: main.cpp:637 : ARGS: --reload-modified-objects                                                                                                                                                                                          
INFO: main.cpp:637 : ARGS: --start-rumble=false                                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --enable-graphical-fonts=false                                                                                                                                                                                     
INFO: main.cpp:637 : ARGS: --draw-objects-on-even-pixel-boundaries=false                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --allow-builtin-settings-dialog=false                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --disable-fullscreen                                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --max-frame-skips=2                                                                                                                                                                                                
INFO: main.cpp:637 : ARGS: --force-send-stats=false                                                                                                                                                                                           
INFO: main.cpp:637 : ARGS: --devtools=true                                                                                                                                                                                                    
INFO: main.cpp:637 : ARGS: --particle-ui-show-save=false                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --particle-ui-show-camera=false                                                                                                                                                                                    
INFO: main.cpp:637 : ARGS: --particle-ui-2d=true                                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --dump-to-console=false                                                                                                                                                                                            
INFO: main.cpp:637 : ARGS: --defer-archive-desktop-fullscreen=true                                                                                                                                                                            
INFO: main.cpp:637 : ARGS: --log-instrumentation=true                                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --no-tests                                                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --ffl-vm=true                                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --tbs-server                                                                                                                                                                                                       
INFO: preferences.cpp:1130 : TURN ON internal server                                                                                                                                                                                          
INFO: main.cpp:637 : ARGS: --config-path=~/.argentum-age-git                                                                                                                                                                                  
INFO: preferences.cpp:592 : SET PREFERENCES PATH: ~/.argentum-age-git   
INFO: main.cpp:637 : ARGS: --test                                                                                                                                                                                                             
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: main.cpp:771 : Preferences dir: /home/mcmic/.argentum-age-git/                                                                                                                                                                          
INFO: main.cpp:1010 : Initializing fullscreen window: {                                                                                                                                                                                       
        "fullscreen": 1,                                                                                                                                                                                                                      
        "height": 1080,                                                                                                                                                                                                                       
        "renderer": "opengl",                                                                                                                                                                                                                 
        "resizeable": false,                                                                                                                                                                                                                  
        "use_vsync": false,                                                                                                                                                                                                                   
        "width": 1920                                                                                                                                                                                                                         
}                                                                                                                                                                                                                                             
INFO: DisplayDeviceOGL.cpp:199 : OpenGL version: 3.0                                                                                                                                                                                          
INFO: DisplayDeviceOGL.cpp:203 : Maximum texture units: 32                                                                                                                                                                                    
INFO: DisplayDeviceOGL.cpp:220 : OpenGL Extensions:                                                                                                                                                                                           
GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend                                                                                                                                                          
GL_AMD_multi_draw_indirect GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture                                                                                                                                                     
GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_ANGLE_texture_compression_dxt3                                                                                                                                                        
GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_APPLE_packed_pixels                                                                                                                                                            
GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays                                                                                                                                          
GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture
GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage
GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted
GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance
GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture
GL_ARB_derivative_control GL_ARB_draw_buffers GL_ARB_draw_buffers_blend
GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced
GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions
GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object
GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv
GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays
GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata
GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect
GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2
GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object
GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp
GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object
GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects
GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects
GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding
GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote
GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects
GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_texture_image_samples
GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack
GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow
GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_barrier
GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_compression_bptc
GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array
GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_tex
INFO: ure_env_crossbar
GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather
GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample
GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod
GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8
GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view
GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3
GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix
GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object
GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader
GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_window_pos
GL_ATI_blend_equation_separate GL_ATI_draw_buffers GL_ATI_separate_stencil
GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_EGL_image_storage GL_EXT_EGL_sync
GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate
GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture
GL_EXT_demote_to_helper_invocation GL_EXT_direct_state_access GL_EXT_draw_buffers2
GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object
GL_EXT_framebuffer_sRGB GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object
GL_EXT_point_parameters GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_rescale_normal
GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_framebuffer_fetch_non_coherent
GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_shadow_funcs
GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D
GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc
GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod_bias
GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8
GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent
GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback
GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip
GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_INTEL_blackhole_render
GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug
GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behav
INFO: or
GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba
GL_MESA_window_pos GL_NV_blend_square GL_NV_compute_shader_derivatives GL_NV_conditional_render
GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_NV_light_max_exponent
GL_NV_packed_depth_stencil GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier
GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_OES_EGL_image GL_OES_read_format GL_S3_s3tc
GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
GL_SUN_multi_draw_arrays
INFO: main.cpp:1038 : canvas size: 1920x1080
WARN: i18n.cpp:404 : did not find any translation files. locale = fr_FR.UTF-8 , dirname = ./locale/fr/LC_MESSAGES/
INFO: preferences.cpp:608 : GET AUTOSAVE FILE PATH: /home/mcmic/.argentum-age-git/autosave.cfg
INFO: joystick.cpp:117 : Initialized 0 joysticks
INFO: joystick.cpp:118 : Initialized 0 game controllers
INFO: joystick.cpp:119 : Initialized 0 haptic devices
INFO: FontSDL.cpp:60 : Compiled with SDL_ttf version: 2.0.15
INFO: FontSDL.cpp:61 : Linked   with SDL_ttf version: 2.0.15
INFO: hex_loader.cpp:95 : No hex terrain information found. 
load_hex_textures: 0.102888 milliseconds
ERROR: ShadersOGL.cpp:894 : Error compiling shader(card_shadow_fs): 0:21(16): error: no matching function for call to `max(int, float)'; candidates are:
0:21(16): error:    float max(float, float)
0:21(16): error:    vec2 max(vec2, float)                                                                                                                                                                                                     
0:21(16): error:    vec3 max(vec3, float)
0:21(16): error:    vec4 max(vec4, float)
0:21(16): error:    vec2 max(vec2, vec2)
0:21(16): error:    vec3 max(vec3, vec3)
0:21(16): error:    vec4 max(vec4, vec4)
0:21(16): error:    int max(int, int)
0:21(16): error:    ivec2 max(ivec2, int)
0:21(16): error:    ivec3 max(ivec3, int)
0:21(16): error:    ivec4 max(ivec4, int)
0:21(16): error:    ivec2 max(ivec2, ivec2)
0:21(16): error:    ivec3 max(ivec3, ivec3)
0:21(16): error:    ivec4 max(ivec4, ivec4)
0:22(36): warning: `ratio' used uninitialized
0:24(16): error: no matching function for call to `max(int, float)'; candidates are:
0:24(16): error:    float max(float, float)
0:24(16): error:    vec2 max(vec2, float)
0:24(16): error:    vec3 max(vec3, float)
0:24(16): error:    vec4 max(vec4, float)
0:24(16): error:    vec2 max(vec2, vec2)
0:24(16): error:    vec3 max(vec3, vec3)
0:24(16): error:    vec4 max(vec4, vec4)
0:24(16): error:    int max(int, int)
0:24(16): error:    ivec2 max(ivec2, int)
0:24(16): error:    ivec3 max(ivec3, int)
0:24(16): error:    ivec4 max(ivec4, int)
0:24(16): error:    ivec2 max(ivec2, ivec2)
0:24(16): error:    ivec3 max(ivec3, ivec3)
0:24(16): error:    ivec4 max(ivec4, ivec4)
0:25(36): warning: `ratio' used uninitialized

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of card_shadow_fs shader to make it work.
ERROR: ShadersOGL.cpp:894 : Error compiling shader(card_halo_fs): 0:17(16): error: no matching function for call to `max(int, float)'; candidates are:
0:17(16): error:    float max(float, float)
0:17(16): error:    vec2 max(vec2, float)
0:17(16): error:    vec3 max(vec3, float)
0:17(16): error:    vec4 max(vec4, float)
0:17(16): error:    vec2 max(vec2, vec2)
0:17(16): error:    vec3 max(vec3, vec3)
0:17(16): error:    vec4 max(vec4, vec4)
0:17(16): error:    int max(int, int)
0:17(16): error:    ivec2 max(ivec2, int)
0:17(16): error:    ivec3 max(ivec3, int)
0:17(16): error:    ivec4 max(ivec4, int)
0:17(16): error:    ivec2 max(ivec2, ivec2)
0:17(16): error:    ivec3 max(ivec3, ivec3)
0:17(16): error:    ivec4 max(ivec4, ivec4)
0:18(36): warning: `ratio' used uninitialized
0:20(16): error: no matching function for call to `max(int, float)'; candidates are:
0:20(16): error:    float max(float, float)
0:20(16): error:    vec2 max(vec2, float)
0:20(16): error:    vec3 max(vec3, float)
0:20(16): error:    vec4 max(vec4, float)
0:20(16): error:    vec2 max(vec2, vec2)
0:20(16): error:    vec3 max(vec3, vec3)
0:20(16): error:    vec4 max(vec4, vec4)
0:20(16): error:    int max(int, int)
0:20(16): error:    ivec2 max(ivec2, int)
0:20(16): error:    ivec3 max(ivec3, int)
0:20(16): error:    ivec4 max(ivec4, int)
0:20(16): error:    ivec2 max(ivec2, ivec2)
0:20(16): error:    ivec3 max(ivec3, ivec3)
0:20(16): error:    ivec4 max(ivec4, ivec4)
0:21(36): warning: `ratio' used uninitialized

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of card_halo_fs shader to make it work.
ERROR: ShadersOGL.cpp:894 : Error compiling shader(9289fee50faf49f5a71682d8a562c3ce_vs): 0:41(46): error: could not implicitly convert operands to arithmetic operator
0:41(37): error: operands to arithmetic operators must be numeric
0:41(11): error: no matching function for call to `scale_along_angle(vec2, error, float)'; candidates are:
0:41(11): error:    vec2 scale_along_angle(vec2, float, float)

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of 9289fee50faf49f5a71682d8a562c3ce_vs shader to make it work.
ERROR: ShadersOGL.cpp:894 : Error compiling shader(25cd03889e8c490aac15337a98baf6e5_fs): 0:18(18): error: no matching function for call to `max(int, float)'; candidates are:
0:18(18): error:    float max(float, float)
0:18(18): error:    vec2 max(vec2, float)
0:18(18): error:    vec3 max(vec3, float)
0:18(18): error:    vec4 max(vec4, float)
0:18(18): error:    vec2 max(vec2, vec2)
0:18(18): error:    vec3 max(vec3, vec3)
0:18(18): error:    vec4 max(vec4, vec4)
0:18(18): error:    int max(int, int)
0:18(18): error:    ivec2 max(ivec2, int)
0:18(18): error:    ivec3 max(ivec3, int)
0:18(18): error:    ivec4 max(ivec4, int)
0:18(18): error:    ivec2 max(ivec2, ivec2)
0:18(18): error:    ivec3 max(ivec3, ivec3)
0:18(18): error:    ivec4 max(ivec4, ivec4)
0:18(10): error: operands to arithmetic operators must be numeric

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of 25cd03889e8c490aac15337a98baf6e5_fs shader to make it work.
ERROR: ShadersOGL.cpp:894 : Error compiling shader(f9d83013195a4597aa951fd6ed8a2379_fs): 0:38(2): error: initializer of type int cannot be assigned to variable of type float

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of f9d83013195a4597aa951fd6ed8a2379_fs shader to make it work.
INFO: main.cpp:1182 : finishloading()
INFO: theme_imgui.cpp:311 : Failed to read file: /home/mcmic/.argentum-age-git/data/imgui.cfg : PARSE ERROR: /home/mcmic/.argentum-age-git/data/imgui.cfg: Could not find file /home/mcmic/.argentum-age-git/data/imgui.cfg
INFO: level.cpp:383 : in level constructor...
INFO: level.cpp:505 : building...4957
INFO: level.cpp:515 : done building...4957
INFO: level.cpp:545 : done building tile_map...4957
INFO: level.cpp:680 : done level constructor: 2
INFO: controls.cpp:198 : SET STARTING CYCLES: 0
INFO: formula_function.cpp:4884 : LOG: 'game created'
INFO: formula_function.cpp:4884 : LOG: ['request_initial', false]

And the same behavior with only background image.

galegosimpatico commented 3 years ago

Some of those bugs maybe go away when replacing some integer zeros for floating zeros in data/objects/card.cfg... Arch is too difficult for me, but if you can code, I can try to assist and maybe help you walk a way towards a pull request.

Else someone else will eventually fix these easily, but can't tell dates for that.

Thanks for reporting!

MCMic commented 3 years ago

I tried this:

diff '--color=auto' /usr/share/anura-git/modules/argentum-age/data/objects/arrow.cfg ./data/objects/arrow.cfg
99c99
<                               alpha = alpha * max(0.0, left / alpha_fade);
---
>                               alpha = alpha * max(0, left / alpha_fade);
diff '--color=auto' /usr/share/anura-git/modules/argentum-age/data/objects/card.cfg ./data/objects/card.cfg
1777c1777
<                                       float ratio = max(0.0, (u - left_edge)/edge);
---
>                                       float ratio = max(0, (u - left_edge)/edge);
1780c1780
<                                       float ratio = max(0.0, (right_edge - u)/edge);
---
>                                       float ratio = max(0, (right_edge - u)/edge);
1860c1860
<                                       float ratio = max(0.0, (u - left_edge)/u_edge);
---
>                                       float ratio = max(0, (u - left_edge)/u_edge);
1863c1863
<                                       float ratio = max(0.0, (right_edge - u)/u_edge);
---
>                                       float ratio = max(0, (right_edge - u)/u_edge);
diff '--color=auto' /usr/share/anura-git/modules/argentum-age/data/objects/creature.cfg ./data/objects/creature.cfg
2183c2183
<                               vertex = scale_along_angle(vertex, rotate + 90.0 * 0.0174533, u_property_scale_x);
---
>                               vertex = scale_along_angle(vertex, rotate + 90*0.0174533, u_property_scale_x);

Less errors but still no gameboard appearing, output of --test:

INFO: main.cpp:492 : Anura engine version 1.4                                                                                                                                                                                                 
INFO: main.cpp:531 : Default Tile Size: 16                                                                                                                                                                                                    
INFO: main.cpp:532 : Default Tile Scale: 2                                                                                                                                                                                                    
INFO: main.cpp:534 : Build Options:   
INFO: main.cpp:536 :     isomap                                                                                                                                                                                                      [111/119]
INFO: main.cpp:536 :     lua                                                                                                                                                                                                                  
INFO: main.cpp:536 :     save_png                                                                                                                                                                                                             
INFO: main.cpp:536 :     sdl2                                                                                                                                                                                                                 
INFO: main.cpp:536 :     svg                                                                                                                                                                                                                  
INFO: preferences.cpp:592 : SET PREFERENCES PATH: ~/.argentum-age/                                                                                                                                                                            
INFO: module.cpp:334 : LOOKING IN 'modules/argentum-age/module.cfg': 1                                                                                                                                                                        
INFO: preferences.cpp:592 : SET PREFERENCES PATH: ~/.argentum-age/                                                                                                                                                                            
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: main.cpp:637 : ARGS: --module=argentum-age                                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --auto-size-window                                                                                                                                                                                                 
INFO: main.cpp:637 : ARGS: --auto-size-ideal-width=1920                                                                                                                                                                                       
INFO: main.cpp:637 : ARGS: --auto-size-ideal-height=1080                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --defer-archive-min-window-width=800                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --defer-archive-min-window-height=600                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --auto-anchor-objects                                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --set-fps=60                                                                                                                                                                                                       
INFO: preferences.cpp:1091 : FPS: 60 = 16ms/frame                                                                                                                                                                                             
INFO: main.cpp:637 : ARGS: --no-autopause                                                                                                                                                                                                     
INFO: main.cpp:637 : ARGS: --server=http://theargentlark.com:23456                                                                                                                                                                            
INFO: main.cpp:637 : ARGS: --tbs-server                                                                                                                                                                                                       
INFO: preferences.cpp:1130 : TURN ON internal server                                                                                                                                                                                          
INFO: main.cpp:637 : ARGS: --allow-debug-console-clicking=false                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --disable-global-alpha-filter                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --mouse-drag-threshold=100                                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --loading-screen-bg-color=#16232e                                                                                                                                                                                  
INFO: main.cpp:637 : ARGS: --reload-modified-objects                                                                                                                                                                                          
INFO: main.cpp:637 : ARGS: --start-rumble=false                                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --enable-graphical-fonts=false                                                                                                                                                                                     
INFO: main.cpp:637 : ARGS: --draw-objects-on-even-pixel-boundaries=false                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --allow-builtin-settings-dialog=false                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --disable-fullscreen                                                                                                                                                                                               
INFO: main.cpp:637 : ARGS: --max-frame-skips=2                                                                                                                                                                                                
INFO: main.cpp:637 : ARGS: --force-send-stats=false                                                                                                                                                                                           
INFO: main.cpp:637 : ARGS: --devtools=true                                                                                                                                                                                                    
INFO: main.cpp:637 : ARGS: --particle-ui-show-save=false                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --particle-ui-show-camera=false                                                                                                                                                                                    
INFO: main.cpp:637 : ARGS: --particle-ui-2d=true                                                                                                                                                                                              
INFO: main.cpp:637 : ARGS: --dump-to-console=false                                                                                                                                                                                            
INFO: main.cpp:637 : ARGS: --defer-archive-desktop-fullscreen=true                                                                                                                                                                            
INFO: main.cpp:637 : ARGS: --log-instrumentation=true                                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --no-tests                                                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --ffl-vm=true                                                                                                                                                                                                      
INFO: main.cpp:637 : ARGS: --tbs-server                                                                                                                                                                                                       
INFO: preferences.cpp:1130 : TURN ON internal server                                                                                                                                                                                          
INFO: main.cpp:637 : ARGS: --config-path=~/.argentum-age-git                                                                                                                                                                                  
INFO: preferences.cpp:592 : SET PREFERENCES PATH: ~/.argentum-age-git                                                                                                                                                                         
INFO: main.cpp:637 : ARGS: --test                                                                                                                                                                                                             
INFO: preferences.cpp:646 : EXPAND DATA PATHS                                                                                                                                                                                                 
INFO: main.cpp:771 : Preferences dir: /home/mcmic/.argentum-age-git/                                                                                                                                                                          
INFO: main.cpp:1010 : Initializing fullscreen window: {                                                                                                                                                                                       
        "fullscreen": 1,
        "height": 1080,                                                                                                                                                                                                               [55/119]
        "renderer": "opengl",                                                                                                                                                                                                                 
        "resizeable": false,                                                                                                                                                                                                                  
        "use_vsync": false,                                                                                                                                                                                                                   
        "width": 1920                                                                                                                                                                                                                         
}                                                                                                                                                                                                                                             
INFO: DisplayDeviceOGL.cpp:199 : OpenGL version: 3.0                                                                                                                                                                                          
INFO: DisplayDeviceOGL.cpp:203 : Maximum texture units: 32                                                                                                                                                                                    
INFO: DisplayDeviceOGL.cpp:220 : OpenGL Extensions:                                                                                                                                                                                           
GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend                                                                                                                                                          
GL_AMD_multi_draw_indirect GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture                                                                                                                                                     
GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_ANGLE_texture_compression_dxt3                                                                                                                                                        
GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_APPLE_packed_pixels                                                                                                                                                            
GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays                                                                                                                                          
GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture                                                                                                                                              
GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage                                                                                                                                                         
GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted                                                                                                                                                   
GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance                                                                                                                                                           
GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture                                                                                                                                                         
GL_ARB_derivative_control GL_ARB_draw_buffers GL_ARB_draw_buffers_blend                                                                                                                                                                       
GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced                                                                                                                                                                   
GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions                                                                                                                                            
GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow                                                                                                                                                         
GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object                                                                                                                                                            
GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv                                                                                                                                                
GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays                                                                                                                                           
GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata                                                                                                                                                            
GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect                                                                                                                                              
GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2                                                                                                                                                         
GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object                                                                                                                                                    
GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp                                                                                                                                                                       
GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object                                                                                                                                                             
GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects                                                                                                                                           
GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects                                                                                                                                                   
GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding                                                                                                                                                     
GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote                                                                                                                                                                    
GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects                                                                                                                                                                 
GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_texture_image_samples                                                                                                                                               
GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack                                                                                                                                                         
GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow                                                                                                                                                                 
GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_barrier                                                                                                                                                           
GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_compression_bptc                                                                                                                                                        
GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array                                                                                                                                                         
GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_tex                                                                                                                                                                                  
INFO: ure_env_crossbar                                                                                                                                                                                                                        
GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather                                                                                                                                          
GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample                                                                                                                                                 
GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod                                                                                                                                                          
GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8                                                                                                                                                  
GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view                                                                                                                                          
GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3                                                                                                                                                                      
GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix                                                                                                                                          
GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object                                                                                                                                                              
GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader                                                                                                                                           
GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_window_pos
GL_ATI_blend_equation_separate GL_ATI_draw_buffers GL_ATI_separate_stencil
GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_EGL_image_storage GL_EXT_EGL_sync
GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate
GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture
GL_EXT_demote_to_helper_invocation GL_EXT_direct_state_access GL_EXT_draw_buffers2
GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object
GL_EXT_framebuffer_sRGB GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object
GL_EXT_point_parameters GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_rescale_normal
GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_framebuffer_fetch_non_coherent
GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_shadow_funcs
GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D
GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc
GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod_bias
GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8
GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent
GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback
GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip
GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_INTEL_blackhole_render
GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug
GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behav
INFO: or
GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba
GL_MESA_window_pos GL_NV_blend_square GL_NV_compute_shader_derivatives GL_NV_conditional_render
GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_NV_light_max_exponent
GL_NV_packed_depth_stencil GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_barrier
GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_OES_EGL_image GL_OES_read_format GL_S3_s3tc
GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
GL_SUN_multi_draw_arrays
INFO: main.cpp:1038 : canvas size: 1920x1080
WARN: i18n.cpp:404 : did not find any translation files. locale = fr_FR.UTF-8 , dirname = ./locale/fr/LC_MESSAGES/
INFO: preferences.cpp:608 : GET AUTOSAVE FILE PATH: /home/mcmic/.argentum-age-git/autosave.cfg
INFO: joystick.cpp:117 : Initialized 0 joysticks
INFO: joystick.cpp:118 : Initialized 0 game controllers
INFO: joystick.cpp:119 : Initialized 0 haptic devices
INFO: FontSDL.cpp:60 : Compiled with SDL_ttf version: 2.0.15
INFO: FontSDL.cpp:61 : Linked   with SDL_ttf version: 2.0.15
INFO: hex_loader.cpp:95 : No hex terrain information found.
load_hex_textures: 0.1093 milliseconds
ERROR: ShadersOGL.cpp:894 : Error compiling shader(833ee0e04dfe44bf88420138a1009786_fs): 0:38(2): error: initializer of type int cannot be assigned to variable of type float

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of 833ee0e04dfe44bf88420138a1009786_fs shader to make it work.
INFO: main.cpp:1182 : finishloading()
INFO: theme_imgui.cpp:311 : Failed to read file: /home/mcmic/.argentum-age-git/data/imgui.cfg : PARSE ERROR: /home/mcmic/.argentum-age-git/data/imgui.cfg: Could not find file /home/mcmic/.argentum-age-git/data/imgui.cfg
INFO: level.cpp:383 : in level constructor...
INFO: level.cpp:505 : building...5026
INFO: level.cpp:515 : done building...5026
INFO: level.cpp:545 : done building tile_map...5026
INFO: level.cpp:680 : done level constructor: 1
INFO: controls.cpp:198 : SET STARTING CYCLES: 0
INFO: formula_function.cpp:4884 : LOG: 'game created'
INFO: formula_function.cpp:4884 : LOG: ['request_initial', false]
INFO: formula_profiler.cpp:1337 : END PROFILING: 0
INFO: preferences.cpp:1008 : WRITE PREFS: /home/mcmic/.argentum-age-git/preferences.cfg
INFO: tbs_internal_server.cpp:287 : Child process 16571 reaped
INFO: checksum.cpp:89 : EXITING WITH UNVERIFIED SESSION
galegosimpatico commented 3 years ago

I think it's still protesting some int initializer to a float variable, but unluckily the offending line number seems lost.

In creature_shader at data/objects/creature.cfg, there are several mod(2) ops, I don't know if some of those might be turning floats to integers. If so those should get away by summing them a 0.0.

I suppose possible candidates could also be: https://github.com/davewx7/citadel/blob/49376c8184b683bc253aac6bdf414eb65194b2fd/data/shaders.cfg#L458

Or: https://github.com/davewx7/citadel/blob/49376c8184b683bc253aac6bdf414eb65194b2fd/data/shaders.cfg#L512

Maybe these: https://github.com/davewx7/citadel/blob/49376c8184b683bc253aac6bdf414eb65194b2fd/data/shaders.cfg#L777-L779

I guess one could shrink the haystack by disabling all shaders and enabling them one by one. But I really don't know. Sorry. :(

MCMic commented 3 years ago

I tried these changes, it does not fix the error :-/

MCMic commented 3 years ago

It seems the problem is https://github.com/anura-engine/anura/issues/301

If I start the test as root I get the gameboard and I can play.