NPBruce / valkyrie

Valkyrie GM for Fantasy Flight Board Games
Apache License 2.0
506 stars 105 forks source link

[Bug] Localization is not loaded on subquests #1523

Open malkavk opened 3 years ago

malkavk commented 3 years ago

Describe the bug

My default interface language is Portuguese. Creating a scenario with onjust one map there is no problem. Creating a scenario that have multiples sub maps (like on "Valkyrie Examples and Demos"), when a user uses a different interface language and that translation file does not exists, default language file is not loaded on sub maps.

Scenario

https://github.com/malkavk/ConversaDeBebado

Steps to reproduce the behavior:

  1. Go to 'Options'
  2. Click on any language different from Portuguese (here I will use English)
  3. Click on 'Back'
  4. Click on 'New game'
  5. Scroll down to "Conversa de Bêbado"
  6. Click on green arrow at right side
  7. Click on 'Start'
  8. Select some investigators
  9. Click on 'Finished'
  10. Click on 'Finished'

Expected behavior

On right side of the screen text should appear.

LogFile

Desktop is 1366 x 768 @ 60 Hz Initialize engine version: 2018.4.29f1 (50cce2edf27f) GfxDevice: creating device client; threaded=1 Renderer: Mesa Intel(R) HD Graphics 620 (KBL GT2) Vendor: Intel Version: 4.6 (Core Profile) Mesa 21.1.7 GLES: 0 GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control 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_derivative_control GL_ARB_direct_state_access 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_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock 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_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 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_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_po int_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage 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_ballot 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_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier G L_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge 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_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewpor t_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_demote_to_helper_invocation GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer 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_ti mer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_blackhole_render GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_framebuffer_flip_y GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_fragment_shader_interlock GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc OPENGL LOG: Creating OpenGL 4.6 graphics device ; Context level <OpenGL 4.5> ; Context handle 52074368 Begin MonoManager ReloadAssembly

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 5 Unused Serialized files (Serialized files now loaded: 0) Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/Advapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/Advapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/advapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/advapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libadvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/Advapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/Advapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/Advapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/Advapi32 Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll.so Fallback handler could not load library /home/jack/Aplicativos/valkyrie/valkyrie_Data/Mono/libAdvapi32.dll Asset location: /Road to Legend_Data

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Could not find main assets file: /Road to Legend_Data/resources.assets

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

FFG D2E not found.

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Asset location: /Mansions of Madness_Data

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Could not find main assets file: /Mansions of Madness_Data/resources.assets

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

FFG MoM not found.

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 616. Total: 0,794000 ms (FindLiveObjects: 0,172000 ms CreateObjectMapping: 0,015000 ms MarkObjects: 0,597000 ms DeleteObjects: 0,009000 ms)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 616. Total: 0,705000 ms (FindLiveObjects: 0,167000 ms CreateObjectMapping: 0,015000 ms MarkObjects: 0,518000 ms DeleteObjects: 0,004000 ms)

Setting up 2 worker threads for Enlighten. Thread -> id: 7f37f3fff640 -> priority: 1 Thread -> id: 7f37f37fe640 -> priority: 1 INFO: Start game as MoM

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)

