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.
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: