For what little it's worth, looking at the code it turns out the bug with strip bar payments is due to the game trying to calculate number of hours spent working by using:
Code:
(totalMinutes - stripMins) mod 60
unfortunately, this operation returns
remainder of dividing number of minutes spent working by 60, instead of full worked hours. It should be simply
Code:
(totalMinutes - stripMins) / 60
instead. There's two places in
BBungalow
node that need this change, if someone wants to make a fix for it.
edit:
regarding the BMI calculations error, it seems to stem from a simple overlook, daily calorie intake/burn records are added
at the end of
calArr
array, while the change is calculated from average of
first 3 elements. So in practice the game only ever pays attention to what happened on first 3 days, and uses that forever. A check should be added to kill first/oldest element of the array if the array size exceeds 3, before the average is calculated in DayCycle node:
Code:
!get 3 day average:
if arrsize('calArr') > 3:
killvar 'calArr', 0
end
if arrsize('calArr') = 3:
salo += (calArr[0] + calArr[1] + calArr[2]) / 3
killvar 'calIntake'
end
edit2: attached 0.9.4 with above fixes applied. For easier debugging calories intake for current day and salo changes in last three days were added to Physical Stats in the phone app. Note, the fix won't do much for existing save files with already too large array. For these you'll need to enter
killvar 'calArr'
in the console first after loading the save, to allow salo tracking anew.