zeropoint101 Posted March 10, 2014 Share Posted March 10, 2014 (edited) Grr. Ok, so I've been working on what I thought was a simple mod as a first project for forever now. Finally decided to dive more into the coding after reading and reading and reading, changed a few things, and now when I enable the mod from the mod menu, it says something like "this mod crashed last time and has been disabled. please check the workshop for an updated version" and the entire game freezes up. I have to close it from the task manager. I changed everything back to exactly how it was when it last worked(which was after the DLC update, just a few days ago) and it still does the same thing. Is there some file where I need to reset something that is telling the game "this mod is jacked. close the whole game when it's enabled" without even checking if the mod was changed back to a working state? What am I missing here? Please help. Edited March 10, 2014 by zeropoint101 Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/ Share on other sites More sharing options...
squeek Posted March 10, 2014 Share Posted March 10, 2014 The exact error would be helpful. Does it actually say something about the workshop? Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428081 Share on other sites More sharing options...
zeropoint101 Posted March 10, 2014 Author Share Posted March 10, 2014 My apologies. It says forums, not workshop. It says exactly - "Mods Installed! The following mods failed to run last time and have been disabled: "rainbowflag"Check the forums for updated versions." without the quotes. It says "Rev. 96966 WIN_32 STEAM" in the bottom left corner. The "I Understand", "Disable Mods", and "Mod Forums" are not clickable and the game is completely frozen. I have tried removing the mod folder completely, then replacing it. I have tried removing it, renaming it, and replacing it. It freezes and I get the same error everytime. One odd note to add - before restarting my computer, when I tried removing the mod folder, it said I couldn't because a file or folder in the folder I was trying to move was open, but I closed everything I had open on my entire PC, including closing Steam completely, and it still said this. So I was thinking maybe I had a weird Windows glitch, but when I restarted, I could move the folder, but still had the same error when I moved it back, etc. as described above. Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428085 Share on other sites More sharing options...
squeek Posted March 10, 2014 Share Posted March 10, 2014 Post your log.txt after you trigger the error. Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428087 Share on other sites More sharing options...
zeropoint101 Posted March 10, 2014 Author Share Posted March 10, 2014 Post your log.txt after you trigger the error.log.txt Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428088 Share on other sites More sharing options...
squeek Posted March 10, 2014 Share Posted March 10, 2014 (edited) scripts/mods.lua(17,1) error calling LoadPrefabFile in mod rainbowflag: ...ps/common/dont_starve/data/scripts/mainfunctions.lua:70: Error loading file prefabs/rainbowflag ...mon/dont_starve/data/../mods/rainbowflag/scripts/prefabs/rainbowflag.lua:49: unexpected symbol near ')' Edited March 10, 2014 by squeek Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428090 Share on other sites More sharing options...
zeropoint101 Posted March 10, 2014 Author Share Posted March 10, 2014 scripts/mods.lua(17,1) error calling LoadPrefabFile in mod rainbowflag:...ps/common/dont_starve/data/scripts/mainfunctions.lua:70: Error loading file prefabs/rainbowflag...mon/dont_starve/data/../mods/rainbowflag/scripts/prefabs/rainbowflag.lua:49: unexpected symbol near ')' Ok, I assume this means there's an extra symbol in the code that shouldn't be there. I'll take a look, but all I did to it before it stopped working was add two lines, then deleted those two lines. I'm sure it's something I did wrong, but.. why wouldn't it just give me that error on the mod loading screen instead of just freezing the whole game? I've seen the "unexpected symbol near..." error a number of times when I coded something wrong. Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428091 Share on other sites More sharing options...
zeropoint101 Posted March 10, 2014 Author Share Posted March 10, 2014 scripts/mods.lua(17,1) error calling LoadPrefabFile in mod rainbowflag:...ps/common/dont_starve/data/scripts/mainfunctions.lua:70: Error loading file prefabs/rainbowflag...mon/dont_starve/data/../mods/rainbowflag/scripts/prefabs/rainbowflag.lua:49: unexpected symbol near ')' Wow. Ok, somehow I left an extra 'end' in there. Sheesh. Well I feel dumb. I'm still not sure why this crashed the whole game instead of just not loading the prefab though.. I'm just learning, but it's seemed like there were things in place to prevent a complete game crash if you screwed up your prefab, especially if I'm not trying to override any main game data files. But I really have no idea. But thanks much for the help! Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428092 Share on other sites More sharing options...
squeek Posted March 10, 2014 Share Posted March 10, 2014 (edited) Ok, I assume this means there's an extra symbol in the code that shouldn't be there. I'll take a look, but all I did to it before it stopped working was add two lines, then deleted those two lines. I'm sure it's something I did wrong, but.. why wouldn't it just give me that error on the mod loading screen instead of just freezing the whole game? I've seen the "unexpected symbol near..." error a number of times when I coded something wrong.Not sure why it didn't show the details of the error ingame, but log.txt is more reliable anyway (and allows you to copy+paste the error, see what led up to it, etc). Edited March 10, 2014 by squeek Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428093 Share on other sites More sharing options...
zeropoint101 Posted March 10, 2014 Author Share Posted March 10, 2014 Not sure why it didn't show the details of the error ingame, but log.txt is more reliable anyway (and allows you to copy+paste the error, see what led up to it, etc). Cool. I've looked through log.txt a few times to try to understand things, but a lot of it is still greek to me. This will give me a place to start next time I have a game crash though. Thanks again. Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428094 Share on other sites More sharing options...
squeek Posted March 10, 2014 Share Posted March 10, 2014 (edited) Wow. Ok, somehow I left an extra 'end' in there. Sheesh. Well I feel dumb. I'm still not sure why this crashed the whole game instead of just not loading the prefab though.. I'm just learning, but it's seemed like there were things in place to prevent a complete game crash if you screwed up your prefab, especially if I'm not trying to override any main game data files. But I really have no idea. But thanks much for the help!There is some bugginess with the error screen where sometimes it gets shown but loses focus somehow, making the buttons unclickable. Something you might want to do is install the incredibly helpful Mod Testing Toolbox mod, which will enable debug keys by default (and add buttons to the script error screen to reload the game or go back to the main menu). If the buttons on the script error screen are ever unclickable, you can use the debug keys CTRL+SHIFT+R to reload the game from the last save or CTRL+R to go back to the main menu. EDIT: Cool. I've looked through log.txt a few times to try to understand things, but a lot of it is still greek to me. This will give me a place to start next time I have a game crash though. Thanks again. Understanding the whole thing is totally unnecessary. The very end is usually the only relevant part. Edited March 10, 2014 by squeek Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428097 Share on other sites More sharing options...
zeropoint101 Posted March 10, 2014 Author Share Posted March 10, 2014 I just love how involved the community is in this game and all these great mod tools made by players. I keep finding more and more tools to help me learn. I just installed the testing toolbox. Thanks. That will be very helpful, and I can use all the help I can get at this point. I didn't think about the window just losing focus. That very well may have been the case, and would actually make a lot more sense to me for some reason. Link to comment https://forums.kleientertainment.com/forums/topic/32577-my-mod-is-freezing-my-game-even-after-i-reverted-my-changes/#findComment-428104 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now