Unloading 7 unused Assets to reduce memory usage. Loaded Objects now: 669. Total: 11,364000 ms (FindLiveObjects: 0,214000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 11,081000 ms DeleteObjects: 0,046000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 670. Total: 10,653000 ms (FindLiveObjects: 0,239000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 10,386000 ms DeleteObjects: 0,006000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 670. Total: 10,788000 ms (FindLiveObjects: 0,229000 ms CreateObjectMapping: 0,017000 ms MarkObjects: 10,536000 ms DeleteObjects: 0,006000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 670. Total: 10,295000 ms (FindLiveObjects: 0,204000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 10,063000 ms DeleteObjects: 0,005000 ms)

INFO: Accessing quests

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0) INFO: Sorting through stats data available for 103 scenarios

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 799. Total: 11,744000 ms (FindLiveObjects: 0,180000 ms CreateObjectMapping: 0,024000 ms MarkObjects: 11,533000 ms DeleteObjects: 0,007000 ms)

INFO: Select quest ConversaDeBebado

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0) INFO: ... and launch online quest

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 752 unused Assets to reduce memory usage. Loaded Objects now: 841. Total: 12,862000 ms (FindLiveObjects: 0,229000 ms CreateObjectMapping: 0,048000 ms MarkObjects: 11,917000 ms DeleteObjects: 0,667000 ms)

INFO: Start quest from details screen

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

INFO: Moving to hero selection screen

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0) Loading quest from: "/tmp/Valkyrie/ConversaDeBebado.valkyrie/quest.ini"

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 1509. Total: 13,339000 ms (FindLiveObjects: 0,252000 ms CreateObjectMapping: 0,033000 ms MarkObjects: 13,020000 ms DeleteObjects: 0,032000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1509. Total: 13,530000 ms (FindLiveObjects: 0,240000 ms CreateObjectMapping: 0,025000 ms MarkObjects: 13,257000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1509. Total: 13,288000 ms (FindLiveObjects: 0,291000 ms CreateObjectMapping: 0,036000 ms MarkObjects: 12,952000 ms DeleteObjects: 0,008000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 73 unused Assets to reduce memory usage. Loaded Objects now: 747. Total: 12,446000 ms (FindLiveObjects: 0,227000 ms CreateObjectMapping: 0,033000 ms MarkObjects: 12,064000 ms DeleteObjects: 0,122000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0) Loading quest from: "/tmp/Valkyrie/ConversaDeBebado.valkyrie/ConversaDeBebado-V08/quest.ini"

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Key not found: UIPrologueText.uitext

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Key not found: quest.name

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 4 unused Assets to reduce memory usage. Loaded Objects now: 763. Total: 14,402000 ms (FindLiveObjects: 0,197000 ms CreateObjectMapping: 0,031000 ms MarkObjects: 14,134000 ms DeleteObjects: 0,039000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0) Key not found: quest.name

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 39 unused Assets to reduce memory usage. Loaded Objects now: 934. Total: 12,613000 ms (FindLiveObjects: 0,190000 ms CreateObjectMapping: 0,024000 ms MarkObjects: 12,303000 ms DeleteObjects: 0,096000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 18 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,594000 ms (FindLiveObjects: 0,229000 ms CreateObjectMapping: 0,030000 ms MarkObjects: 12,203000 ms DeleteObjects: 0,131000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,255000 ms (FindLiveObjects: 0,186000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 12,040000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,117000 ms (FindLiveObjects: 0,184000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 11,903000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,102000 ms (FindLiveObjects: 0,197000 ms CreateObjectMapping: 0,023000 ms MarkObjects: 11,875000 ms DeleteObjects: 0,007000 ms)

INFO: Accessing config

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 1132. Total: 12,230000 ms (FindLiveObjects: 0,203000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 11,976000 ms DeleteObjects: 0,027000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1132. Total: 12,319000 ms (FindLiveObjects: 0,204000 ms CreateObjectMapping: 0,025000 ms MarkObjects: 12,082000 ms DeleteObjects: 0,007000 ms)

new current language stablished:Portuguese

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 6 unused Assets to reduce memory usage. Loaded Objects now: 1132. Total: 11,988000 ms (FindLiveObjects: 0,212000 ms CreateObjectMapping: 0,024000 ms MarkObjects: 11,716000 ms DeleteObjects: 0,035000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1132. Total: 12,077000 ms (FindLiveObjects: 0,203000 ms CreateObjectMapping: 0,024000 ms MarkObjects: 11,843000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 10 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,575000 ms (FindLiveObjects: 0,238000 ms CreateObjectMapping: 0,031000 ms MarkObjects: 12,246000 ms DeleteObjects: 0,059000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 11,919000 ms (FindLiveObjects: 0,237000 ms CreateObjectMapping: 0,025000 ms MarkObjects: 11,637000 ms DeleteObjects: 0,019000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,096000 ms (FindLiveObjects: 0,227000 ms CreateObjectMapping: 0,025000 ms MarkObjects: 11,837000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 11,979000 ms (FindLiveObjects: 0,236000 ms CreateObjectMapping: 0,031000 ms MarkObjects: 11,704000 ms DeleteObjects: 0,006000 ms)

INFO: Accessing quests

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0) INFO: Sorting through stats data available for 103 scenarios

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 996. Total: 12,854000 ms (FindLiveObjects: 0,242000 ms CreateObjectMapping: 0,031000 ms MarkObjects: 12,544000 ms DeleteObjects: 0,036000 ms)

INFO: Select quest ConversaDeBebado

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0) INFO: ... and launch online quest

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 750 unused Assets to reduce memory usage. Loaded Objects now: 862. Total: 13,492000 ms (FindLiveObjects: 0,231000 ms CreateObjectMapping: 0,054000 ms MarkObjects: 12,578000 ms DeleteObjects: 0,628000 ms)

INFO: Start quest from details screen

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

INFO: Moving to hero selection screen

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0) Loading quest from: "/tmp/Valkyrie/ConversaDeBebado.valkyrie/quest.ini"

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 1530. Total: 13,951000 ms (FindLiveObjects: 0,236000 ms CreateObjectMapping: 0,026000 ms MarkObjects: 13,655000 ms DeleteObjects: 0,033000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1530. Total: 13,963000 ms (FindLiveObjects: 0,228000 ms CreateObjectMapping: 0,026000 ms MarkObjects: 13,699000 ms DeleteObjects: 0,008000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1530. Total: 13,894000 ms (FindLiveObjects: 0,226000 ms CreateObjectMapping: 0,026000 ms MarkObjects: 13,634000 ms DeleteObjects: 0,008000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 64 unused Assets to reduce memory usage. Loaded Objects now: 768. Total: 13,078000 ms (FindLiveObjects: 0,183000 ms CreateObjectMapping: 0,026000 ms MarkObjects: 12,763000 ms DeleteObjects: 0,104000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0) Loading quest from: "/tmp/Valkyrie/ConversaDeBebado.valkyrie/ConversaDeBebado-V03/quest.ini"

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unloading 5 unused Assets to reduce memory usage. Loaded Objects now: 763. Total: 24,781000 ms (FindLiveObjects: 0,320000 ms CreateObjectMapping: 0,031000 ms MarkObjects: 21,351000 ms DeleteObjects: 3,077000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 39 unused Assets to reduce memory usage. Loaded Objects now: 934. Total: 18,510000 ms (FindLiveObjects: 0,245000 ms CreateObjectMapping: 0,038000 ms MarkObjects: 18,129000 ms DeleteObjects: 0,098000 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)

Unloading 18 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,617000 ms (FindLiveObjects: 0,231000 ms CreateObjectMapping: 0,029000 ms MarkObjects: 12,226000 ms DeleteObjects: 0,131000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,054000 ms (FindLiveObjects: 0,231000 ms CreateObjectMapping: 0,026000 ms MarkObjects: 11,789000 ms DeleteObjects: 0,006000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,249000 ms (FindLiveObjects: 0,190000 ms CreateObjectMapping: 0,021000 ms MarkObjects: 12,030000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 12,167000 ms (FindLiveObjects: 0,201000 ms CreateObjectMapping: 0,022000 ms MarkObjects: 11,937000 ms DeleteObjects: 0,007000 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 869. Total: 11,870000 ms (FindLiveObjects: 0,182000 ms CreateObjectMapping: 0,021000 ms MarkObjects: 11,660000 ms DeleteObjects: 0,007000 ms)

Screenshots

English: Captura de tela de 2021-08-26 10-31-39 Portuguese: Captura de tela de 2021-08-26 10-32-14

Valkyrie Version

2.5.6

Desktop

Smartphone

Additional context

This scenario has 9 different maps. These maps use the same tiles and tokens, but with different placements. Except for the mission title (to make scenario edition easier), all tuples (interface elements - text) are the same. Different configurations were tested:

  1. Current configuration
  2. Edit one of the localization files, leaving same quest title and copying the file to all directories (including the root directory and replacing the original localization files)
  3. Remove all localization files from subdirectories and leaving only an edited version in the root directory
  4. Remove all localization files from the subdirectories, leave only an edited version in the root directory and editing the quest.ini files in submaps directories and making then point to the file in the root directory
  5. Rename all files in the subdirectories (adding a different prefix for each submap), move them to the root directory, edit each quest.ini file to point to the correct files (adding submap prefix) and using the same localization file (just one)
  6. Copy one of the submaps to the editor directory, set Hidden to False

With the exception of the 6th test, all the others got the same error. On Editor this issue doesn't happen.

antontimmermans commented 3 years ago

I am not sure if this way of supporting alternate layouts is possible with Valkyrie. It would be interesting though with the sub-directories for alternate layouts since it would make creating those much easier. So I guess this is not a bug but a new feature request.

Examples of how it will work with Valkyrie can be found with:

malkavk commented 3 years ago

I done my my first scenario as these scenarios. But "Valkyrie Examples and Demos" is almost like my scenario (only difference is that on "Valkyrie Examples and Demos" the user selects a sub quest).

It is not a new feature. It works fine... in English.

I renamed localization files to Localization.English.txt and edited quest.ini files to use just English. I switched my interface to other languages and all my Portuguese texts were there.

I could suggest 3 ways to fix this (considering quest.ini as key file):

  1. Once the first quest.ini is loaded one and only one localization file is loaded (could be the file on root directory), but this way makes scenario development more difficult (having a sub quest ready to use, its texts must be copied to the file in root directory or all elements on sub quests should have the same names and texts);
  2. Each time that a quest.ini file is read, all localization procedures should be done again (including search for a new default localization file according new quest.ini). I believe that should be easiest alternative;
  3. Each time that a quest.ini file is read, all localization procedures should be done again (search for default localization file according new quest.ini) including open file on a different directory (according with latest quest.ini file opened). In this way, several sub quests should share elements (localization files, images, sounds, tokens sets, tiles sets, events sets). One problem with this approach is that I don't know it Unity do a directory separator conversion to ensure portability. This is a complement to previous item.
malkavk commented 3 years ago

@mayjak, I found a specific behavior (this might help find the problem).

In the root scenario directory, the default language works fine.

In sub-scenarios, the default language setting is ignored. If the scenario does not have the same localization file as the language defined in Valkyrie, the default language will be ignored and Valkyrie will attempt to load Localization.English.txt into the sub-scenario directory (if it is defined as language in quest.ini file into sub-scenario directory).