Fixed [0.9.141-PUBLIC#6448] Height/Length Measurements from 5280ft up to a mile on appearance tab are incorrect

Issue is marked as fixed.

Filoq

New Member
Nov 4, 2024
2
0
23
This one is a lot stranger in my testing than the last report that I made, so I will give examples with testing on a brand new save file that I did.

Set character height to 120in with a save editor, appearance tab displays 10ft (correct) (any other measurement displayed on appearance tab in ft had same results)
Set to 1200in with a save editor, appearance tab displays 100ft (correct)
Set to 5279in with a save editor, appearance tab displays 439ft 11in (correct, and highest number that displays correctly
Set to 5280in with a save editor, appearance tab displays literally nothing?? (since 5280 is the number of feet in a mile, I would guess this is related to the patch that was done for the last report that I made)
Set to 12000in with a save editor, appearance tab displays 120ft? (should be 1000ft)
Set to 63359in (1 inch less than a mile) with a save editor, appearance tab displays 439ft 11in? (should be 5279ft 11in)
Set to 63360in with a save editor, appearance tab displays 1 mile (correct)
 

Jacques00

Administrator
Moderator
Aug 26, 2015
5,301
1,368
Yes, this was due to the wrong value being set as the number of inches in a mile, which was corrected from the last fix--so with the correct number of inches, the miles value should be calculated correctly for the next release. Having the wrong conversion values lead to awkward displays like that since the calculations aren't using an arithmetic method to convert units, but rather using the base (inches) value and a combination of math functions to decide each unit layer (specifically mod and floor, alongside division).