Hi Folks
Minor correction of my previously posted sequence.
ProcMon logfile data included below.
EDIT
N.B.
Particularly targeted at
anyone converting FS9 aircraft models,
into FSX/FSXA useable aircraft.
Simobject texture search paths
In FSX/FSXA,
the search mechanism for locating any simobject's texture
behaves as follows
and continues until a matching texture is located,
or the cycle is completed.
Entire cycle is repeated
for every texture called by the model.
1)
file.ext - As explicitly defined in the model.
2) a matching .CAB file, (if CAB exists, will then search contents).
3) .ext of opposite type, (i.e. if 1) was a .bmp, searches for . dds, and vice-versa).
4) repeats 2) for the matching .CAB file, then searches for 3).
If not found during steps 1-4),
FSX/FSXA then repeats
every step above
for each fallback path defined
in a correctly written texture.cfg
i.e. steps through -
fallback.1=..\texture
fallback.2=..\..\..\..\Scenery\Global\texture
fallback.3=..\..\..\..\Texture
The search sequence will repeat
whenever the model requires a reload.
e.g. The viewport is cycled from VC/2D to external.
Logfile Data
IRL FSX/FSXA example for an airplane model calling a .bmp texture.
In the ProcMon logfile extract below -
- MYFSXPATH - my drive & path to FSX folder, (concatenated for clarity).
- TESTAIRCRAFT - The aircraft folder.
- FINDME.bmp - The texture named in the model
For this example -
The
FINDME.bmp texture was deliberately removed,
to force FSX to perform a
full search-path traverse.
I/O operation QueryOpen actions by fsx.exe
each resulted in a
NAME NOT FOUND error.
The first 4 paths listed are for the aircraft's 'native' folder.
Each subsequent group of 4 paths
is for each of the 3 fallback paths.
ProcMon reported search paths -
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture.LIVERY\FINDME.bmp
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture.LIVERY.CAB
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture.LIVERY\FINDME.DDS
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture.LIVERY.CAB
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture\FINDME.bmp
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture.CAB
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture\FINDME.DDS
MYFSXPATH\SimObjects\Airplanes\TESTAIRCRAFT\texture.CAB
MYFSXPATH\Scenery\Global\Texture\FINDME.bmp
MYFSXPATH\Scenery\Global\Texture.CAB
MYFSXPATH\Scenery\Global\Texture\FINDME.DDS
MYFSXPATH\Scenery\Global\Texture.CAB
MYFSXPATH\Texture\FINDME.bmp
MYFSXPATH\Texture.CAB
MYFSXPATH\Texture\FINDME.DDS
MYFSXPATH\Texture.CAB
That's a lot of disk thrashing.
All CPU cycles utilised
detract from FSX/FSXA FPS.
Apologies for the emphasis.
Bottom line
Filename AND Extension should match those called by the Model.
Everyone would benefit from correcting an error in the default texture.cfg
To emphasise.
Fully agreed.
Everyone should definitely correct these.
so I highly recommend editing the default texture.cfg file
and pasting it into every ..\texture.nn folders used by the default aircraft!
Heads-Up
The FSX Acceleration FA-18
has some non-standard texture.cfg files
you'll have to correct those manually.
HTH
ATB
Paul