Jump to content

Game is crashing in standalone version


Go to solution Solved by Alienhead,

Recommended Posts

  • Solution
Posted

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
Posted

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

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.

×
×
  • Create New...