PDA

View Full Version : von Helsching's Battery Fix


Stiebler
03-06-06, 07:07 AM
von Helsching's Battery Fix - see thread in main forum.

Von Helsching reported that there was an error in the U-boat submerged ranges. Ubisoft had named the information in each U-boat’s file as ‘miles’ (ie nautical miles), but had actually used kilometres. Then the Ubisoft programmers had converted the ranges from ‘miles’ into kilometres internally, resulting in the submerged range being too large.

Unfortunately, it is very difficult to correct the necessary ‘U-boat.sim’ files, since there is one for each U-boat, and other mods have altered them too. Thus there is no simple fix.

The NYGM team considered this mod to be so important that I started work at once on a short program that will add it to NYGM (the safest and fastest way).

Alas, I was too late for the NYGM Tonnage War Mod (just released), but it will appear in the soon-coming update version with Harbour Traffic.

The program can be used on *any* u-boat.sim files. It stamps itself across the .sim file, without altering anything else, so is compatible with all u-boat.sim from all sources. There's a full read-me file, which fully credits von Helsching.

The result is that you will now have to be a lot more careful with battery usage when submerged!

Download it here:
http://rapidshare.de/files/14824947/SH3Battery.zip.html

Congratulations, von Helsching - very well spotted error in SH3.

Stiebler.

Redwine
03-06-06, 07:37 AM
von Helsching's Battery Fix - see thread in main forum.

Von Helsching reported that there was an error in the U-boat submerged ranges. Ubisoft had named the information in each U-boat’s file as ‘miles’ (ie nautical miles), but had actually used kilometres. Then the Ubisoft programmers had converted the ranges from ‘miles’ into kilometres internally, resulting in the submerged range being too large.

Stiebler.

Thanks for info Stiebler... but i am confusing.

If you adjust the correct range in nautical miles and the program convert it internally into km..... what is wrong ?

In example if you adjust into TT's Minitweaker, 10nm, and the program take it as 18.5km ..... what is wrong ?

Or do the program take them as 10km instaead 10nm ? :hmm:

Sorry for question, thanks in advance..... :up:

LukeFF
03-06-06, 11:03 AM
Thanks, Stiebler!

Stiebler
03-06-06, 11:05 AM
Redwine: Sorry if the text is confusing - I feel confused myself after re-reading my own readme. Your query is best answered with an actual example.

The range of a submerged Type VIIC U-boat was 80 miles at 4 kts. This is what Von Helsching claims, and I have verified this and his other figures in my standard (British) U-boat reference book

For the VIIC U-boat, we have the file NSSUboat7C.sim, where the submerged range is clearly marked as '80' and 'miles'. Clearly marked, that is, if you can read floating point arithmetic in a data file.

However, the Ubisoft programmers multiplied this figure (80) by about 8/5 (eight-fifths) to convert it into kilometres, forgetting that sea ranges are handled in nautical miles (even by continental Europeans, who otherwise would use kilometres). This comes to about 128 kilometres, a value that was used internally by the program in the belief that it described miles.

In order to correct this error, since we can't change the internal hard code, the stated values in NSSUboat7C.sim have to be *divided* by eight-fifths, to compensate for the internal multiplication by eight-fifths.

The same problem affects all the other U-boats.

Is that any clearer?

The result of this error is that you have been travelling about 8/5 (eight-fifths) further underwater than you should. I wondered why I never seemed to drain the battery! Now you have to be much more careful.

SH3Battery Mod uses Von Helsching's figures uncritically. He claims, on the basis of his experiments, that the actual divisor (8/5) varies slightly between U-boat types.

Stiebler.

Redwine
03-06-06, 11:35 AM
many thanks Stielber.... bu i still confused.

1]
In real life the submerged range of a Type VIIC was 80 miles.......

What miles ?

Nautical miles or statute "terrestrial" miles ?

2]
What is the problem with the game ?

a]
This rage in real life is in nm, and the program asume they are sm, to convert it in km ?

or

b]
This range in real life is in sm, and the program take it as nm to convert it in km ?

Sorry if i am disturing but i am still confused......

Thanks for help..... :up:

Stiebler
03-06-06, 05:23 PM
Redwine:

I believe that the figures apply to nautical miles (nm). There is no reason to use statute miles (sm).

However, whether I am right or wrong, the difference between nm and sm is much smaller than the variation between individual battery sets, that are supposed to be the same. It is not necessary to worry about the difference.

The incorrect conversion from miles (nm or sm) to kilometres has also a much bigger effect than the difference between nm and sm.

I hope this answers your question.
Stiebler.

JonZ
03-06-06, 05:43 PM
The incorrect conversion from miles (nm or sm) to kilometres has also a much bigger effect than the difference between nm and sm.

I hope this answers your question.
Stiebler.

If Von was wrong, This will defeat the purpose of putting NASA name in it since it refer to the NASA bug which they mixed up the conversion program in the probe ;)

Redwine
03-06-06, 06:28 PM
Redwine:

I believe that the figures apply to nautical miles (nm). There is no reason to use statute miles (sm).

Many thanks Stiebler to stay helping to understand.

The matter is in the Unterseebootwaffe site, they wrote those ranges was in sm, instead of nm.
Like you i am surprised, because it is confused to put a range in sm, because for navigation it is used nm .....


The incorrect conversion from miles (nm or sm) to kilometres has also a much bigger effect than the difference between nm and sm.

I hope this answers your question.
Stiebler.

I understand now, the program make a wrong conversion from nm/sm to km .......

But what was the mistake made by the Dev Team ?
Which wrong factor they used ?

:up:

Stiebler
03-07-06, 04:13 AM
Redwine:

I see that you are also asking the same questions in von Helsching's thread in the Main SubSim forum (where he has subsequently given a full reply).

In order to avoid unnecessary duplication, could we perhaps continue your questions in the main thread?

Many thanks
Stiebler.

Redwine
03-07-06, 08:29 AM
Redwine:

I see that you are also asking the same questions in von Helsching's thread in the Main SubSim forum (where he has subsequently given a full reply).

In order to avoid unnecessary duplication, could we perhaps continue your questions in the main thread?

Many thanks
Stiebler.

OK...

BigDuke66
04-15-06, 08:22 PM
I just a short question.
Will there be any problems with other sets of battterys?
I mean will range then again be wrong?