Mods / COHandbookDecimalFix

Tags:
Tweak Code Harmony Patching Combat Overhaul Fix
Author:
Arkzenir
Side:
Client
Created:
Jun 10th at 3:33 AM
Last modified:
Jun 17th at 8:15 PM
Downloads:
260
Recommended download (for Vintage Story 1.22.0-pre.1 - 1.22.3):
cohandbookdecimalfix_2.0.2_vs1.22.zip  1-click install

Within OverhaulLib, when the handbook text needs to be displayed, the damage and tier values of a weapon is cast into a "string" result via the "F0" flag.

This flag causes a floating point value to be rounded to the closest even integer.

If, lets say, you have a weapon using overhaullib, with the damage value of 7.5, this means that the damage will show up as 8. But if the damage is 6.5, it will show up as 6

 

It is a small complaint perhaps, but I could not let it go. So I made this patch.

 

This mod is clientside only by default, if you want it to be downloaded by automatically by players on your server, let me know so I can change it to be universal in the modinfo.json (Which will allow them to fetch the mod from here when they log on)

 

Requires:

1.21 --> OverhaulLib

1.22 --> OverhaulLibLegacyCompat

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
2.0.2 cohandbookdecimalfix
1.22.0-pre.1 - 1.22.3
24 Jun 17th at 8:15 PM cohandbookdecimalfix_2.0.2_vs1.22.zip 1-click install

Correct an error with the dependencies required

2.0.1 cohandbookdecimalfix
1.22.0-pre.1 - 1.22.3
14 Jun 17th at 1:55 PM cohandbookdecimalfix_2.0.1_vs1.22.zip 1-click install

-Change modinfo.json for wider compatibility

2.0.0 cohandbookdecimalfix
1.22.0-pre.1 - 1.22.3
26 Jun 10th at 3:35 AM cohandbookdecimalfix_2.0.0_vs1.22.zip 1-click install

Release

1.0.1 cohandbookdecimalfix
1.21.0-pre.1 - 1.21.7
3 Jun 17th at 1:55 PM cohandbookdecimalfix_1.0.1_vs1.21.zip 1-click install

-Change modinfo.json for wider compatibility

1.0.0 cohandbookdecimalfix
1.21.0-pre.1 - 1.21.7
9 Jun 10th at 3:35 AM cohandbookdecimalfix_1.0.0_vs1.21.zip 1-click install

Release

0.1.0 cohandbookdecimalfix
1.21.0-pre.1 - 1.21.7
184 Jun 11th at 9:43 PM cohandbookdecimalfix_0.1.0_vs1.21_LR.zip 1-click install

TheLostRealms specific version upload


3 Comments (oldest first | newest first) (threaded | flat)

Alodh, Jun 17th at 8:36 PM

i will have this integrated in the next release if you dont mind, seeing your mod made me realize how silly the rounding is 

Arkzenir , Jun 17th at 8:41 PM
@Alodh: i will have this integrated in the next release if you dont mind, seeing your mod made me realize how silly the rounding is

For the 1.22 fork? By all means be my guest. Throw my name in the description somewhere if that's alright.

You are correct of course, it is very odd why its F0 by default.