Jump to content

Displayed waypoint altitude changes on its own when using imperial units


Recommended Posts

Posted (edited)

Using current DCS OB 2.9.2.49940

Mission Editor displayed waypoint altitudes change when switching waypoints. It's frustrating error with hopefully a simple and quick fix. The values change by +-1 feet per my testing. I'm using imperial values and have not tested if similar problems exist when using metric in-game.

A sample mission attached. In the mission I have two groups, with waypoints 0 and 1 set to same altitude.
Aerial-1 has waypoints 0 and 1 both at 6000 feet
Aerial-2 has waypoints 0 and 1 both at 300 feet

Steps to reproduce:

  1. Select Aerial-1: Altitude is shown 6000 feet as set in the mission.
  2. Switch to waypoint 1: Altitude 6001 is shown
  3. Switch back to waypoint 0 and still 6001 is shown.

Same thing with Aerial-2 at 300 feet, except for that group the errorenous value is 299 feet.

Values in mission file are saved in meters. The values values in mission file do not change if you save the mission after switching and seeing the wrong altitude values displayed. I guess this is a simple rounding error in the display logic. The values in meters are 1828.8 (6000 ft) and 91.44 (300 feet).

1828.8 ~ 1829 which gives us 6000.656 ~ 6001 feet
91.44 ~ 91 which gives us 298.556 ~ 299 feet.

It's a frustrating error when going over dozens of carefully set waypoints, and no matter how hard you check and fix the values, they always seem to change.

ME-altitudes.miz

Edited by itn
Edit title
Posted (edited)
On 2/12/2024 at 10:21 PM, itn said:

I'm using imperial values and have not tested if similar problems exist when using metric in-game.

To add to this: If using metric throughout, the bug seems not to manifest. ME doesn’t allow fractional values for altitude (whole meters/feet only) and there’d be no unit conversion, so the issue just does not happen.

Problem is with rounding and/or unit conversions.

Edited by itn
  • itn changed the title to Displayed waypoint altitude changes on its own when using imperial units
  • 3 months later...
Posted
On 5/19/2024 at 12:11 AM, Flappie said:

Hi @itn. I cannot reproduce this issue. Is it fixed for good?

Hey @Flappie. No change, still reproducible in ME in DCS 2.9.4.53990. Make sure you use Imperial units, as the issue seems to be in metric/imperial conversion and rounding.

Steps to reproduce:

  1. Have DCS use Imperial units (under Settings - Gameplay)
  2. Open ME, add an Airplane or a Helicopter
  3. Set initial waypoint altitude to 6000 feet
  4. Add second waypoint: altitude 300 feet
  5. Add third waypoint: altitude 7003 feet
  6. Switch between the waypoints and see the altitudes are 6001, 299 and 7005 feet instead of the original values.

The values are just examples, you can see it happen with different values if you keep trying.

Posted
18 hours ago, Flappie said:

I've just tried it again, using "Imperial" in DCS settings, and I still cannot reproduce the issue.

Please attach your options.lua file (from Saved Games/DCS.../Config).

waypoints.miz 10.62 kB · 0 downloads

Ah, same here: It does not happen when you click on the waypoints themselves. I didn't notice that or test it specifically. In my use case (long story short: editing dozen waypoints for dozen groups flying a carefully planned flight plan) I mainly used the waypoint drop-down menu or arrows to switch.

So one more requirement to reproduce: Switch waypoints using the WAYPOINT drop down menu, or the < > arrows next to it:

image.png nullnull

 Can you now reproduce it, @Flappie?

 null 

  • Thanks 1
  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...