[gameprogrammer] Re: Lua

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

Other related posts: