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

FSXA Resample error

Messages
5
Country
australia
Hi,

I am new to making scenery for FSX, and I am having some issues with my resampler.exe, attached is a picture of my problem:
 

Attachments

  • CMD Error.JPG
    CMD Error.JPG
    41.1 KB · Views: 564
[Source]
Type = MultiSource
NumberOfSources = 4

[Source1]
Type = BMP
Layer = Imagery
SourceDir = "C:\Users\Peter\Desktop\HAYJAM_Scenery"
SourceFile = "Rottnest_main.BMP"
Variation = Day
Channel_BlendMask = 3.0
Channel_WaterMask = 4.0
NullValue = 255,255,255
SamplingMethod = Gaussian
ulyMap = -31.969971
ulxMap = 115.508047
xDim = 2.390297386602583e-5
yDim = 2.389747171392653e-5

[Source2]
Type = BMP
Layer = Imagery
SourceDir = "C:\Users\Peter\Desktop\HAYJAM_Scenery"
SourceFile = "Rottnest_night.BMP"
Variation = Night
Channel_BlendMask = 3.0
Channel_WaterMask = 4.0
NullValue = 255,255,255
SamplingMethod = Gaussian
ulyMap = -31.969971
ulxMap = 115.431694
xDim = 2.390297386602583e-5
yDim = 2.389747171392653e-5

[Source3]
Type = TIFF
Layer = None
SourceDir = "C:\Users\Peter\Desktop\HAYJAM_Scenery"
SourceFile = "Rottnest_Blend.TIFF"
SamplingMethod = Gaussian
ulyMap = -31.969971
ulxMap = 115.508047
xDim = 2.390297386602583e-5
yDim = 2.389747171392653e-5

[Source4]
Type = TIFF
Layer = None
SourceDir = "C:\Users\Peter\Desktop\HAYJAM_Scenery"
SourceFile = "Rottnest_water.TIFF"
SamplingMethod = Gaussian
ulyMap = -31.969971
ulxMap = 115.508047
xDim = 2.390297386602583e-5
yDim = 2.389747171392653e-5

[Destination]
DestDir = "."
DestBaseFileName = "Rottnest"
DestFileType = BGL
LOD = Auto
UseSourceDimensions = 1
CompressionQuality = 85
 
Presumably you have the inf file in the same folder as resample.exe?

If so, you can remove the full path from the command, ie.

resample.exe Rottnest.inf

If the inf file is not in the same folder, you need to put quotes around the path since it contains spaces:

Code:
"C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\resample.exe" Rottnest.inf
 
Yeh, My .inf is in the same folder, and also I changed the path and that still din't work.. I am new so I have never experienced anything like this.
 
So, what happens if you type:

resample.exe Rottnest.inf

?

Or, what happens if, in explorer, you drag/drop the .inf file onto resample.exe?
 
Last edited:
Tried, That gave me the same result...

It can't give the same result, there is no C:\ in the command :confused:

This is what I get:

Code:
F:\FSXSDK\SDK\Environment Kit\Terrain SDK>resample test.inf
Microsoft Corp. Terrain Resampler 10.0.61637.0 (FSX-Xpack.20070926-1421)
Copyright (C) Microsoft Corporation. All rights reserved.

Resample Info File: 'test.inf'

Resample completed successfully.

F:\FSXSDK\SDK\Environment Kit\Terrain SDK>
 
It is really important to read the error dialog you get.

As pointed out, the error dialog cannot be the same.

You need to be more systematic, rather than abdicating "it doesn't work"

Take a look at the error dialog again, and see what it is this time ....


BTW: Rotto does have some nice imagery available ... even looked at doing it myself a while back before things bacame a bit busy.
 
I am using a batch file so I can see any errors, and it is say my desktop is an unrecognizable batch, Where and what do I have to "edit" so it finds the batch file?
 
... and it is say my desktop is an unrecognizable batch, ......
James ... I don't understand what your sentence means.
A desktop cannot be a batch .. it might be worth posting exactly what it says.
 
I should probably add something here. I've been helping James with making basic photoreal scenery, as this is his first project. What we've been going through is making the main PR base, then night textures as well as blend and water masks. We edited the .inf file correctly, and when we came to running the batch file to tell the .inf file to run with resample, we got an error (as displayed in the first post). I thought it may have been an administrator rights issue, so I told him to copy the resample.exe file, the batch file and the .inf to the desktop and tried running it from there, and received the same error (from what I can tell).
 
Disregard, there was an error in his batch file I believe. We've now come across an issue with the blend and water masks, where resample says "Pixel height and width must be greater than zero". I've tried redoing the masks myself and have received the pixel error too.
 
I have tagged resample.exe to "Run As Administrator" in WIn7

With regard to the Masks:

It will depend what you are saving them with:


They need to be TIF files
The masks need to be Flattened when saving
(24 bit or 8bit greyscale will work fine)
No compression (from memory ZIP will work but not LZW .. but resample then has to decompress the images anyway, so I never save with compression)

TIFFs saved with Photoshop will get unrecognised Meta-tags ... but these don't matter an iota.

"That which does not stop us developing makes us wiser ..." or something like that
 
Last edited:
Back
Top