← Back to team overview

widelands-dev team mailing list archive

Re: lua scripting: 'use' no longer exists?

 

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.
>

Follow ups

References