Jump to content
Waldemar 337

Truncated log messages

Recommended Posts

I want to see the full log message that I am creating, but log shows only a truncated text.

 

I tried to log an array of strings.

_animeNames = animationNames veh_1;

I tried using two log methods:

 

1. diag_log:

diag_log format ["Anime Names: %1.", _animeNames];

 

2. BIS_fnc_log:

_animeNames call BIS_fnc_log;

Both attempts result in a truncated array, something similar to the following:

 

Quote

"BIS_fnc_log: [BIS_fnc_debugConsoleExec] [""damagehide"",""damagehidevez"",""damagehidehlaven"",""wheel_1_1_destruct"",""wheel_1_2_destruct"",""wheel_1_3_destruct"",""wheel_1_4_destruct"",""wheel_2_1_destruct"",""wheel_2_2_destruct"",""wheel_2_3_destruct"",""wheel_2_4_destruct"",""wheel_1_1_destruct_unhide"",""wheel_1_2_destruct_unhide"",""wheel_1_3_destruct_unhide"",""wheel_1_4_destruct_unhide"",""wheel_2_1_destruct_unhide"",""wheel_2_2_destruct_unhide"",""wheel_2_3_destruct_unhide"",""wheel_2_4_destruct_unhide"",""wheel_1_1"",""wheel_2_1"",""wheel_1_2"",""wheel_1_3"",""wheel_2_2"",""wheel_2_3"",""wheel_1_4"",""wheel_2_4"",""daylights"",""wheel_1_1_damage"",""wheel_1_2_damage"",""wheel_1_3_damage"",""wheel_1_4_damage"",""wheel_2_1_damage"",""wheel_2_2_damage"",""wheel_2_3_damage"",""wheel_2_4_damage"",""wheel_1_1_damper_damage_backanim"",""wheel_1_2_damper_damage_backanim"",""wheel_1_3_damper_damage_backanim"",""wheel_1_4_damper_damage_backanim"",""wheel_2_1_damper_damage_backanim"",""wheel_2_2_damper_damag

 

As we can see, the log message ends unexpectedly.

 

The question is:

How can I get a normal non-truncated message in the log ?

 

Thank you.

Share this post


Link to post
Share on other sites

As a quick and dirty workaround hack I can use this method:

_animeNames = animationNames veh_1;
_msg = format ["Anime Names: %1.", _animeNames];
copyToClipboard str _msg;

but it does not look like a normal solution while it does not write into log.

 

Quote

