Code: Select all
fee = Math.round(fee*10)/10;
Moderators: winston, another_commander
Code: Select all
fee = Math.round(fee*10)/10;
It is very not normal and even a tad eccentric. I've never installed HDBG until now; that's Norby's creation.Alex wrote:I've just installed HDBG and Docking Fees.
Is it normal to have a docking fee like
7.899999999999999C ?
At every port I get *. to 15 places? docking fee.
I'd rather not tinker the code any more until I know I absolutely have to; if there's another cause I want to find out about it first. (Side note, having looked at HDBG for the first time I noticed one of the pictures has a really bright yellow sun that's right behind the yellow-colored arrival report text, and the 'glare' makes a patch of text hard to read.)Norby wrote:To fix this I suggest the following into the 83. line of docking_fee.js.Code: Select all
fee = Math.round(fee*10)/10;
Oh I never said it was a problem, I like it and will be keeping it, maybe I'm a tad 'eccentric' Though never really been rich enough for eccentric just plain mad in my family.Layne wrote:It is very not normal and even a tad eccentric. I've never installed HDBG until now; that's Norby's creation.Alex wrote:I've just installed HDBG and Docking Fees.
Is it normal to have a docking fee like
7.899999999999999C ?
At every port I get *. to 15 places? docking fee.
Well, ok, but my point was that that math error isn't supposed to be happening, and the only time I ever had the same problem was during early testing of the OXP when it was sometimes reading multiple roles for the same station (usually those blasted Commie Astromines) and calculating out station fees more than once, and getting those sorts of rounding errors. In normal use, no fraction of a station fee should ever work out to less than half a credit on the nose. But without knowing if you've got another OXP in play, or if you're using the old version of the mod, or have more than one copy of it installed (say, the OXP and the OXZ at the same time), I can't be sure what's going on there. Thanks for the feedback, though!Alex wrote:Oh I never said it was a problem, I like it and will be keeping it, maybe I'm a tad 'eccentric' Though never really been rich enough for eccentric just plain mad in my family.
Code: Select all
"dockfee_monks" = ("The hushed cloisters of the Black Monks are somewhat intimidating; an air of foreboding hangs over you as you finish scanning your ship's registry and disembark.");
Version in downloaded manifest file is 2.0 not 1.7.23:20:27.070 [oxz.manager.error] -[OOOXZManager processDownloadedOXZ]: Downloaded OXZ does not have the same identifer and version as expected. This might be due to your manifests list being out of date - try updating it.
Thanks for the heads-up. I'll check it out and get an update out shortly.Massively Locked wrote: ↑Mon Aug 01, 2022 2:55 amBack from my coffee break
I noticed that rock hermits & con stores were charging the same as the main station. I looked into the script & saw that they should both be free. When I set their fee to any positive number- it worked just fine. It's only when set to 0 that it's not working. I tried changing the fee to "multiplier: 0", but that resulted in the same. I'm guessing that all the other stations with "fee: 0" aren't working either.
I'm on Oolite 1.9 & DF 2.0