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
onClick Error with a mod
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Moderator (English)
- Posts: 30422
- Joined: Fri, 16. Apr 04, 19:21
Re: onClick Error with a mod
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.
Re: onClick Error with a mod
it seems there is no workaround?!