When i go to add it it says "this file is probably not set up correctly" The file is saved as a rar file but even after changing it to a .7z file the prompt still comes up
If you haven't figured out how to set it up, just move the gamedata folder up to where the readme file is and it should work with being installed in MO2 if you use it.
Under the content section right-click on "Campfire Regens for Grok Body Health System" and click "set as anomaly directory", it should turn green and you are good to go.
Hi. Regen doesn't work on parts that have been temporarily healed with medical items, here's how I fixed it by editing regen_body_part in cozy_campfire_mcm.script file.
function apply_body_part_regen(part, amount) local max_hp = zzz_player_injuries.maxhp[part] local new_hp = zzz_player_injuries.health[part] + amount local new_temp_hp = zzz_player_injuries.timedhp[part] - amount
new_temp_hp = new_temp_hp > 0 and new_temp_hp or 0 new_hp = new_hp < max_hp and new_hp or max_hp
if zzz_player_injuries.timedhp[part] ~= new_temp_hp then zzz_player_injuries.timedhp[part] = new_temp_hp utils_obj.save_var(db.actor,"timedhp." .. part,zzz_player_injuries.timedhp[part]) end
if zzz_player_injuries.health[part] ~= new_hp then zzz_player_injuries.health[part] = new_hp utils_obj.save_var(db.actor,"health." .. part,zzz_player_injuries.health[part]) end end
function regen_body_part(amount) for key, value in pairs(zzz_player_injuries.health) do apply_body_part_regen(key, amount) end end
NOTE: if this script is overwritten make sure to do these steps the HIGHEST PRIORITY MOD FOR EFP Users: Edit the script in [HarukaSai] Dynamic Icon Indicators - Body Health System Patch and it should work fine.
Well this fix didn't get me anywhere, though it was entertaining trying something different, reloading, throwing myself at the nearest campfire, crashing, repeat.
Hi, would it be posible to add an option under the "Enable grok's body system" that would heal body parts only as post heal? So that a player would still need to use any first heal item to start the post heal process.
16 comments
That's what I did and got it working.
function apply_body_part_regen(part, amount)
local max_hp = zzz_player_injuries.maxhp[part]
local new_hp = zzz_player_injuries.health[part] + amount
local new_temp_hp = zzz_player_injuries.timedhp[part] - amount
new_temp_hp = new_temp_hp > 0 and new_temp_hp or 0
new_hp = new_hp < max_hp and new_hp or max_hp
if zzz_player_injuries.timedhp[part] ~= new_temp_hp then
zzz_player_injuries.timedhp[part] = new_temp_hp
utils_obj.save_var(db.actor,"timedhp." .. part,zzz_player_injuries.timedhp[part])
end
if zzz_player_injuries.health[part] ~= new_hp then
zzz_player_injuries.health[part] = new_hp
utils_obj.save_var(db.actor,"health." .. part,zzz_player_injuries.health[part])
end
end
function regen_body_part(amount)
for key, value in pairs(zzz_player_injuries.health) do
apply_body_part_regen(key, amount)
end
end
You have to open zzz_player_injuries.script from BHS and remove the local keywork from those.
1- maxhp
2- health
it should look like this after you change it.
maxhp={}
maxhp.head=11
maxhp.torso=11
maxhp.leftarm=5
maxhp.rightarm=5
maxhp.leftleg=5
maxhp.rightleg=5
health={}
health.head=maxhp.head
health.torso=maxhp.torso
health.leftarm=maxhp.leftarm
health.rightarm=maxhp.rightarm
health.leftleg=maxhp.leftleg
health.rightleg=maxhp.rightleg
NOTE: if this script is overwritten make sure to do these steps the HIGHEST PRIORITY MOD
FOR EFP Users: Edit the script in [HarukaSai] Dynamic Icon Indicators - Body Health System Patch and it should work fine.