AggrorJorn Posted April 27, 2010 Share Posted April 27, 2010 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. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 27, 2010 Share Posted April 27, 2010 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. Quote 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 More sharing options...
AggrorJorn Posted April 27, 2010 Author Share Posted April 27, 2010 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. Quote Link to comment Share on other sites More sharing options...
ZioRed Posted April 27, 2010 Share Posted April 27, 2010 If all the files needed are in the same folder as the script then I don't think you need to register the abstract path, or else you may assign it to "." Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
AggrorJorn Posted April 27, 2010 Author Share Posted April 27, 2010 at the moment the path is RegisterAbstractPath("") . scripts are loaded, its just textures that don't load. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 27, 2010 Share Posted April 27, 2010 Are you textures in the application subdirectory? Quote 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 More sharing options...
AggrorJorn Posted April 27, 2010 Author Share Posted April 27, 2010 I tried putting them both in the main directory as in a sub directory. example: http://visualknights.com/project/project.rar Quote Link to comment Share on other sites More sharing options...
Josh Posted April 27, 2010 Share Posted April 27, 2010 cobllestones.mat? Quote 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 More sharing options...
AggrorJorn Posted April 27, 2010 Author Share Posted April 27, 2010 The cobblestones.mat is present in the main and in the sub directory. The mat files seem okay, refering to the dds. Perhaps the problem is so obvious that I am tottaly missing it. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 27, 2010 Share Posted April 27, 2010 Look more closely at the name of your material file. Quote 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 More sharing options...
AggrorJorn Posted April 27, 2010 Author Share Posted April 27, 2010 .. that was just sad.. can't believe that that just cost me an entire hour. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 27, 2010 Share Posted April 27, 2010 Quote 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 More sharing options...
AggrorJorn Posted April 27, 2010 Author Share Posted April 27, 2010 thanks for your help 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.