[gameprogrammer] Re: Lua
- From: "Alan Wolfe" <alan.wolfe@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Fri, 8 Aug 2008 02:08:25 -0700
you know it's interesting i saw a few references to the require keyword but
when i tried it myself it didnt seem to work.
dofile worked great, i'll have to check require again just to make sure i
wasn't doing anything wrong.
Thanks you guys (:
On Fri, Aug 8, 2008 at 1:39 AM, Nicolas Goy, Kuon <kuon@xxxxxxxxxx> wrote:
>
> On 2008-08-07, at 22:12, Alan Wolfe wrote:
>
> Hey is anyone familiar with lua?
>>
>> Do you know if there's a way to include one lua script in another (ie
>> #include)?
>>
>> i've been googling it and checking the manual and havent been able to find
>> a way :/
>>
>
>
>
> require "filename"
>
>
> Where filename will be searched in package.path.
>
>
> You can do something like:
>
> package.path = package.path .. ";" .. UI_LUA_DIRECTORY .. "?.lua"
>
> Best regards
>
>
> --
> kuon
>
> http://kuon.goyman.com
> http://goyman.com
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>
- References:
- [gameprogrammer] Lua
- From: Alan Wolfe
- [gameprogrammer] Re: Lua
- From: Nicolas Goy, Kuon
Other related posts:
- » [gameprogrammer] Lua
- » [gameprogrammer] Re: Lua
- » [gameprogrammer] Re: Lua
- » [gameprogrammer] Re: Lua
- » [gameprogrammer] Re: Lua
- [gameprogrammer] Lua
- From: Alan Wolfe
- [gameprogrammer] Re: Lua
- From: Nicolas Goy, Kuon