Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
-The line "float odoIncrementalDistance = Vector2.Distance(odoLastPosition, position2) * 1000" calculates the distance moved since the last frame.
-Change: "odoLastPosition = position2" - This updates the reference point to the current position, ensuring that the next frame's distance is always measured from the most recent position instead of an old, outdated reference.
-"odoContactDistanceInt += Mathf.RoundToInt(odoIncrementalDistance)" - This adds the calculated distance to the total odometer reading.
Sorry, didnt fit all in one comment.
Everything seemed extremely accurate during an attack last night. also might I add this doesnt mess at all with the estimated location/actual location. Its up to you where you choose your reference point for calculations!
float odoIncrementalDistance = Vector2.Distance(odoLastPosition, position2) * 1000;
odoLastPosition = position2;
odoContactDistanceInt += Mathf.RoundToInt(odoIncrementalDistance);
The distance calculation remains identical—it still measures only the distance between the last recorded position "odoLastPosition" and the current position "position2".
Original method of calculating distance:
odoIncrementalDistance = Vector2.Distance(odoLastPosition, position2) * 1000;
-"odoLastPosition" last recorded position of the submarine.
-"position2" is the current position.
-"Vector2.Distance(odoLastPosition, position2)" measures distance traveled since the last position update.
-This was then added to "odoContactDistanceInt", which keeps track of total traveled distance.
The mod measures distance between these two points and added it to the odometer total.
The problem is it only tracks distance between those 2 points, hence counting down when going back.
What I did keeps the same logic, but ensures "odoLastPosition" is properly updated before the next calculation:
Getting this to work was one of the planned updates-- have you tested whether its accurate?
I'm worried there could be an accumulation of small errors.
In C:\Program Files (x86)\Steam\steamapps\workshop\content\494840\2618451929\Source\RealNavigationPatch.cs, Find:
if (eventData.button == PointerEventData.InputButton.Left)
{
odoContactDistanceInt = 0;
tutorialTicket = tutorialUI.Open(locale["Parameters/Odometer Null"], 10);
tutorialTicket.Pause = false;
tutorialTicket.CloseByClick = true;
}
Replace this section with:
if (eventData.button == PointerEventData.InputButton.Left)
{
odoContactDistanceInt = 0;
}
odoLastPosition = position2;
odoContactDistanceInt += Mathf.RoundToInt(odoIncrementalDistance);" . Make sure you only delete EXACTLY the code provided, and not a space more or less. If you do you will mess up the code.
Ive been driving in a circle for an hour and the odometer continues to count up. The odometer reset works as its supposed to.
And the KTB missing lines probably is my fault.
Again, thanks @ostik for the hotfix!
instead
"
base.UseDevice(character, "Use", null, int.MinValue, null, false, true, false);
"
place
"
base.UseDevice(character, "Use", null, int.MinValue, null, false, SlotUsageFlags.IgnoreOtherCharacters, false);
"
Learn how to fix our true position from a lighthouse.
This is a list of the Lighthouses i have found so far:
Wilhelmshaven Lighthouse 53º33N 8º10E
La Pallice Lighthouse1 46º9N 1º15W
La Pallice Lighthouse2 46º10N 1º13W
La Pallice Lighthouse3 46º10N 1º13W
Helgoland Lighthouse 54º11N 7º54E
Brest Lighthouse 48º22N 4º31W
La Spezia Lighthouse 44º6N 9º49E
Any .xlsx were they are?
I wish this mod was working again.
Not sure if this will help, but move away from your last position and note odometer, then turn around and move back towards the last position you started the odometer from, this should result in a counting backwards, or closing on your last position.
- Navigate to the mod's Source folder and open "RealNavigationPatch.cs" with Notepad++.
- Find the following section (line 822)
{
LoadMapFlag = true;
if (___mainCamera.MapController.Mode == MapCameraController.MapDisplayMode.Normal || ___mainCamera.MapController.Mode == MapCameraController.MapDisplayMode.WorldMap || ___mainCamera.MapController.Mode == MapCameraController.MapDisplayMode.TacticalMap)
___mainCamera.MapController.Mode = MapCameraController.MapDisplayMode.Normal;
}
- Paste over with the following:
{
LoadMapFlag = true;
if (___mainCamera.MapController.Mode == MapCameraController.MapDisplayMode.Normal || ___mainCamera.MapController.Mode == MapCameraController.MapDisplayMode.TacticalMap)
___mainCamera.MapController.Mode = MapCameraController.MapDisplayMode.Normal;
}
Your wrists will thank me.
Ist das irgendwie von Bedeutung für den Autor??