MidrealmDM Posted May 7, 2014 Share Posted May 7, 2014 (edited) I am attempting to put in a description of an item for all game characters but Webber and Wigfrid are causing problems. GLOBAL.STRINGS.CHARACTERS.WATHGRITHR.DESCRIBE.<ITEM> = "Text."GLOBAL.STRINGS.CHARACTERS.WEBBER.DESCRIBE.<ITEM> = "Text." but I keep getting the error .. ...s/common/dont_starve/data/../mods/waiter/modmain.lua:374: attempt to index field 'WATHGRITHR' (a nil value) All other characters seem to work fineany thoughts or ideas? Edited May 7, 2014 by MidrealmDM Link to comment https://forums.kleientertainment.com/forums/topic/36049-wigfrid-and-webber-speech-impediments/ Share on other sites More sharing options...
Rincevvind Posted May 7, 2014 Share Posted May 7, 2014 (edited) bcz GLOBAL.STRINGS.CHARACTERS.WATHGRITHR array is not existsyou have to create it before accessing to array keysGLOBAL.STRINGS.CHARACTERS.WATHGRITHR = {}GLOBAL.STRINGS.CHARACTERS.WATHGRITHR.DESCRIBE = {}GLOBAL.STRINGS.CHARACTERS.WATHGRITHR.DESCRIBE.<ITEM> = "Text." Edited May 7, 2014 by Rincevvind Link to comment https://forums.kleientertainment.com/forums/topic/36049-wigfrid-and-webber-speech-impediments/#findComment-472751 Share on other sites More sharing options...
simplex Posted May 7, 2014 Share Posted May 7, 2014 You need to do it as a Sim post init. Their strings are only set when they're spawned. Link to comment https://forums.kleientertainment.com/forums/topic/36049-wigfrid-and-webber-speech-impediments/#findComment-472777 Share on other sites More sharing options...
Developer SethR Posted May 7, 2014 Developer Share Posted May 7, 2014 Hey @MidrealmDM, I just made a post about this on a thread in the RoG bugs forum from a while ago 'cause I made some changes that should make this possible without a post init. Details here: http://forums.kleientertainment.com/topic/34583-cannot-add-new-strings-to-dlc-characters/ Edit: pinging _Q_ as well (just saw your older thread on this). Link to comment https://forums.kleientertainment.com/forums/topic/36049-wigfrid-and-webber-speech-impediments/#findComment-473951 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