Jump to content

Recommended Posts

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 fine

any thoughts or ideas?

Edited by MidrealmDM

bcz GLOBAL.STRINGS.CHARACTERS.WATHGRITHR array is not exists

you have to create it before accessing to array keys

GLOBAL.STRINGS.CHARACTERS.WATHGRITHR = {}GLOBAL.STRINGS.CHARACTERS.WATHGRITHR.DESCRIBE = {}GLOBAL.STRINGS.CHARACTERS.WATHGRITHR.DESCRIBE.<ITEM> = "Text."
Edited by Rincevvind
  • Developer

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

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