4.30:Galaxy Range MOD error message

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Browser_ice
Posts: 485
Joined: Sun, 5. Feb 06, 17:15
x4

4.30:Galaxy Range MOD error message

Post by Browser_ice » Sat, 31. Mar 18, 19:12

While looking at the logs I found the following error message. The galaxy range MOD is the only MOD that I have. I do not know what I was doing at that time. I had been playing a long game session today.

Code: Select all

[Scripts] 29005.26 *** Context:md.Conversations.DefaultComm<inst:304d281>: event_conversation_started: default, actor=0x11b86, Leann Sillarne
[Scripts] 29008.60 *** Context:md.MainMenu.SectionHandler<inst:303fc0f>: Next section: gMain_charOrders
[General] 29008.60 ======================================
[=ERROR=] 29008.60 CWidgetController::SetUpView() - Validation error: 'Script error: 'Initial selected row 5 is set as unselectable.'
Originates from:
H:\P\temp\helper.lua(1311): in function 'createThreeTableView'
H:\P\temp\helper.lua(1316): in function 'displayThreeTableView'
G:/Games/steamapps/common/X Rebirth/extensions/galaxystationrange/ui/menu_orders.lua(493): in function 'displayMenu'
X:\X4_Scripts\ui\addons\ego_detailmonitor\menu_orders.lua(176): in function 'onShowMenu'
H:\P\temp\helper.lua(446): in function
		(255)
[C] in function 'pcall'
H:\P\temp\widget_detailmonitor.lua(8179): in function 'CallEventScripts'
H:\P\temp\widget_detailmonitor.lua(1092): in function
		(1088)'
[General] 29008.60 ======================================
[General] 29008.60 ======================================
[=ERROR=] 29008.60 G:/Games/steamapps/common/X Rebirth/(): (from presentation 'ui/widget/presentations/widget_detailmonitor/widget_detailmonitor.bgf') DisplayView(): Failed to set-up the view.
[General] 29008.60 ======================================
[General] 29008.60 ======================================
[=ERROR=] 29008.60 stack traceback:
	[C]: in function 'TraceBack'
	H:\P\temp\helper.lua:1251: in function 'checkViewExists'
	H:\P\temp\helper.lua:1318: in function 'displayThreeTableView'
	[string "extensions/galaxystationrange/ui/menu_orders.lua"]:493: in function 'displayMenu'
	X:\X4_Scripts\ui\addons\ego_detailmonitor\menu_orders.lua:176: in function 'onShowMenu'
	H:\P\temp\helper.lua:446: in function <H:\P\temp\helper.lua:255>
	[C]: in function 'pcall'
	H:\P\temp\widget_detailmonitor.lua:8179: in function 'CallEventScripts'
	H:\P\temp\widget_detailmonitor.lua:1092: in function <H:\P\temp\widget_detailmonitor.lua:1088>
[General] 29008.60 ======================================
[General] 29008.60 ======================================
[=ERROR=] 29008.60 Error while executing onEvent script for event: showOrdersMenu.
Errormessage: H:\P\temp\helper.lua:1253: Failed to create view for menu OrdersMenu. Reloading UI ...
[General] 29008.60 ======================================
Steam X-Superbox, XR, playing X4
WIndows-10
Intel I7-3770
16Gb Memory
Nvgidia GTX-1060

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Re: 4.30:Galaxy Range MOD error message

Post by w.evans » Sat, 31. Mar 18, 20:36

menu error. only these lines are really important
Browser_ice wrote:

Code: Select all

[=ERROR=] 29008.60 CWidgetController::SetUpView() - Validation error: 'Script error: 'Initial selected row 5 is set as unselectable.'

...

G:/Games/steamapps/common/X Rebirth/extensions/galaxystationrange/ui/menu_orders.lua(493): in function 'displayMenu'
X:\X4_Scripts\ui\addons\ego_detailmonitor\menu_orders.lua(176): in function 'onShowMenu' 
i'd mention it to Yorrick in the mod thread:

https://forum.egosoft.com/viewtopic.php?t=369302

but it's also possible that it's a vanilla bug. Hard to say for sure, though. There is a line in the vanilla file which changed between 4.0 and 4.3

line 435:

local subordinaterangecomponenttype

changed to

local subordinaterangecomponenttype = ""

and that hasn't changed in Yorrick's file so, with the mod, subordinaterangecomponenttype could be nil rather than an empty string, but i don't see how that could cause this.

Hm. Unless

Code: Select all

			setup:addSimpleRow({
				ReadText(1001, 4212),
				subordinaterangecomponenttype
			}, "subordinaterange", {3, 1})
doesn't add a row if subordinaterangecomponenttype is nil. Could happen if either:

menu.subordinaterangecomponent == nil
or
menu.subordinaterangecomponent is neither of class cluster, sector, zone, nor galaxy.

That could then cause that error because the next row added is unselectable and the menu is set to select that row upon opening.

Post Reply

Return to “X Rebirth - Scripts and Modding”