onClick Error with a mod

The place to discuss scripting and game modifications for X4: Foundations.

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

12vh3
Posts: 8
Joined: Sun, 17. Nov 19, 09:25
x3ap

onClick Error with a mod

Post by 12vh3 »

Hi,

i wrote a own mod which works fine as long as i used booleans for choosing wares. (mining script)
but as i want switch to a menu
<param name="warebasket" default="[]" type="list" text="{1041, 10146}" comment="Wares">
<input_param name="type" value="'ware'"/>
<input_param name="cancarry" value="this.ship"/>
</param>

i got a error

[=ERROR=] 155351.78 Error while executing onEvent script for event: onClick.
Errormessage: P:\SVN\temp\menu_map.lua:9846: attempt to index field 'inputparams' (a nil value)

the code snippet was copied from the tatertrader mod, and still works fine with the tatertrader mod or any other mod who uses it.
whats the hidden reuirement to use that feature?

sry if its in the wrong forum

greetings
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 31737
Joined: Fri, 16. Apr 04, 19:21
x4

Re: onClick Error with a mod

Post by Alan Phipps »

Yes, this would be far better in S&M where devs and other modders will see it. Moving it over.
A dog has a master; a cat has domestic staff.
12vh3
Posts: 8
Joined: Sun, 17. Nov 19, 09:25
x3ap

Re: onClick Error with a mod

Post by 12vh3 »

it seems there is no workaround?!

Return to “X4: Foundations - Scripts and Modding”