Potential bug in treaty tonnage calculation

Rule the Waves III is a simulation of naval ship design and construction, fleet management and naval warfare from 1890 to 1970. and will place you in the role of 'Grand Admiral' of a navy from the time when steam and iron dominated warship design up to the missile age.
Post Reply
rs2excelsior
Posts: 65
Joined: Wed Dec 14, 2022 3:35 pm

Potential bug in treaty tonnage calculation

Post by rs2excelsior »

So, I was running some numbers today to plan out what ships I could scrap and what I could build in the wake of a new treaty, and I ran into something that seems... weird in the calculation of the tonnage available.

I have a treaty limit of 1,130,000 tons, and a capital limit of 565,000 tons. The calculation for my capital ships is spot on - I am figuring that I have 533,600 tons of capital ships, for 31,400 tons remaining before I exceed my limit, which is exactly what the game tells me I have. For total tonnage, I'm calculating that I have 956,900 tons used (counting subs), so I should have 173,100 tons left before my treaty limit. I've got another 116,000 tons under construction, so after that completes I should have 57,100 tons still available. But the game is telling me I only have 25,500 tons total remaining - even if it's counting the ships under construction (which I don't think it does, I thought those were added to your total once they commission), I don't know where the other 31,600 tons have gone.

I've checked every class of ship against the almanac, and they line up in numbers and quantity, as well as the overall tonnage of my surface fleet as shown there. I have 65 medium subs - which again tracks with the almanac - at 1,200 tons each, which is what the sub tab tells me they each displace. My initial thought was maybe the game was using a different displacement for the subs from what it displays, but it'd have to be using 3,470.77 tons per sub (or 486.15 tons if it is counting my ships under construction), which both seem unlikely - both because they're wildly off from the displayed values and because they aren't even numbers.

I also have 8,800 tons of DDs currently in rebuild, but previous rebuilds completing haven't changed the tonnage available, so I don't think it's an issue of them being double counted - and that wouldn't account for the total difference I'm seeing.

I'm also noticing the amount that I'm missing is almost but not exactly equal to how much capital tonnage I have left... but again, not exactly (31,600 vs 31,400), so it doesn't seem like it's assuming I will build that full amount of capital ships.

I'm on version 1.00.27, playing on Steam. Not running any mods currently (I have some nation mods downloaded, but I am playing unmodified Germany).

Here is my spreadsheet calculating the tonnage I ought to have remaining:
https://www.dropbox.com/scl/fi/6qqokrmo ... 2t2mc&dl=0
And here is the save file of the game:
https://www.dropbox.com/scl/fi/dpol4ljw ... 0z1ko&dl=0

So, any thoughts? Am I missing something potentially obvious, or is there a bug in how the game calculates fleet tonnage for treaties?
rs2excelsior
Posts: 65
Joined: Wed Dec 14, 2022 3:35 pm

Re: Potential bug in treaty tonnage calculation

Post by rs2excelsior »

Screenshots, since the previous post didn't want to add them for some reason:

My spreadsheet calculating my fleet tonnage:
TreatyTonnage - calc.PNG
TreatyTonnage - calc.PNG (54.55 KiB) Viewed 738 times
And broken down by class:
TreatyTonnage - calcbreakdown.PNG
TreatyTonnage - calcbreakdown.PNG (14.18 KiB) Viewed 738 times
The almanac, which as far as I can tell matches the above:
TreatyTonnage - almanac1.PNG
TreatyTonnage - almanac1.PNG (27.71 KiB) Viewed 738 times
TreatyTonnage - almanac2.PNG
TreatyTonnage - almanac2.PNG (23.84 KiB) Viewed 738 times
WLRoo
Posts: 228
Joined: Sun Jul 01, 2018 5:20 pm

Re: Potential bug in treaty tonnage calculation

Post by WLRoo »

I think this got patched in one of the Betas, but can't tell you which one off-hand.
User avatar
MaximKI
Posts: 2016
Joined: Thu Oct 20, 2022 12:29 pm

Re: Potential bug in treaty tonnage calculation

Post by MaximKI »

We recently released a number of public betas and we have another we're hoping to release soon. Have you tried any of these new public betas to see if they address your issue?
rs2excelsior
Posts: 65
Joined: Wed Dec 14, 2022 3:35 pm

Re: Potential bug in treaty tonnage calculation

Post by rs2excelsior »

I haven't yet, mostly because I figure updating will break my current save due to the change in save file format. Once I do update I will check again and update things here.
User avatar
MaximKI
Posts: 2016
Joined: Thu Oct 20, 2022 12:29 pm

Re: Potential bug in treaty tonnage calculation

Post by MaximKI »

rs2excelsior wrote: Thu Feb 01, 2024 11:59 pm I haven't yet, mostly because I figure updating will break my current save due to the change in save file format. Once I do update I will check again and update things here.
Whatever is most comfortable for you. The latest public betas should be able to convert any old you saves you have from 1.00.27 without breaking them, unless there's some extraordinary circumstance or an unknown bug in the conversion process.
rs2excelsior
Posts: 65
Joined: Wed Dec 14, 2022 3:35 pm

Re: Potential bug in treaty tonnage calculation

Post by rs2excelsior »

Oh, that is good to know. I'll probably go ahead and update, then. Although now the treaty's gone since the Soviets attacked me ofc :lol:
Post Reply

Return to “Rule the Waves 3”