gamecreator Posted March 25, 2012 Share Posted March 25, 2012 Is there a tool that goes through your code and files and copies all of the assets your program uses to a folder? I have a lot of models in my Leadwerks Engine SDK that I've been using in my project and would like to send my project to a friend. I found the easiest way I could find was to open my sbx file, then open each gmf to look at the material files they use, then open each material file to find every dds file they use and one by one copy over everything. Is there a better way out there? Quote Link to comment Share on other sites More sharing options...
DigitalHax Posted March 25, 2012 Share Posted March 25, 2012 Well, the best way to do it all is make a copy of all the leadwerks folders in your project folder, and set the abstract directory to the project directory. Not sure exactly what you mean though. Quote Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5. Life is too short to remove USB safely. Link to comment Share on other sites More sharing options...
Canardia Posted March 25, 2012 Share Posted March 25, 2012 All you have to do is to setup your project folder so that you have 2 subfolders: distro and source. In source you have all the C++ project files and C++ source codes and source models and source textures, and in distro only what you will publish. Zero work by intelligent design. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
gamecreator Posted March 25, 2012 Author Share Posted March 25, 2012 More specific: I have every single model I own in the Leadwerks, model folder. Dozens of trees, rocks, etc. When I create a world using the editor, I just drag whatever I want to use into it and save the sbx. The sbx references random models that I've used. How do I easily copy those to my project folder? Quote Link to comment Share on other sites More sharing options...
paramecij Posted March 25, 2012 Share Posted March 25, 2012 I doubt there's a tool out there that would work perfectly in your case. Better to make your own. By parsing and copying files that are referenced in the .sbx only won't work in cases where the models lua files load external assets, and if you load them in code (obviously). A better candidate I think would be the applog file, which shouldn't be hard to parse 2 Quote Link to comment Share on other sites More sharing options...
gamecreator Posted March 25, 2012 Author Share Posted March 25, 2012 Oh wow, that's a great idea! Why didn't I think of that?!! Thank you! Quote Link to comment Share on other sites More sharing options...
gamecreator Posted March 26, 2012 Author Share Posted March 26, 2012 I had to learn how to do some of this stuff from scratch so it took me a few hours of learning but new tool is uploaded! http://www.leadwerks.com/werkspace/files/file/331-leadwerks-asset-copier/ 1 Quote Link to comment Share on other sites More sharing options...
Benton Posted March 26, 2012 Share Posted March 26, 2012 Dude nice! Quote Windows 7 Professional 64 bit, 16 gigs ram, 3.30GHz Quad Core, GeForce GTX 460 one gig, Leadwerks 2.5, Blender 2.62, Photoshop CS3, UU3D 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.