Jump to content

abstract path


AggrorJorn
 Share

Recommended Posts

If I want to run the exmaple.lua in a new project folder, what do I need to do so that textures and models are being loaded? because the log says it can not find the textures.

Do I have to set the abstract path too that particular folder? I run the example1.lua via the engine.exe in the project folder, not via the script editor.

 

Link to comment
Share on other sites

Your media files and shaders need to be within whatever abstract path you set. So it can be in the new project folder, or the old folder, or whatever.

 

Scripts must be in the same folder as the executable.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Okay but what about if my project folder is really far in the directory structure? Would I have to set:

RegisterAbstractPath("C:\users\Jorn\My documnets\projects\test1")

?

 

If I share my project with others, the code wont work. Since they don't have the media files at the abstract location.

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