http://www.fsdeveloper.com/forum/threads/resample-question.436493/#post-736277
So why does drag'n'drop
(in a CMD mode task session) succeed where using the SBX compiler does not?
Why does the compiler disregard the info in the "inf" file and reset the "variations" (when compiled via the SBuilderX GUI)?
Hi Ed:
I suggest that at the time of actual compilation
the INF files are NOT the same ...
because the manually-edited INF you put into the SBuilderX "
\Work" sub-folder along with the aerial imagery *.BMP source file and Geo-referencing *.TXT was
over-written by SBuilder using its currently-configured settings in the SBuilder.ini at the time of compilation to a BGL
.
http://www.fsdeveloper.com/forum/threads/resample-question.436493/
I am attempting to compile an image after adding a winter texture to the mix. I
appended the inf file to reflect the correct months for the winter texture, saved and
then ran the SBX compile function. I've already done one other scenery using this technique and it compiled fine, but this one does not.
After I make the inf changes and (then) compile, I can see from the DOS screen that
the months have been changed back to what they were which is incorrect for the region I'm working on. How do I get resample to accept the inf changes?
Please note the edit to my post above:
http://www.fsdeveloper.com/forum/threads/resample-question.436493/#post-736123
Luis Sa' uses a number of configuration settings in the SBuilder.ini file to determine various features and functions during operation, including how SBuilderX will structure the parameter values when writing out a INF file during compilation.
When one's selected aerial imagery tiles are compiled, they are merged into (1)
BMP with a particular file name accompanied by a matched file name
TXT file which contains the Geo-referencing,
and the
INF file is also then written into that same folder:
[SBuilderX install path]\Tools\Work
...using parameter values etc. specified in the SBuilder.ini file.
Be aware of the fact that SBuilder will silently over-write without any warning, a pre-existing INF file having the same name as the one for a current BMP and TXT file it is instructed to compile via the SBuilderX GUI.
In fact, SBuilder will also silently over-write without any warning, a pre-existing BMP and TXT file having the same name as the one for a current BMP and TXT file it is instructed to compile via the SBuilderX GUI.
So, IIUC, Dick recommends working directly with FS SDK Resample in a separate CMD mode task session to ensure that ones
own INF will be used and
not over-written by the INF written out by SBuilderX during compilation via the SBuilderX GUI.
BTW: Am I correct in assuming, when you state that you "
appended the inf file to reflect the correct months for the winter texture", you meant you '
amended' or '
edited' it ?
AFAIK, SBuilder has no provision to "
Append" an
INF file via the
SBuilderX Menu > File > Append feature set, so I presume that you intended to indicate that you placed your own manually-edited INF into the above cited sub-folder:
[SBuilderX install path]\Tools\Work
...and did not realize that when SBuilderX subsequently compiles via the GUI, it will (silently) over-write the source
BMP, Geo-referencing
TXT,
and INF files before then running very
same FS SDK Resample that we would otherwise run in a separate CMD-mode task session.
PS: To edit configuration parameters / values etc. in the
SBuilder.Ini file:
SBuilder Menu > Edit > Preferences > click [INI File] button < file opens in Windows NotePad >
1.) When configuration of your
SBuilderX project is completed via editing "
SBuilder.ini" in
Windows NotePad:
.....a.) In
Windows NotePad Menu > File > Save As... > "Save as type" field, set to "
All Files (*.*)" (
do not click OK yet)
.....b.) In NotePad Menu > File > Save As... > "
Save In" field, browse to [
SBuilderX install path] folder; double-click to select it
2.) Back in NotePad Menu > File > Save As... browse dialog, click "OK"
.....a.)
When prompted to over-write Sbuilder.ini, click "YES" to save your edits to that file.
Hope this helps answer your question.
