Jump to content

Recommended Posts

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)

 

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 by Neutral_Steve
Maybe I can cause an misunderstood.

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