reepblue Posted May 28, 2022 Share Posted May 28, 2022 I've grown to love the ease of being able to read things in a zip file and easily extract them. I was shocked to see that the Package class lacks members/options from its Leadwerks predecessor. Unless I were to go learn zip libraries myself, I'm forced to include Leadwerks just so I can read my game packages. Would it be possible to convert the Leadwerks Zip code to a Ultra plugin? Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted May 29, 2022 Share Posted May 29, 2022 Yes, the package system is designed to work with many package formats, and ZIP is just another plugin. It's a little tricky because I am also trying to make a system that will support weird formats like Quake Paks, WAD, and Valve's VPK. Optimal access time is very important. The biggest game I can find is Black Mesa (30,000 files), and I'm able to browse through its contents very quickly. There are some questions about the final plugin API for these. 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...
reepblue Posted May 30, 2022 Author Share Posted May 30, 2022 I think what I think is missing is being able to search and extract the data. I think I more or less asking is a way to open packages and being able to read, and or extract files out to the disk. I might just be asking for a simple ZIP reader because I'm using the entire Leadwerks API just for that for something small. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted May 30, 2022 Share Posted May 30, 2022 The packages are meant to work in that way. So you load the package and then when you call ReadFile() it will automatically pull from the packages if no file is available on disk. 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...
Josh Posted June 10, 2022 Share Posted June 10, 2022 I'm actually thinking Google's Snappy might be better for games: https://github.com/google/snappy Most file types can actually be stored in an archive uncompressed, because the biggest files tend to already use an efficient compression technique for that type of data, like OGG, BC7, and Draco, and they don't benefit much from an additional layer of compression. 1 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...
Josh Posted August 1, 2022 Share Posted August 1, 2022 Apparently Windows 10 now has built-in zip support Command("tar.exe -xf \""+dst+"\""); https://superuser.com/a/1473255 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...
reepblue Posted August 1, 2022 Author Share Posted August 1, 2022 I'd have to look more into that. I personally use 7zip and have it set as a system environment variable. I wonder if it has commands to omit files from being included. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted August 3, 2022 Share Posted August 3, 2022 I'm using it now with the installer, and it works well. They also added command-line curl to WIndows, which is nice. 1 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...
reepblue Posted August 3, 2022 Author Share Posted August 3, 2022 Nice. Does this have a macOS/Linux equivalent or you need to come up with a different method? Nevermind, tar seems to be a unix standard. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! 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.