X-Plane / xptools

X-Plane Scenery Tools: WorldEditor (WED) and more
91 stars 34 forks source link

DSFTool cannot covert back it's own text output #32

Closed hotbso closed 4 months ago

hotbso commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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