Jump to content

Game is crashing in standalone version


Andy90
 Share

Go to solution Solved by Alienhead,

Recommended Posts

  • Solution

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.

 

 

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...