Jump to content

script path issues


Rick
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...