Thread: Problems rounding coins
-
September 9th, 2022, 04:25 #1
Problems rounding coins
I'm not very good with numbers, but I made the extension that creates the stores for the RMC, however the conversion part of the following currencies is not going in whole and I don't know what to do to fix it.
The coins that give the broken values are these:
MP to CP
PP to TP
GP to IP
And this is the link to the extension (https://forge.fantasygrounds.com/shop/items/828/view)[FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
[RPG PLAYER]
[TWITCH] [YOUTUBE]
[Core RPG - Package] [Leather Theme Addition] [Rolemaster (Classic) - Shopping Stores] [Rolemaster (Classic) - XP Tab]
-
September 9th, 2022, 07:18 #2
- Join Date
- Apr 2011
- Posts
- 2,253
Hi yako2020,
Nothing has changed in the ruleset in regard to currencies since CoreRPG added the weight and conversion amounts. You can look at them in Options by clicking the Currencies button or even change them from there. Here is a screenshot: Currencies.jpg
DakadinLast edited by Dakadin; September 9th, 2022 at 07:19. Reason: Edit to include that they can be changed.
-
September 9th, 2022, 14:14 #3
screenshot0001.png screenshot0002.png screenshot0003.pngscreenshot0004.pngscreenshot0004.png
Here are some screenshots of Currency Converter and the "error".[FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
[RPG PLAYER]
[TWITCH] [YOUTUBE]
[Core RPG - Package] [Leather Theme Addition] [Rolemaster (Classic) - Shopping Stores] [Rolemaster (Classic) - XP Tab]
-
September 9th, 2022, 15:51 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
That seems like it's a problem with the logic in the currency conversion routine then. The CoreRPG currency data merely provided weight and relative value per coin. There's no logic built-in to do any conversions.
Regards,
JPG
-
September 9th, 2022, 17:54 #5
Yes I know that, the conversion part is for making purchases in stores, all other conversions work normally, but these happen what I showed in the screenshots.
[FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
[RPG PLAYER]
[TWITCH] [YOUTUBE]
[Core RPG - Package] [Leather Theme Addition] [Rolemaster (Classic) - Shopping Stores] [Rolemaster (Classic) - XP Tab]
-
September 9th, 2022, 18:02 #6
- Join Date
- Apr 2011
- Posts
- 2,253
Then the extension will need to be updated to resolve that issue.
-
September 9th, 2022, 18:34 #7
- Join Date
- Apr 2011
- Posts
- 2,253
Thinking about it my guess is the extension isn't taking into account the number of coin types in RM compared to other games like D&D so when the spread between coins gets to be more than that then it breaks down.
-
September 9th, 2022, 18:39 #8
The strange thing is that the problem only occurs in the conversion of the 100 thousand, in these currencies, but everything goes well.
[FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
[RPG PLAYER]
[TWITCH] [YOUTUBE]
[Core RPG - Package] [Leather Theme Addition] [Rolemaster (Classic) - Shopping Stores] [Rolemaster (Classic) - XP Tab]
-
September 9th, 2022, 18:57 #9
- Join Date
- Apr 2011
- Posts
- 2,253
That makes sense. D&D only has 5 currencies. RM has 8. So once you get 10 to the 5th power you are likely hitting the limit of what it is expecting.
-
September 9th, 2022, 19:39 #10
Here are the screenshots of the conversion of coins.
Mithril Pieces.png Platinum Pieces.png Gold Pieces.png Silver Pieces.png[FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
[RPG PLAYER]
[TWITCH] [YOUTUBE]
[Core RPG - Package] [Leather Theme Addition] [Rolemaster (Classic) - Shopping Stores] [Rolemaster (Classic) - XP Tab]
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks