Jump to content

Game Launcher Failed to read file errors


xtom
 Share

Recommended Posts

I notice when I try to restart my Halloween game after dieing on the launcher it sometimes crashes with "Failed to read file" errors in the log. Mostly it can't find the map, other times a prefab and other times it just restarts fine. It loads fine on launch everytime and testing the standalone locally the restart loads the map fine everytime too.

Check out my games: One More Day / Halloween Pumpkin Run

Link to comment
Share on other sites

I'm using the standard changemap way in main.lua - only change I made is I removed the ..".map" bit here because the restart script where I choose the the path to the map file uses the full filename start.map

 

--Handle map change
if changemapname~=nil then

 --Clear all entities
 world:Clear()

 --Load the next map
 Time:Pause()
 if Map:Load("Maps/"..changemapname)==false then return end
 Time:Resume()

 changemapname = nil
end

Check out my games: One More Day / Halloween Pumpkin Run

Link to comment
Share on other sites

I'm not getting this problem anymore. I had one missing .wav file that a prefab was trying to load so that might have been connected to the other failed to read file errors somehow. Although when I tested in the editor it never crashed so not really sure if that's what the problem was, maybe it was something else. Anyway it's restarting ok now it in the launcher without crash when I tested it again.

Check out my games: One More Day / Halloween Pumpkin Run

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