Jump to content

Messed up dialogue on custom character


Recommended Posts

Hey! I've been using the Extended Sample Character template to put together a mod, and it was working just fine until I edited the speech file. I feel pretty confident that I accidentally erased or added something that threw the whole file off, based on this message in my logs: 

Quote

[00:00:54]: error loading module 'speech_megan' from file '../mods/Megan\scripts\speech_megan.lua':
	[string "cannot OLDFILEACCESSMETHOD @../mods/Megan\scripts\speech_megan...."]:277: '}' expected (to close '{' at line 165) near 'WORMLIGHT

But unfortunately I'm kind of terrible with coding so I have no idea how to fix it. Any pointers?

Here's both the log and the speech file, if those will be any help at all. Let me know if there's anything else I should link to! (also apologies if this is the wrong board to ask this, oops)

https://dl.dropboxusercontent.com/u/104514748/client_log.txt
https://dl.dropboxusercontent.com/u/104514748/speech_megan.lua

edit: Oh yeah I should say that it's the one for DST, not DS or SW.

Edited by WORLDSBIGGEST
Link to comment
Share on other sites

5 minutes ago, Mobbstar said:

The line with "WEBBERSKULL" is missing a coma after the string.

BLA = "bla",

I added that, and the error message changed- so it's safe to guess this is the problem! I already found a couple other lines without commas so I'll try running it again after I go through the whole file. Thank you so much!

Link to comment
Share on other sites

Alright, I cleaned up all the commas, and got a different error message:

Quote


[00:00:41]: error loading module 'speech_megan' from file '../mods/Megan\scripts\speech_megan.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Megan\scripts\speech_megan...."]:1443: '<eof>' expected near '='

I went through the file and found a bunch of = signs that were improperly spaced and fixed those, but the same error keeps coming up. What the heck did I do to this file?

https://dl.dropboxusercontent.com/u/104514748/client_log.txt

https://dl.dropboxusercontent.com/u/104514748/speech_megan.lua

(You might need to f5 a couple of times if these look the same as before)

Link to comment
Share on other sites

@WORLDSBIGGEST, removed extra }, at line 385; added } at the end of the file - http://pastebin.com/z1Sdnaav .

 

@V2C, as noted in the speech_megan.lua linked above, speech_wilson.lua (which I guess it's based on) contains duplicate entries - NIGHTMARE_TIMEPIECE, BATBAT, TELEBASE, GEMSOCKET, TURF_CARPETFLOOR, TURF_CHECKERFLOOR, TURF_DIRT, TURF_FOREST, TURF_GRASS, TURF_MARSH, TURF_ROAD, TURF_ROCKY, TURF_SAVANNA, TURF_WOODFLOOR (all under DESCRIBE).

Edited by Muche
Link to comment
Share on other sites

19 minutes ago, Muche said:

@WORLDSBIGGEST, removed extra }, at line 385; added } at the end of the file - http://pastebin.com/z1Sdnaav .

 

@V2C, as noted in the speech_megan.lua linked above, speech_wilson.lua (which I guess it's based on) contains duplicate entries - NIGHTMARE_TIMEPIECE, BATBAT, TELEBASE, GEMSOCKET, TURF_CARPETFLOOR, TURF_CHECKERFLOOR, TURF_DIRT, TURF_FOREST, TURF_GRASS, TURF_MARSH, TURF_ROAD, TURF_ROCKY, TURF_SAVANNA, TURF_WOODFLOOR (all under DESCRIBE).

Aaaa, you're a lifesaver! Thank you so much!

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...