JoelMatthews Posted November 11, 2015 Share Posted November 11, 2015 Alright, so I got the mod working. Tex files are all in place and my other scripts are working just dandy. Otherwise, going perfectly. But there's a little problem: I can't get custom speech(or examinations) to work. I wrote some lines and put them in charactername/scripts/ directly (as speech_charactername.lua) and put this line of code in /prefabs/charactername.lua: STRINGS.CHARACTERS.charactername= require "speech_charactername" That didn't work. Only Wilson's lines popped up when I examined stuff. Then I tried making an extra folder, namely scripts/speech, then put this into modmain.lua: modimport "scripts/speech/speech_charactername.lua" Didn't work either. I'll provide a log file if it's needed, but I don't know if it'll help in this situation since the mod itself seems to be running just fine. Does anybody know what I need to do? Link to comment https://forums.kleientertainment.com/forums/topic/58969-requesting-help-with-a-character-mod/ Share on other sites More sharing options...
Arkathorn Posted November 12, 2015 Share Posted November 12, 2015 Firstly, I assume that charactername is also your mod folder's name? Did you capitalize? The correct form would be:STRINGS.CHARACTERS.CHARACTERNAME = require "speech_charactername"Also, did you copy 'speech_wilson' (or another speech file) to create your speech file? It needs to return a very specific structure of table. Link to comment https://forums.kleientertainment.com/forums/topic/58969-requesting-help-with-a-character-mod/#findComment-685655 Share on other sites More sharing options...
Mobbstar Posted November 12, 2015 Share Posted November 12, 2015 The speech file needs to be in your mods' data folder, not in a sub-folder. The file name must be lowercase (not to be mistaken with the table of loaded strings, which gets set as shown above by Arkathorn). Link to comment https://forums.kleientertainment.com/forums/topic/58969-requesting-help-with-a-character-mod/#findComment-685674 Share on other sites More sharing options...
JoelMatthews Posted November 12, 2015 Author Share Posted November 12, 2015 Ah! The caps on the table of loaded strings was the problem. Thank you both very much!!! Link to comment https://forums.kleientertainment.com/forums/topic/58969-requesting-help-with-a-character-mod/#findComment-685797 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