plotmissed Posted June 5, 2019 Share Posted June 5, 2019 I want to make walls immune to hail in hurricane season. In modmain.lua i have: local TUNING = GLOBAL.TUNING TUNING.HURRICANE_HAIL_DAMAGE = 0 but it doesn’t work. Any help is much appreciated! Link to comment https://forums.kleientertainment.com/forums/topic/107139-simple-tuning-mod-need-help/ Share on other sites More sharing options...
Ultroman Posted June 24, 2019 Share Posted June 24, 2019 (edited) If you search for HURRICANE_HAIL_DAMAGE in the game code, you can see that it is only used for dealing damage to player characters, and even that part has been commented out, so HURRICANE_HAIL_DAMAGE currently does nothing. You need to figure out where the damage to the walls is being applied, in order to figure out which variable or function to change. I can't find the exact place in the code where this happens. I did see that walls can be destroyed by blowing winds, though. Edited June 24, 2019 by Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/107139-simple-tuning-mod-need-help/#findComment-1213621 Share on other sites More sharing options...
plotmissed Posted June 26, 2019 Author Share Posted June 26, 2019 Hey thanks very much for your reply. Yeah it’s the blowing winds not the hail, you’re right. I was confused because I read an old thread about hail. I forgot to comment that I figured it out: It’s in walls.lua. Only Wood Walls and Hay Walls are affected. I just changed "windblown_damage=0", but you can probably just delete the whole windblown stuff, didn’t try that yet. {name = "wood", tags={"wood"}, loot = "log", maxloots = 2, maxhealth=TUNING.WOODWALL_HEALTH, flammable = true, buildsound="dontstarve/common/place_structure_wood", destroysound="dontstarve/common/destroy_wood", windblown_speed=TUNING.WALLWOOD_WINDBLOWN_SPEED, windblown_fall_chance=TUNING.WALLWOOD_WINDBLOWN_DAMAGE_CHANCE, windblown_damage=0}, {name = "hay", tags={"grass"}, loot = "cutgrass", maxloots = 2, maxhealth=TUNING.HAYWALL_HEALTH, flammable = true, buildsound="dontstarve/common/place_structure_straw", destroysound="dontstarve/common/destroy_straw", windblown_speed=TUNING.WALLHAY_WINDBLOWN_SPEED, windblown_fall_chance=TUNING.WALLHAY_WINDBLOWN_DAMAGE_CHANCE, windblown_damage=0}, Link to comment https://forums.kleientertainment.com/forums/topic/107139-simple-tuning-mod-need-help/#findComment-1214308 Share on other sites More sharing options...
plotmissed Posted June 28, 2019 Author Share Posted June 28, 2019 I ended up using this because it’s much simpler: local TUNING = GLOBAL.TUNING TUNING.WALLWOOD_WINDBLOWN_DAMAGE = 0 Link to comment https://forums.kleientertainment.com/forums/topic/107139-simple-tuning-mod-need-help/#findComment-1215803 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