xptools icon indicating copy to clipboard operation
xptools copied to clipboard

DSFTool cannot covert back it's own text output

Open hotbso opened this issue 1 year ago • 2 comments

DSFTool 2.3.0-b2, Copyright 2023 Laminar Research. Compiled on Apr 6 2023. Part of X-Plane Scenery Tools release: 23-4

Aerosoft EDDB has a .dsf that triggers the error. Screenshot 2024-04-02 192758

The error is triggered by OBJECT_AGL records. Once these are deleted the conversion goes through.

I can provide any of the files on request.

hotbso avatar Apr 02 '24 17:04 hotbso

For whatever reason the generated output contained object references with negative headings. E.g. OBJECT_AGL 36 13.508276589 52.381340124 -4.500480659 148.707713 Once these are normalized to OBJECT_AGL 36 13.508276589 52.381340124 355.499519341 148.707713 the conversion to dsf works.

Using strings on the original dsf file gives: earth sim/creation_agent WorldEditor2.5.2r1 so the root cause may be in this version of Wed.

hotbso avatar Apr 03 '24 04:04 hotbso

Correction: The 4th parameter is the height and that must not be negative. If it's set to 0 the dsf2text conversion goes through.

hotbso avatar Apr 03 '24 10:04 hotbso