YAW Y33T Posted August 11, 2019 Share Posted August 11, 2019 My mod has a problem: my lines that I made for him won't be read, and instead it will be Wilson's quotes. I made my quotes unique, but not even something as simple as examining saplings won't be my quotes. I'm also gonna upload the speech file I have right now. speech_williams.lua Link to comment Share on other sites More sharing options...
Thomas Die Posted August 11, 2019 Share Posted August 11, 2019 STRINGS.CHARACTERS.character name = require "speech_character name" i think you need this in your mod main noice apple btw, but no gapples allowed tho Link to comment Share on other sites More sharing options...
YAW Y33T Posted August 11, 2019 Author Share Posted August 11, 2019 Well I can upload my modmain to see what it is right now. You can see that it IS included, but it wont work, still. modmain.lua Link to comment Share on other sites More sharing options...
YAW Y33T Posted August 11, 2019 Author Share Posted August 11, 2019 4 hours ago, YAW Y33T said: Well I can upload my modmain to see what it is right now. You can see that it IS included, but it wont work, still. modmain.lua I think that I found the problem. You see this line in the modmain? Quote STRINGS.CHARACTERS.williams = require "speech_williams" It was meant to be like this: Quote STRINGS.CHARACTERS.WILLIAMS = require "speech_williams" God, I'm so stupid. This post made me realize it: On 6/29/2019 at 7:51 PM, Ultroman said: That said, you should not need to do that when you're making a character mod. Most character mods have a line similar to this in their master_postinit: STRINGS.CHARACTERS.GIR = require "speech_gir" Link to comment Share on other sites More sharing options...
Ultroman Posted August 11, 2019 Share Posted August 11, 2019 (edited) Yes, variable names are case-sensitive, and in the case of the speech STRINGS structure, it is just a bunch of variables on nested objects with a bunch of variables...and so on. STRINGS is an object, which has a variable called CHARACTERS which is also an object, which has variables called WILSON and WILLOW and with your mod now also WILLIAMS. This WILLIAMS variable now gets the entire structure of your speech file, and every time you see something like this in the speech file SOMETHING = { then the SOMETHING-variable is being set to be another object with its own variables in it, and whenever you see SOMETHING = "" then the SOMETHING variable is being set to be a string. Edited August 12, 2019 by Ultroman Link to comment Share on other sites More sharing options...
Thomas Die Posted August 12, 2019 Share Posted August 12, 2019 sorry i didn't realize you posted back ˚‧º·(˚ ˃̣̣̥᷄⌓˂̣̣̥᷅ )‧º·˚ Link to comment Share on other sites More sharing options...
YAW Y33T Posted August 12, 2019 Author Share Posted August 12, 2019 (edited) its ok Thank you for the explanation, I disappoint myself sometimes. And also about your post, I was using the Extended Sample Character template. I think I accidentally made the ESCTEMPLATE williams, not WILLIAMS. 19 hours ago, Ultroman said: Yes, variable names are case-sensitive, Edited August 12, 2019 by YAW Y33T Link to comment Share on other sites More sharing options...
Thomas Die Posted August 12, 2019 Share Posted August 12, 2019 never be disapionted in yourself unless you gave up, but instead you carried on and solved the problem good job UwU Link to comment Share on other sites More sharing options...
YAW Y33T Posted August 12, 2019 Author Share Posted August 12, 2019 Just now, thomas4845 said: never be disapionted in yourself unless you gave up, but instead you carried on and solved the problem good job UwU Wasn't saying I was dissapointed to the point of giving up, I just make myself a bit sad, but still carry all the weight on my back. Thanks for the motivation, I actually updated the mod. It's on the DST workshop as "John Williams" Link to comment Share on other sites More sharing options...
Thomas Die Posted August 12, 2019 Share Posted August 12, 2019 i'll check it out Link to comment Share on other sites More sharing options...
YAW Y33T Posted August 12, 2019 Author Share Posted August 12, 2019 Thanks. 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