PDA

View Full Version : Issue? - dofile and require


Intrigued
03-04-2008, 09:37 PM
I read the Help file and the following in particular:

Note that as long as you put the .lua file into your project’s Scripts folder, you don’t even have to provide a full path to the file. For example:

require("MyScript.lua");

...is the same as:

require(_SourceFolder.."\\AutoPlay\\Scripts\\MyScript.lua");

I also noticed that it's only listed in the 'require' portion (and only works with 'require'), and not in the 'dofile' section.

Is that by design, or?

Darryl
03-10-2008, 10:15 AM
I'm honestly not sure about this one and will have to look into it. We'll take a look to see if there was a reason for it, or just an oversight.

REF: 17295

Intrigued
03-10-2008, 06:34 PM
Thanks Darryl.