Andy90 Posted October 14, 2023 Share Posted October 14, 2023 Hello i made todays a first test with a standalone version. For some reason the game is crashing while the world get loaded. Is there some error log? Quote Link to comment Share on other sites More sharing options...
Solution Alienhead Posted October 14, 2023 Solution Share Posted October 14, 2023 9 times out of 10 you are missing some media, only things in code that use the load function get moved to the zip. if your loading filename with a varaible like: fish = {} for t=1, 10 do ent = Model:Load("models/fish"..t..".mdl") end then those files are not present in the media .ZIP file and you'll crash on a compiled run. I ran into this when I first started out with LE too. you can work around it by rem'ing some load commands. -- ent = Model:Load("models/fish1.mdl") -- ent = Model:Load("models/fish2.mdl") -- ent = Model:Load("models/fish3.mdl") and so forth. The zipper will pick up those files from the rem'ed code and you can still use variable naming to load mass media. 1 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Andy90 Posted October 14, 2023 Author Share Posted October 14, 2023 Sure, I unchecked the option to include only used files in the zip. Now it's working. By the way, it's an encrypted zip, correct? This is important to me because I use some TurboSquid models, and they require that the model itself isn't accessible as a file. 1 Quote Link to comment Share on other sites More sharing options...
Alienhead Posted October 15, 2023 Share Posted October 15, 2023 Yes, your media within the zip cannot be touched. No way, no how. I had deleted on accident, a project GameJam awhile back, the only access I had to the models from that project were in that zip file. Even with the best compression hack software I failed miserably until I eventually gave up. lol. 1 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. 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.