• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Programmer here?

igr

Messages
113
Note:
The task has changed. I continue to try to make the program in CMD. I originaly wrote the text below to work with binary execution program:

I tell you what I need to do.

I prepare big scenery pack, which consists of many sceneries. There are regions in the scenery folders. And there is second pack of sceneries which include towns in higher resolution. For the first I want to have at least one configuration file, so the user could call your program like this:
activate.exe -filename -scenerytype
or
deactivate.exe -filename -<towns|regions>

The filename is name of file (encoding in windows1250) with options. So in the first case, the format of the file would be like this:
name_of_region_1 <tabulators> digit <tabulators> description
name_of_region_2 <tabulators> digit <tabulators> description

name_of_region is name of directory, which is same as Name of the scenery in configuration file.
<tabulators> separators are tabulators
digit - is 1 for activated or 0 to deactivated.
Description is just a description to this region

In case that you would enter argument -towns
I would like to have header before the region and name of cities under it:
<name_of_region_1>
town_1 <tabulators> digit <tabulators> description
town_2 <tabulators> digit <tabulators> description

Also I would like to ask you if you could add a function to backup and restore indexes. So if the game will rebuild indexes, so I could backup them. Then when I would change configuration it would rebuilt indexes again and I would backup them. And then If I would want to play the previous configuration I would run the activate.exe (to set the config) and restore the indexes database from a backup.

I think this should not be hard, but I do not do it in C language. It is not just for me, it is for many people who would play the scenery.

Main idea is, that user can have his own list of sceneries (regions or towns) which he wants to activate or deactivate. He can have more lists. He will preconfigurate this file if he will want to fly some area. Then he can use this file at any time to activate sceneries he need in the flight. I hope that the backup and restore of database is possible.
 
Last edited:
Now in CMD

Task has changed. I want to use CMD. I try to find a way how to add a scenery to library with external program, activate it or deactivate. I am interested if it is possible to do it in batch file, but first I must find out how is it with scenery.cfg. Coz I found that this file does not contain sceneries I added manually into library.
 
Back
Top