CrustyJuicyNipples Posted August 6, 2016 Share Posted August 6, 2016 Hi, I made a custom character not too long ago and a problem I have is that after I try to enable it in the mod menu the game goes to the loading screen and then just crashes and the game closes. I'm not sure what the problem is, but I was hoping someone could help, I will even put the logs here. log2.txt Link to comment Share on other sites More sharing options...
Andmann Posted August 6, 2016 Share Posted August 6, 2016 looks like peter has a speaking disorder =D error loading module 'speech_peter' from file '..\mods\peter\scripts\speech_peter.lua': ..\mods\peter\scripts\speech_peter.lua:247: '}' expected (to close '{' at line 107) near 'FLOWER_CAVE' LUA ERROR stack traceback: there's a syntax error in speech_peter.lua Link to comment Share on other sites More sharing options...
CrustyJuicyNipples Posted August 6, 2016 Author Share Posted August 6, 2016 2 hours ago, Andmann said: looks like peter has a speaking disorder =D error loading module 'speech_peter' from file '..\mods\peter\scripts\speech_peter.lua': ..\mods\peter\scripts\speech_peter.lua:247: '}' expected (to close '{' at line 107) near 'FLOWER_CAVE' LUA ERROR stack traceback: there's a syntax error in speech_peter.lua @Andmann How do I find out where this error is? Is there a way to go about doing it or do I have to read through everything to find it? Link to comment Share on other sites More sharing options...
Serpens Posted August 6, 2016 Share Posted August 6, 2016 it is in speech_peter.lua somewhrere between line 247 and 107. You have to look for those brackets { } , somewhere you forgot to close such a bracket. You can use notepad++ to edit .lua files. notepad++ can highlight brackets, so you will see which one is the bracket, that does'nt close correctly Link to comment Share on other sites More sharing options...
CrustyJuicyNipples Posted August 6, 2016 Author Share Posted August 6, 2016 (edited) @Serpens @Andmann Okay so there is something wrong with the speech file, I've looked through it but eveything seems fine, can you guys check? Would be appreciated. Edited August 7, 2016 by CrustyJuicyNipples Link to comment Share on other sites More sharing options...
Andmann Posted August 7, 2016 Share Posted August 7, 2016 (edited) { HOUNDSTOOTH="Don't poke yourself with this!", ARMORSNURTLESHELL="Pretty neat.", BAT="GET AWAY!", BATBAT = "I hate bats...", BATWING="Stay dead please!", BATWING_COOKED="Am I really that hungry?.", BEDROLL_FURRY="I still miss my old bed...", BUNNYMAN="Hello Mr. Bunny!", FLOWER_CAVE="Magic makes it glow...I think.", FLOWER_CAVE_DOUBLE="Magic makes it glow...I think.", FLOWER_CAVE_TRIPLE="Magic makes it glow...I think.", GUANO="Why would I want to pick up poop in the first place?", LANTERN="Keep the scary darkness away!", LIGHTBULB="A tasty source of light.", MANRABBIT_TAIL="This disturbs me.", MUSHTREE_TALL ="It's pretty in a weird sort of way.", MUSHTREE_MEDIUM="Mom would cook mushrooms often...", MUSHTREE_SMALL ="Aw, it's so little!", RABBITHOUSE= } so 1. we are missing a "," at the end of this subtable. 2 are you sure thats how this entire sub table is supposed to be implemented? All other subtables have some name or string as their key tho, this probably just means that they will receive a number for a key. 3. RABBITHOUSE will return a nil or an error not sure but both won't be healthy just give it some string value Edited August 7, 2016 by Andmann Link to comment Share on other sites More sharing options...
CrustyJuicyNipples Posted August 7, 2016 Author Share Posted August 7, 2016 @Andmann The problem has been solved, I was missing a comma at the end of one of my subtable, thanks for helping me I'm new at all of this and thank you for your time. Link to comment 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