Clackdor Posted January 4, 2012 Share Posted January 4, 2012 Solved. So, what is the correct procedure for making a .pak and then using it in my Leadwerks program? Please illustrate where I'm going wrong: 1. Create data.zip with WinZip. Use Encryption to give it a password. Right click, rename to data.pak. DO THIS. 2. SetZipStreamPassword("data.pak","password"); invoked before loading any meshes. DO THIS. 3. TModel scene = LoadModel("zip::data.pak//scene.gmf"); This is where my program fails. Instead of this use: TModel scene = LoadModel("abstract::scene.gmf"); Make sure your data.pak file is in the same directory as the exe or wherever you used Registerabstractpath(); Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 4, 2012 Share Posted January 4, 2012 Have you tried just LoadModel("abstract::scene.gmf"); Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Clackdor Posted January 4, 2012 Author Share Posted January 4, 2012 Yes. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 4, 2012 Share Posted January 4, 2012 Your code looks right. I prefer to use abstract paths, because then it works with either pak files or plain files. 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...
Marleys Ghost Posted January 4, 2012 Share Posted January 4, 2012 Yes. What does your log file say? Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Clackdor Posted January 4, 2012 Author Share Posted January 4, 2012 I also tried using abstract paths. Do I simply need to put the .pak in the abstract path somewhere. So "abstract::scene.gmf" will find it whether its in the .pak or not? Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 4, 2012 Share Posted January 4, 2012 where is your pak file now? Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Clackdor Posted January 4, 2012 Author Share Posted January 4, 2012 Blah, using abstract instead of that zip::///nonsense worked better. Thanks for the 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.