"Anime Names: [""damagehide"",""damagehidevez"",""damagehidehlaven"",""wheel_1_1_destruct"",""wheel_1_2_destruct"",""wheel_1_3_destruct"",""wheel_1_4_destruct"",""wheel_2_1_destruct"",""wheel_2_2_destruct"",""wheel_2_3_destruct"",""wheel_2_4_destruct"",""wheel_1_1_destruct_unhide"",""wheel_1_2_destruct_unhide"",""wheel_1_3_destruct_unhide"",""wheel_1_4_destruct_unhide"",""wheel_2_1_destruct_unhide"",""wheel_2_2_destruct_unhide"",""wheel_2_3_destruct_unhide"",""wheel_2_4_destruct_unhide"",""wheel_1_1"",""wheel_2_1"",""wheel_1_2"",""wheel_1_3"",""wheel_2_2"",""wheel_2_3"",""wheel_1_4"",""wheel_2_4"",""daylights"",""wheel_1_1_damage"",""wheel_1_2_damage"",""wheel_1_3_damage"",""wheel_1_4_damage"",""wheel_2_1_damage"",""wheel_2_2_damage"",""wheel_2_3_damage"",""wheel_2_4_damage"",""wheel_1_1_damper_damage_backanim"",""wheel_1_2_damper_damage_backanim"",""wheel_1_3_damper_damage_backanim"",""wheel_1_4_damper_damage_backanim"",""wheel_2_1_damper_damage_backanim"",""wheel_2_2_damper_damage_backanim"",""wheel_2_3_damper_damage_backanim"",""wheel_2_4_damper_damage_backanim"",""wheel_1_1_damper"",""wheel_2_1_damper"",""wheel_1_2_damper"",""wheel_1_3_damper"",""wheel_2_2_damper"",""wheel_2_3_damper"",""wheel_1_4_damper"",""wheel_2_4_damper"",""steering_1_1"",""steering_2_1"",""steering_1_2"",""steering_2_2"",""hatchdriver"",""mainturret"",""turretbase"",""maingun"",""obsturret"",""obsgun"",""damagehlaven"",""damagecamonet"",""vrtulea"",""vrtuleb"",""poklop_gunner"",""poklop_commander"",""zasleh_rot"",""zasleh2_rot"",""zasleh_hide"",""reverse_light"",""hideturret"",""drivingwheel"",""indicatortempoil"",""indicatortempwater"",""indicatorammeter"",""indicatorammeter_turret"",""indicatorspeed_mfd_driver"",""indicatorrpm"",""indicatorrpm_mfd_driver"",""lights_driver"",""lights_driver_off"",""lights_turret"",""lights_turret_off"",""cannon_ready_light"",""engine_damage_indicator"",""main_gun_damage_indicator"",""pedal_thrust"",""pedal_brake"",""turret_control_x"",""turret_control_y"",""com_turret_control_x"",""com_turret_control_y"",""driver_reverse_cam"",""driver_reverse_cam_nopip"",""driver_hide_mfd"",""indicatortempwater_mfd_driver"",""indicatorfuel_mfd_driver"",""indicator_hull_direction_mfd_driver"",""indicator_main_turret_mfd_driver"",""indicator_com_turret_mfd_driver"",""indicator_com_turret_counter_mfd_driver"",""indicator_main_turret_mfd_com"",""indicator_main_turret_onscreen_com"",""indicator_com_turret_mfd_com"",""indicator_com_turret_onscreen_com"",""indicator_hull_direction_mfd_gunner"",""indicator_main_turret_mfd_gunner"",""indicator_com_turret_mfd_gunner"",""indicator_damage_engine"",""indicator_damage_fuel"",""indicator_damage_wheels"",""indicator_turret_damage_hull"",""indicator_turret_damage_engine"",""indicator_turret_damage_fuel"",""indicator_turret_damage_main_gun"",""indicator_turret_damage_wheels"",""indicator_turret_damage_turret"",""hide_mfd_and_pip_screen_driver"",""hide_mfd_and_pip_screen_gunner"",""hide_mfd_elements"",""showbags"",""showbags_damage"",""showcamonethull"",""showcamonetturret"",""showcamonetcannon"",""showslathull"",""showslatturret"",""slat_front_normal_hide"",""slat_front_damage_unhide"",""slat_front_damage_hide"",""slat_front_destroyed_unhide"",""slat_front_firegeo_hide"",""slat_back_normal_hide"",""slat_back_damage_unhide"",""slat_back_damage_hide"",""slat_back_destroyed_unhide"",""slat_back_firegeo_hide"",""slat_left_1_normal_hide"",""slat_left_1_damage_unhide"",""slat_left_1_damage_hide"",""slat_left_1_destroyed_unhide"",""slat_left_1_firegeo_hide"",""slat_left_2_normal_hide"",""slat_left_2_damage_unhide"",""slat_left_2_damage_hide"",""slat_left_2_destroyed_unhide"",""slat_left_2_firegeo_hide"",""slat_left_3_normal_hide"",""slat_left_3_damage_unhide"",""slat_left_3_damage_hide"",""slat_left_3_destroyed_unhide"",""slat_left_3_firegeo_hide"",""slat_right_1_normal_hide"",""slat_right_1_damage_unhide"",""slat_right_1_damage_hide"",""slat_right_1_destroyed_unhide"",""slat_right_1_firegeo_hide"",""slat_right_2_normal_hide"",""slat_right_2_damage_unhide"",""slat_right_2_damage_hide"",""slat_right_2_destroyed_unhide"",""slat_right_2_firegeo_hide"",""slat_right_3_normal_hide"",""slat_right_3_damage_unhide"",""slat_right_3_damage_hide"",""slat_right_3_destroyed_unhide"",""slat_right_3_firegeo_hide"",""slat_top_back_normal_hide"",""slat_top_back_damage_unhide"",""slat_top_back_damage_hide"",""slat_top_back_destroyed_unhide"",""slat_top_back_firegeo_hide"",""slat_top_right_normal_hide"",""slat_top_right_damage_unhide"",""slat_top_right_damage_hide"",""slat_top_right_destroyed_unhide"",""slat_top_right_firegeo_hide"",""slat_top_left_normal_hide"",""slat_top_left_damage_unhide"",""slat_top_left_damage_hide"",""slat_top_left_destroyed_unhide"",""slat_top_left_firegeo_hide""]."

 

Share this post


Link to post
Share on other sites

referring to "Demonized"'s note here there is a 1044 character limit. if you have longer log messages to handle then just split it up.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×