YesterdaysMindr Posted May 21, 2016 Share Posted May 21, 2016 (edited) I'm editing things in the tuning with GLOBAL.TUNING. but it's spitting out a crash - why? local TUNING = GLOBAL.TUNING local ROSE_CHANCE = GLOBAL.ROSE_CHANCE TUNING.WILSON_HUNGER = 300 -- double normal TUNING.NIGHTSWORD_DAMAGE = wilson_attack*3 -- higher damage on dark sword. Gonna make sanity drain even quicker though. TUNING.TINY_FUEL = seg_time*.3 --slightly buffed all fuel times TUNING.SMALL_FUEL = seg_time * 1 TUNING.MED_FUEL = seg_time * 2 TUNING.TORCH_RAIN_RATE = 1.2 -- normally 1.5 -- calories_per_day is equal to 75 hunger points. TUNING.CALORIES_TINY = calories_per_day/6 -- berries - Buffed slightly. TUNING.CALORIES_SMALL = calories_per_day/6 -- veggies & morsels TUNING.CALORIES_MEDSMALL = calories_per_day/4 -- Unchanged. Used for leafy meat, I believe. TUNING.CALORIES_MED = calories_per_day/3 -- meat TUNING.CALORIES_LARGE = calories_per_day/2 -- cooked meat TUNING.CALORIES_HUGE = calories_per_day*1.5 -- bacon & eggs, and some other stuff. TUNING.CALORIES_SUPERHUGE = calories_per_day*2.5 -- meaty stew TUNING.WX78_MAX_HUNGER = 300 -- normally 200 TUNING.SMALLBIRD_HUNGER = 40 -- Bigger stomach for the little guy. TUNING.SANITY_SUPERTINY = 1 -- the only things i can find for this are in Shipwrecked. TUNING.SANITY_TINY = 7 -- most crockpot dishes TUNING.SANITY_SMALL = 12 -- normally 10 TUNING.SANITY_MED = 20 -- normally 15, most sanity foods.. jerky, taffy, etc. TUNING.SANITY_MEDLARGE = 25 -- melon popsicle and repairing the ruins furniture TUNING.SANITY_LARGE = 40 -- Killing terrorbeaks gives slightly more sanity. Also bedrolls, but only in singleplayer. TUNING.SANITY_HUGE = 70 -- Normally 50, for tents, ice cream, etc. TUNING.INSULATION_TINY = seg_time*1.5 -- slightly longer TUNING.MIN_CROP_GROW_TEMP = 0 -- normally 5, should now grow in early winter TUNING.CROP_RAIN_BONUS = 5 TUNING.MAX_TUMBLEWEEDS_PER_SPAWNER = 20 -- I've gone mad. Normally 7. Expect many, many tumbleweed. TUNING.MIN_TUMBLEWEED_SPAWN_PERIOD = total_day_time*.2 TUNING.MAX_TUMBLEWEED_SPAWN_PERIOD = total_day_time*1.3 TUNING.RESURRECT_HEALTH = 100 -- normally 50, can't buff it any higher without fear of breaking wes TUNING.CRAZINESS_MED = -200/(day_time) -- more sanity debuff on nightsword- good for kiting TUNING.PORTAL_HEALTH_PENALTY = 0.125 TUNING.HEART_HEALTH_PENALTY = 0.1 TUNING.ICEHAT_COOLER = 25 TUNING.WATERMELON_COOLER = 35 TUNING.MINIFAN_COOLER = 45 TUNING.WILSON_HEALTH = 160 -- 10 more TUNING.SPIKE_DAMAGE = wilson_attack*1.8 -- 62ish damage instead of 51 TUNING.BEAVER_DAMAGE = wilson_attack*1.3 -- buff the poor beaver. TUNING.BEAVER_WOOD_DAMAGE = wilson_attack*0.6 -- slightly higher TUNING.PERD_SPAWNCHANCE = 0.15 -- drumstick heaven! TUNING.PERD_RUN_SPEED = 2 -- have fun catching em! TUNING.PERD_WALK_SPEED = 1 ROSE_CHANCE = 0.1 Edited May 21, 2016 by engiSonic Link to comment Share on other sites More sharing options...
CarlZalph Posted May 21, 2016 Share Posted May 21, 2016 You don't have "seg_time" "calories_per_day" "day_time" "total_day_time" or "wilson_attack" defined, as they are a local variable in tuning.lua. Either copy paste them into your modmain.lua or multiply/add the existing tuning variables by a constant. Link to comment Share on other sites More sharing options...
YesterdaysMindr Posted May 21, 2016 Author Share Posted May 21, 2016 (edited) Okay, I'll try! Okay, I copy-pasted but it's still throwing out an error local TUNING = GLOBAL.TUNING local ROSE_CHANCE = GLOBAL.ROSE_CHANCE local seg_time = 30 local total_day_time = seg_time*16 local day_segs = 10 local dusk_segs = 4 local night_segs = 2 local day_time = seg_time * day_segs local dusk_time = seg_time * dusk_segs local night_time = seg_time * night_segs local multiplayer_attack_modifier = 1--0.6--0.75 local multiplayer_goldentool_modifier = 1--0.5--0.75 local multiplayer_armor_durability_modifier = 0.7 local multiplayer_armor_absorption_modifier = 1--0.75 local multiplayer_wildlife_respawn_modifier = 1--2 local wilson_attack = 34 * multiplayer_attack_modifier local wilson_health = 150 local calories_per_day = 75 local wilson_attack_period = .1 TUNING.WILSON_HUNGER = 300 -- double normal TUNING.NIGHTSWORD_DAMAGE = wilson_attack*3 -- higher damage on dark sword. Gonna make sanity drain even quicker though. TUNING.TINY_FUEL = seg_time*.3 --slightly buffed all fuel times TUNING.SMALL_FUEL = seg_time * 1 TUNING.MED_FUEL = seg_time * 2 TUNING.TORCH_RAIN_RATE = 1.2 -- normally 1.5 -- calories_per_day is equal to 75 hunger points. TUNING.CALORIES_TINY = calories_per_day/6 -- berries - Buffed slightly. TUNING.CALORIES_SMALL = calories_per_day/6 -- veggies & morsels TUNING.CALORIES_MEDSMALL = calories_per_day/4 -- Unchanged. Used for leafy meat, I believe. TUNING.CALORIES_MED = calories_per_day/3 -- meat TUNING.CALORIES_LARGE = calories_per_day/2 -- cooked meat TUNING.CALORIES_HUGE = calories_per_day*1.5 -- bacon & eggs, and some other stuff. TUNING.CALORIES_SUPERHUGE = calories_per_day*2.5 -- meaty stew TUNING.WX78_MAX_HUNGER = 300 -- normally 200 TUNING.SMALLBIRD_HUNGER = 40 -- Bigger stomach for the little guy. TUNING.SANITY_SUPERTINY = 1 -- the only things i can find for this are in Shipwrecked. TUNING.SANITY_TINY = 7 -- most crockpot dishes TUNING.SANITY_SMALL = 12 -- normally 10 TUNING.SANITY_MED = 20 -- normally 15, most sanity foods.. jerky, taffy, etc. TUNING.SANITY_MEDLARGE = 25 -- melon popsicle and repairing the ruins furniture TUNING.SANITY_LARGE = 40 -- Killing terrorbeaks gives slightly more sanity. Also bedrolls, but only in singleplayer. TUNING.SANITY_HUGE = 70 -- Normally 50, for tents, ice cream, etc. TUNING.INSULATION_TINY = seg_time*1.5 -- slightly longer TUNING.MIN_CROP_GROW_TEMP = 0 -- normally 5, should now grow in early winter TUNING.CROP_RAIN_BONUS = 5 TUNING.MAX_TUMBLEWEEDS_PER_SPAWNER = 20 -- I've gone mad. Normally 7. Expect many, many tumbleweed. TUNING.MIN_TUMBLEWEED_SPAWN_PERIOD = total_day_time*.2 TUNING.MAX_TUMBLEWEED_SPAWN_PERIOD = total_day_time*1.3 TUNING.RESURRECT_HEALTH = 100 -- normally 50, can't buff it any higher without fear of breaking wes TUNING.CRAZINESS_MED = -200/(day_time) -- more sanity debuff on nightsword- good for kiting TUNING.PORTAL_HEALTH_PENALTY = 0.125 TUNING.HEART_HEALTH_PENALTY = 0.1 TUNING.ICEHAT_COOLER = 25 TUNING.WATERMELON_COOLER = 35 TUNING.MINIFAN_COOLER = 45 TUNING.WILSON_HEALTH = 160 -- 10 more TUNING.SPIKE_DAMAGE = wilson_attack*1.8 -- 62ish damage instead of 51 TUNING.BEAVER_DAMAGE = wilson_attack*1.3 -- buff the poor beaver. TUNING.BEAVER_WOOD_DAMAGE = wilson_attack*0.6 -- slightly higher TUNING.PERD_SPAWNCHANCE = 0.15 -- drumstick heaven! TUNING.PERD_RUN_SPEED = 2 -- have fun catching em! TUNING.PERD_WALK_SPEED = 1 ROSE_CHANCE = 0.1 EDIT: Solved it by removing the top two lines. Huh. Edited May 21, 2016 by engiSonic Link to comment Share on other sites More sharing options...
Aquaterion Posted May 21, 2016 Share Posted May 21, 2016 ROSE_CHANCE isnt global Link to comment Share on other sites More sharing options...
YesterdaysMindr Posted May 21, 2016 Author Share Posted May 21, 2016 Oh haha. Link to comment 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