安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








Newest hotfix 2.20 from BI resolves the problem.
"Fixed: ctrlSetEventHandler started returning the Event Handler index (it is back to returning nothing now)" ( https://dev.arma3.com/post/spotrep-00119 )
Workaround below is no longer necessary, and you can use the newest ArmA 3 version.
-- edit --
Quick and dirty workaround (will possibly work until the next major update after 2.20): revert to version 2.18.
You can do this by right-clicking ArmA 3 on Steam, selecting Properties > Betas and inputting ArmA3Legacy218 in the "Private Betas" text box, and clicking "Check Code".
I don't know exactly how the legacy branching works in ArmA 3 but according to the wiki ( https://community.bistudio.com/wiki/Arma_3:_Steam_Branches ) it seems like they keep only the latest legacy version. So, when we get to ArmA 3 version 2.22, we might not have access to 2.18 anymore.
-----
Problem description:
I've done some digging. The full code fragment is:
{
((findDisplay 602) displayCtrl _x) ctrlSetEventHandler ["LBDblClick", "_this call fnc_gearLBDblClick"];//ctrlAddEventHandler ?
} count [633, 638, 619];
According to BI wiki ( https://community.bohemia.net/wiki/count ), in the Notes section, Ebay wrote:
"With the alternative syntax each iteration should result in an interior return of bool or nothing. Example:
createDialog "RscFunctionsViewer";
{ lbAdd [292901, _x]; } count ["first", "second", "third"];
lbAdd returns a number, so this throws "Error Type Number, expected Bool". Tested in A2OA 1.63.131129"
Apparently, when using count in this manner, the internal block code should either return a Boolean, or Nothing. Again, according to BI wiki ( https://community.bohemia.net/wiki/ctrlSetEventHandler ), ctrlSetEventHandler should always return Nothing but this is not the case anymore. I made a test with open inventory and the following code prints "2":
hint format ["%1", ((findDisplay 602) displayCtrl 633) ctrlSetEventHandler ["LBDblClick", "_this call fnc_gearLBDblClick"]]
BI did an undocumented change in ctrlSetEventHandler return type lately (in version 2.18, ctrlSetEventHandler returns Nothing, in 2.20 it returns a number - possibly a handler ID, just like ctrlAddEventHandler).
The fix should be simple but I'm not sure if Haleks works on this project anymore :(
The core problem can be reproduced with a very simple example:
{
2
} count [1]
This shows the exact error message we're getting.