plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

ImpulseSimulations avatar image
ImpulseSimulations asked ImpulseSimulations commented

CTD Causing Ground Poly's to become corrupt

Hi Team,
I had faced this issue recently prior to todays update and whilst updating my airport this morning it crashed again.

If you're editing a polygon and the sim crashes during that edit, it appears that the file becomes corrupt after that and the sim will no longer display any polygons in the scenery editor. I have no idea how to recover it.

Thankfully I have several backups of our project so I only lost the work from today, however. If we didn't have the backup it could potentially mean that hundreds of polygons have to be redone.

CTD Occurs at total random, however it looks that it can be fast tracked if you save twice whilst editing a polygon.

scenerydevmode
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

mamudesign avatar image
mamudesign answered mamudesign commented

While a ctd when saving Is annoying,

You can try to recover shapes using any GIS software like QGIS

I use It extensively to create polygons for my global sceneries (with millions of shapes), never fails!


2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

This sounds very interesting. Would you mind expanding on the topic, please?
0 Likes 0 ·

QGIS Is a free gis software that can handle shapefile,

And msfs use the same format for polygons


So you can create them in the gis, save in a bgl type AssetGroup and they Will be compiled without issues


You only Need to match their attributes (that are located in the .dbf) with the .xml for the polygon


I use to save a single polygon in the sdk to obtain the right .xml and attributes

Than merge It in QGIS with other shapes obtained from a pletora of sources (so the attributes of the sdk poly Will Copy into to my shapes)

Export the shape files in your PackageSources and compile



More on the topic here, great article (a bit outdated because the xml attributes have changed a bit since su6 (or was It 5?)



https://web.archive.org/web/20200831113433/https://docs.takset.net/books/msfs/page/fixing-lake-elevation-data-with-osm-and-heightmaps

If you need more info you can contact me on discord

1 Like 1 ·
Darwikey avatar image
Darwikey answered

Hi @ImpulseSimulations,

I'm not able to reproduce the crash, " if you save twice whilst editing a polygon. " -> can you be more precise on the repro step ? Maybe it is dependent of your current scene ?

Regards,

Xavier

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

ImpulseSimulations avatar image
ImpulseSimulations answered ImpulseSimulations commented

Hi Xavier,
Since updating the SDK I have not had a crash with the double save. Basically, most of our products contain several hundred terrain Rectangles, with these in sometimes it can create a crash.

Basically any time we're editing a polygon and the sim crashes it corrupts the polygons, I also tried to recover with the method explained above with no luck.


2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Hello @ImpulseSimulations ,

Any CTD since the SU8 ?
Can you send us a full Dump File in case you have still CTDs when editing polygons and double save ?

See sections 2) and 3) here

Regards,
Boris

0 Likes 0 ·
Hi Boris,

Unfortunately since my last crash I have had a full reinstall of windows and the sim as I thought that may help to prevent it.

Our current airport project doesn't yet have that many polygons and have seen no crash yet but if it does crash I will be sure to provide the logs.


maybe @HybridNZ may be able to provide one?


1 Like 1 ·
HybridNZ avatar image
HybridNZ answered

Just adding weight to this problem, we too have had this issue several times during the development of our NZMC /NZGT scenery.

Loss of all polygons.


10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.