MF99K Posted March 4, 2016 Share Posted March 4, 2016 I have a mod that changes how darkness works, and the game seems to not like how I set up custom tuning variables. How do I do this correctly? grue.zip Link to comment https://forums.kleientertainment.com/forums/topic/65098-custom-new-configurable-tuning/ Share on other sites More sharing options...
Muche Posted March 4, 2016 Share Posted March 4, 2016 My guess is that looking into log would indicate what's wrong. Anyways, try GLOBAL.TUNING.GRUEDAMAGE = GetModConfigData("gruedamage") GLOBAL.TUNING.GRUE = {} GLOBAL.TUNING.GRUE.SANITY = GetModConfigData("sanity") GLOBAL.TUNING.GRUE.SPEED = GetModConfigData("hittime") Also, I think self.inst.components.sanity:DoDelta = GLOBAL.TUNING.GRUE.SANITY should be self.inst.components.sanity:DoDelta(GLOBAL.TUNING.GRUE.SANITY) Link to comment https://forums.kleientertainment.com/forums/topic/65098-custom-new-configurable-tuning/#findComment-729662 Share on other sites More sharing options...
Neu7ral Posted March 4, 2016 Share Posted March 4, 2016 (edited) Here, I changed somethings, like TUNING.GRUE.SANITY/SPEED to TUNING.GRUESANITY/SPEED, The options worked perfectly, without problems, I deleted something who make the game crash too, is related about put an GetModConfigData outside of the modmain.lua Didn't tested about the speed :s Also, like @Muche said i changed the Sanity:Dodelta for work properly grue.rar Edited March 4, 2016 by Neutral_Steve Maybe I can cause an misunderstood. Link to comment https://forums.kleientertainment.com/forums/topic/65098-custom-new-configurable-tuning/#findComment-729670 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