Jump to content

Recommended Posts

Hi all, I'm here to request some assistance. I don't know what's exactly wrong with my mod's speech thing, so I come here in hopes of someone helping me out. I've attached both my latest crash log and the speech file itself in hopes someone can clarify and help me through the steps as to why this is the way it is.

Please help, I'm extremely new to the whole modding thing and after spending 4 hours just writing text I don't want to do it all again. Cheers!

client_log_2023-03-20-23-42-29.txt speech_klara.lua

Hey hey.

On line 1497 you have an extra quotation mark at the end of your string:

Quote

BURNT = "Should've not let them cook."",

On line 2591 you have an extra comma:

Quote

      BURNT = "it could not be saved.",,

Fixing these both let me launch the server without any crashes.

Hi! I've done as said, and, although it did give a little bit of hope, it crashed again. I attached the latest crash log, and, I've tested without the speech thing, and it seems to be a problem with just that.

Sorry to be an inconvenience, I've been trying to fix this for some hours now and it's driving me crazy. Thanks for the reply. though ^^ 

client_log_2023-03-21-02-04-55.txt

It's being prickly, even with the Visual Studio code and Lua extension, It doesn't detect any problems with the file. I've attached every .lua file I have for the mod, latest crash thing and screenshots of what shows in the speech thing.

This is bugging me so much, I'm sorry, I just want to know what I did wrong so I can fix it ashdjahsdj

The modmain.lua file itself seems to say it have errors but it worked just fine when I launched the game with it and without the speech thing.

Hope this helps in finding out the error ^^

image.png

klara.lua modinfo.lua modmain.lua speech_klara.lua client_log_2023-03-21-08-22-33.txt

Make sure you've enabled Lua extension (either version is OK, but the problems displayed may vary), and then format document. The format command can be found by ctrl+shift+p (this shortcut opens command panel).

And your speech_klara is now fully correct. The picture attached is what it will look like if there are problems.

Snipaste_2023-03-21_20-41-57.png

Edited by Rickzzs

Oh my goodness, I'm so sorry for the late reply! I could not get online yesterday.

There appears to be a stray Z on line 409. (Be sure to not accidentally delete the comma too like I just did):

Quote

ANNOUNCE_KILLEDPLANT =
    {
        "only_used_by_wormwood",
    },z

These strings seem to be missing in the first file you sent, so that's how I managed to get the game to run.

This seems to be the only error in the file now! Very sorry if you've already fixed it in the time I was gone.

For reference, you are looking for this kind of message in the client log. This is from client_log_2023-03-21-02-04-55 (the second to last one you posted):

Quote

[00:01:12]: error loading module 'speech_klara' from file '../mods/Klara\scripts\speech_klara.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Klara\scripts\speech_klara...."]:410: '}' expected (to close '{' at line 10) near 'ANNOUNCE_GROWPLANT'
LUA ERROR stack traceback:

It will generally point you to either the line that is wrong, or somewhere after it. That's how I'm finding the errors.

Edited by Chesed
clarifying which client log the error was in

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
×
  • Create New...