Jasperagoose Posted February 11, 2023 Share Posted February 11, 2023 So, I have recently tried creating a character mod for Don't starve together named Wasper O. T. Duff, but every time I try to play in a world with the mod to test it, my game crashes. I have linked the client_log.txt for anyone who is maybe more familiar with modding than me to see what might be wrong. client_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/ Share on other sites More sharing options...
Merkyrrie Posted February 11, 2023 Share Posted February 11, 2023 [00:00:44]: error loading module 'speech_wasper' from file '../mods/wasper\scripts\speech_wasper.lua': [string "cannot OLDFILEACCESSMETHOD @../mods/wasper\scripts\speech_waspe..."]:501: '}' expected (to close '{' at line 10) near 'ANTLION' Here is where the error is, if you go into your speech_wasper file then search "ANTLION" or go to line 501, you just need to close the curly brace ANTLION = { GENERIC = "It wants something from me.", VERYHAPPY = "I think we're on good terms.", UNHAPPY = "It looks mad.", }, It would look like this, I'm assuming you're just missing the }, part. If not then you might be missing the a comma after one of the lines. If its none of that, you can send the same snippet from your code Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620729 Share on other sites More sharing options...
Jasperagoose Posted February 12, 2023 Author Share Posted February 12, 2023 Thanks for the reply Merkyrrie, I checked the speech file and it was fine, like the curly brace was closed and all. This is the same snippet that you showed me but from my code: Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620733 Share on other sites More sharing options...
Merkyrrie Posted February 12, 2023 Share Posted February 12, 2023 1 hour ago, Jasperagoose said: Thanks for the reply Merkyrrie, I checked the speech file and it was fine, like the curly brace was closed and all. This is the same snippet that you showed me but from my code: Oh you know what, judging from the "on line 10" in the error log I was very wrong about where the error was, my bad. For some reason its expecting you to close the curly brace after return near the start of the file at ANTLION instead of the actual place you'd want to. Its kind of hard to judge exactly what part of the file is missing something. I can look through it if you want, but there's almost certainly a missing or additional comma or curly brace somewhere breaking which pieces of curly braces it thinks goes to what. Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620741 Share on other sites More sharing options...
Jasperagoose Posted February 12, 2023 Author Share Posted February 12, 2023 1 hour ago, Merkyrrie said: Oh you know what, judging from the "on line 10" in the error log I was very wrong about where the error was, my bad. For some reason its expecting you to close the curly brace after return near the start of the file at ANTLION instead of the actual place you'd want to. Its kind of hard to judge exactly what part of the file is missing something. I can look through it if you want, but there's almost certainly a missing or additional comma or curly brace somewhere breaking which pieces of curly braces it thinks goes to what. Sorry for the late response, had to run some errands. I will send you the speech file so you can maybe look through it to see what exactly could be wrong. speech_wasper.lua Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620745 Share on other sites More sharing options...
Merkyrrie Posted February 12, 2023 Share Posted February 12, 2023 2 hours ago, Jasperagoose said: Sorry for the late response, had to run some errands. I will send you the speech file so you can maybe look through it to see what exactly could be wrong. speech_wasper.lua 117.79 kB · 0 downloads Yeah its just a missing comma after the } on line 500 Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620750 Share on other sites More sharing options...
Jasperagoose Posted February 12, 2023 Author Share Posted February 12, 2023 7 hours ago, Merkyrrie said: Yeah its just a missing comma after the } on line 500 I put a comma after the } on line 500, but it still crashes so Im guessing there might still be a problem with one of the files or something. Here is the updated client_log.txt. client_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620770 Share on other sites More sharing options...
Jasperagoose Posted February 12, 2023 Author Share Posted February 12, 2023 8 hours ago, Merkyrrie said: Yeah its just a missing comma after the } on line 500 I have also tested and found out for sure that the problem is the speech file because I made another mod that was identical but the speech file was unchanged from the starting one, and it worked fine in game. Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620773 Share on other sites More sharing options...
Merkyrrie Posted February 12, 2023 Share Posted February 12, 2023 7 hours ago, Jasperagoose said: I put a comma after the } on line 500, but it still crashes so Im guessing there might still be a problem with one of the files or something. Here is the updated client_log.txt. client_log.txt 37.97 kB · 1 download Line 2642 has an extra " and . after the quote, just delete those and keep the comma. Also 9/10 the error in the code will be on or right before the line mentioned in the log And yeah, the trouble with going through 3000 lines of code changing each quote is you're bound to mess up somewhere and you won't know until its running Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620792 Share on other sites More sharing options...
Jasperagoose Posted February 12, 2023 Author Share Posted February 12, 2023 1 hour ago, Merkyrrie said: Line 2642 has an extra " and . after the quote, just delete those and keep the comma. Also 9/10 the error in the code will be on or right before the line mentioned in the log And yeah, the trouble with going through 3000 lines of code changing each quote is you're bound to mess up somewhere and you won't know until its running Thanks for all the help so far by the way. Also I found an error in the client_log file, but I don't exactly understand what it means. I would appreciate it if you were to give your insight into what this could be asking me to do: Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620794 Share on other sites More sharing options...
Chesed Posted February 12, 2023 Share Posted February 12, 2023 (edited) 30 minutes ago, Jasperagoose said: Thanks for all the help so far by the way. Also I found an error in the client_log file, but I don't exactly understand what it means. I would appreciate it if you were to give your insight into what this could be asking me to do: Hi there. This is happening because every line after 2995 is not being included in the opening brackets of the speech file. Something is causing the bracket to close before it should. I have a hunch it's the closing bracket on line 500 causing this - it shouldn't be there. Try deleting it and see if that helps. Edited February 12, 2023 by Chesed Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620796 Share on other sites More sharing options...
Jasperagoose Posted February 12, 2023 Author Share Posted February 12, 2023 7 minutes ago, Chesed said: Hi there. This is happening because every line after 2995 is not being included in the opening brackets of the speech file. Something is causing the bracket to close before it should. I have a hunch it's the closing bracket on line 500 causing this - it shouldn't be there. Try deleting it. Thank you so much, it worked. I tested the mod and after I deleted that closing bracket it didn't crash and worked. I am truly thankful for all of your help Merkyrrie and Chesed. 2 Link to comment https://forums.kleientertainment.com/forums/topic/146013-the-character-mod-i-created-keeps-crashing-when-i-try-to-play-in-a-world-with-it/#findComment-1620797 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