[6.20 (511811)] Error selecting components on the holomap when setting string filters in the search box.

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

User avatar
Dj_FRedy
Posts: 237
Joined: Mon, 27. Jun 11, 05:58
x4

[6.20 (511811)] Error selecting components on the holomap when setting string filters in the search box.

Post by Dj_FRedy » Fri, 16. Feb 24, 18:41

Related topic in 'English Forums\X4: Foundations': viewtopic.php?p=5215847#p5215693

If you don't want to waste time researching:
The problem is in a condition that is not validated correctly in the Lua function 'onRenderTargetSelect' of the "MapMenu" menu.

Code: Select all

elseif (#menu.searchtext == 0) or Helper.textArrayHelper(menu.searchtext, function (numtexts, texts) return C.FilterComponentByText(pickedcomponent, numtexts, texts, true) end) then
In the 'menu.searchtext' table the string value is stored in the 'text' key. In this case 'Helper.textArrayHelper' needs to receive the key "text" as a third argument to validate correctly and continue the execution cycle.
"All my contributions to the Technical Support and Public Beta Feedback sections will be concise and to the point, no diatribes, that's what the other sections are for".
Thank you for your efforts.

Return to “X4: Foundations - Technical Support”