xtom Posted October 23, 2015 Share Posted October 23, 2015 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. Quote Check out my games: One More Day / Halloween Pumpkin Run Link to comment Share on other sites More sharing options...
Rick Posted October 23, 2015 Share Posted October 23, 2015 How are you reloading the map? Quote Link to comment Share on other sites More sharing options...
xtom Posted October 23, 2015 Author Share Posted October 23, 2015 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 Quote Check out my games: One More Day / Halloween Pumpkin Run Link to comment Share on other sites More sharing options...
xtom Posted October 26, 2015 Author Share Posted October 26, 2015 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. Quote Check out my games: One More Day / Halloween Pumpkin Run Link to comment Share on other sites More sharing options...
Rick Posted October 26, 2015 Share Posted October 26, 2015 We found that things don't work right in the game launcher if anything is missing. Quote 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.