← Back to team overview

widelands-dev team mailing list archive

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

 

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Follow ups

References