Rick Posted August 1, 2010 Share Posted August 1, 2010 Is there a bug in the script path setting that anyone knows of? I'm pointing the game path and script path to my projects folders. I then copied the Script folder from my leadwerks folder to this game folder, BUT when I modify class.lua in my project folder that change doesn't reflect when I open up Editor. If I change the class.lua in my LE folder then I see the change. So even though in the editor script path is set to C:\Documents and Settings\Games\My Documents\Visual Studio 2010\Projects\GameO\GameO\bin\Debug\Scripts, it's like it's not really reading that path for things like class.lua and instead it's reading my LE path for the Scripts folder. Quote Link to comment Share on other sites More sharing options...
Masterxilo Posted August 1, 2010 Share Posted August 1, 2010 Josh told me that this is just the way lua works and the paths are always relative to the running executable file and the default "Scripts/" subfolder is hardcoded into the engine and Editor.exe... For example, when your LE application starts, all scripts in the folder "Scripts\Start\" relative to your executable's path are run. Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Rick Posted August 1, 2010 Author Share Posted August 1, 2010 Sure enough, if I move Editor.exe and the UI folder to my games base directory it worked. Weird. Thank you Masterxilo, that was driving me nuts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.