Jump to content

Game crashes after enabling custom character


Recommended Posts

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

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

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

{
		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 by Andmann
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...