AlbertDelRiver Posted January 20, 2017 Share Posted January 20, 2017 I have all the coding neccesary, but I have no idea how to implement the coding into a mod, or even less how to package one. I tried using the mod uploader but every time I enabled the mod, the game would crash. I have done all the changes needed for it to work, it works perfectly when I save the changes and play on my own, however when I try to package the mod or upload it, the game crashes. It's a tweak of Wolfgang's hunger perk and an overhaul, the tuning.lua, I just changed his stats slightly and his wolfgang.lua programming, I removed the linearity mechanic and simplified it. The only coding I changed for tuning.lua was this below: WOLFGANG_HUNGER = 300, WOLFGANG_START_HUNGER = 125, WOLFGANG_START_MIGHTY_THRESH = 299, WOLFGANG_END_MIGHTY_THRESH = 101, WOLFGANG_START_WIMPY_THRESH = 100, WOLFGANG_END_WIMPY_THRESH = 105, WOLFGANG_HUNGER_RATE_MULT_MIGHTY = 3, WOLFGANG_HUNGER_RATE_MULT_NORMAL = 1.5, WOLFGANG_HUNGER_RATE_MULT_WIMPY = 1, WOLFGANG_HEALTH_MIGHTY = 300, WOLFGANG_HEALTH_NORMAL = 200, WOLFGANG_HEALTH_WIMPY = 100, WOLFGANG_ATTACKMULT_MIGHTY_MAX = 2, WOLFGANG_ATTACKMULT_MIGHTY_MIN = 2, WOLFGANG_ATTACKMULT_NORMAL = 1, WOLFGANG_ATTACKMULT_WIMPY_MAX = .5, WOLFGANG_ATTACKMULT_WIMPY_MIN = .5, and for wolfgang.lua these are the changes below too: if inst.strength == "mighty" then local mighty_start = (TUNING.WOLFGANG_START_MIGHTY_THRESH/TUNING.WOLFGANG_HUNGER) local mighty_percent = math.max(0, (percent - mighty_start) / (1 - mighty_start)) damage_mult = easing.linear(mighty_percent, TUNING.WOLFGANG_ATTACKMULT_MIGHTY_MIN, TUNING.WOLFGANG_ATTACKMULT_MIGHTY_MAX - TUNING.WOLFGANG_ATTACKMULT_MIGHTY_MIN, 1) health_max = TUNING.WOLFGANG_HEALTH_MIGHTY hunger_rate = TUNING.WOLFGANG_HUNGER_RATE_MULT_MIGHTY scale = mighty_scale elseif inst.strength == "wimpy" then local wimpy_start = (TUNING.WOLFGANG_START_WIMPY_THRESH/TUNING.WOLFGANG_HUNGER) local wimpy_percent = math.min(1, percent/wimpy_start ) damage_mult = easing.linear(wimpy_percent, TUNING.WOLFGANG_ATTACKMULT_WIMPY_MIN, TUNING.WOLFGANG_ATTACKMULT_WIMPY_MAX - TUNING.WOLFGANG_ATTACKMULT_WIMPY_MIN, 1) health_max = TUNING.WOLFGANG_HEALTH_WIMPY hunger_rate = TUNING.WOLFGANG_HUNGER_RATE_MULT_WIMPY scale = wimpy_scale end inst.components.sanity.night_drain_mult = 1.33 inst.components.sanity.neg_aura_mult = 1.33 If someone walked me through how to upload this tweak of Wolfgang's coding, I would greatly appreciate it! Based on this thread tuning.lua wolfgang.lua Link to comment https://forums.kleientertainment.com/forums/topic/73485-need-help-with-packing-a-character-tweak/ 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