gruppe-adler / gruppe_adler_mod

Gruppe Adler Mod is a collection of Gruppe Adler original addons that add new functionality or modify and improve existing functionality to suit our Arma gameplay.
GNU General Public License v2.0
10 stars 6 forks source link

versionCheck: addon versions diary entry will break with too many addons #196

Closed Fusselwurm closed 2 years ago

Fusselwurm commented 2 years ago

using a bit of code from https://github.com/gruppe-adler/gruppe_adler_mod/blob/master/addons/versionCheck/functions/fn_createDiaryEntry.sqf

and paraphrasing it to create a given number of diary entry lines:

_a = []; 
_a resize 3121;
_b = [];
{ _b pushBack _forEachIndex } forEach _a;
player setDiaryRecordText [["grad_ui_helpSubject", [grad_versionCheck_addonVersionsTitle] call grad_ui_fnc_getHelpRecord], [grad_versionCheck_addonVersionsTitle, "<font face=""EtelkaMonospacePro"" size=""8"">" + (_b joinString "<br/>") + "</font>"]]

ok, will fill diary entry

_a = []; 
_a resize 3122;
_b = [];
{ _b pushBack _forEachIndex } forEach _a;
player setDiaryRecordText [["grad_ui_helpSubject", [grad_versionCheck_addonVersionsTitle] call grad_ui_fnc_getHelpRecord], [grad_versionCheck_addonVersionsTitle, "<font face=""EtelkaMonospacePro"" size=""8"">" + (_b joinString "<br/>") + "</font>"]]

not ok, will break diary entry

probably BI's fault - diary entry control seem to have a line limit?