xESWxDEATH1 Posted June 26, 2017 Share Posted June 26, 2017 So how does one load the data from data.zip after publishing standalone. Also how do you set the password, do I have to do it in the editor somewhere or do it with C++? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted June 26, 2017 Share Posted June 26, 2017 It should just work without you needing to do anything else. Quote Link to comment Share on other sites More sharing options...
xESWxDEATH1 Posted June 26, 2017 Author Share Posted June 26, 2017 So i don't need to add Package::Load() anywhere? i just use the System::GetPropertiy() like normal to get the stuff thats in data.zip after its compiled and all? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted June 26, 2017 Share Posted June 26, 2017 Maybe I'm not clear what you're trying to do. System::GetProperty gets command line arguments and has nothing to do with the data file by itself. But if you're just trying to load your project's maps, models, textures, etc. then yes, you don't need to do anything extra. Quote Link to comment Share on other sites More sharing options...
xESWxDEATH1 Posted June 27, 2017 Author Share Posted June 27, 2017 it gets files std::string mapname = System::GetProperty("map", "Maps/start.map"); and this works when debugging and in the editor but if i build standalone it isn't loading any textures, sounds, maps, etc... i assume because its packed into a data.zip thats password encrypted and i'm getting it properly for the standalone executable to get the files. My friend told me you have to load the data with Package::Load() but im confused as there is no docs here for it. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted June 27, 2017 Share Posted June 27, 2017 Maybe this will help: But you'll need to zip up your own password protected file as the data.zip password isn't public. 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.