Jump to content

The game does not work after compilation if I use this script


Ghost
 Share

Recommended Posts

local file1 = io.open(self.text_en, "r")
	for line in file1:lines() do
		table.insert (self.monolog_en, line);
	end
	file1:close()

During the test, everything works as it should, but after compilation, the map simply does not open and the game closes without any errors. Why is this happening, does anyone know?

Link to comment
Share on other sites

There's also the issue that if the files you are loading are packaged in an encrypted zip file, the engine won't be able to read the files. File reading is not supported because it would break the protection. You would need to keep those files in the game's folder, not in a zip file.

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

22 minutes ago, Josh said:

There's also the issue that if the files you are loading are packaged in an encrypted zip file, the engine won't be able to read the files. File reading is not supported because it would break the protection. You would need to keep those files in the game's folder, not in a zip file.

What should I do if I just want to read the files and not change them?

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...