widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #02212
Re: lua scripting: 'use' no longer exists?
I was working on a map, I just need to run a script via F6 console, nothing
more...
2014-07-07 22:10 GMT+02:00 Holger Rapp <HolgerRapp@xxxxxxx>:
> dofile is only available in debug builds though. do not use it in files
> you want to check in.
>
> On 07.07.2014, at 21:56, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
>
> I dont know, perhaps some stupid mistake on my side, however dofile
> worked and it is fine for me...
>
>
> 2014-07-07 18:04 GMT+02:00 Holger Rapp <HolgerRapp@xxxxxxx>:
>
>>
>> On 07.07.2014, at 09:37, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
>>
>> Hi
>>
>> It seem that syntax use("aux","script") is no longer working, with error:
>>
>> [/var/widelands/tibor-ai3/src/scripting/lua_errors.h:29] [string
>> "use("aux","caller_t")"]:1: attempt to call global 'use' (a nil value)
>>
>>
>> What should I use instead?
>>
>>
>> https://wl.widelands.org/docs/wl/autogen_globals/#include
>>
>> grep for it, it is used all over the place in the Lua scripts.
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help : https://help.launchpad.net/ListHelp
>
>
>
References