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

Can't load .oav file

GHD

Messages
12,244
Country
england
Code:
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'S:\Paul Baines Aberdeen\texture\Airpt005.oav' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.Open(String path, FileMode mode)
   at ASToFra.TextureLoader.DDSLoader.Validate(String filename)
   at ASToFra.TextureLoader.AllTextureLoader.Read(String filename)
   at ASToFra.ObjectModel3D.TextureDictionary.GetTextureImage(String t, String p, String livery)
   at ASToFra.ObjectModel3D.ObjectModel.GetTextureImage(String t)
   at ASToFra.ObjectModel3D.ObjectModel.SetAlphaTextures()
   at ASToFra.ObjectReader.BGL9Reader.Read(String filename)
   at ASToFra.ObjectReader.BGLReader.Read(String filename)
   at ASToFra.ObjectReader.AllObjectReader.Read(String fileName)
   at ASToFra.ModelConverterX.MainWindow.bwImporter_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3620 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ModelConverterX
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/ModelConverterX.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectWriter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/ObjectWriter.DLL
----------------------------------------
TextureObject
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/TextureObject.DLL
----------------------------------------
ObjectModel3D
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/ObjectModel3D.DLL
----------------------------------------
ObjectRenderer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/ObjectRenderer.DLL
----------------------------------------
GRV11DLL
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///G:/ModelConverterX/GRV11DLL.DLL
----------------------------------------
ObjectReader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/ObjectReader.DLL
----------------------------------------
Utils
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/Utils.DLL
----------------------------------------
ObjectEditor
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/ObjectEditor.DLL
----------------------------------------
TextureLoader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///G:/ModelConverterX/TextureLoader.DLL
----------------------------------------

But it can be opened in DxtBmp
 
Last edited:
Load the oav file into DXTBmp, save it as a BMP file, and then specify that texture in MCX?
 
Unfortunately, MCX will not load the model so I cannot specify a texture.
 
Hi Folks

George -
Convert the texture to a BMP,
then hex-edit the model, changing texture's ext to .bmp.

Try the freeware Hexeditor XVI32.

Otherwise you'll have to wait for Arno, (ISTR he was off to the States).

HTH
ATB
Paul
 
Thanks Paul,

I do have a hex editor but I prefer to wait for Arno.

In fact, I don't need that particular texture, all I wanted to do was extract the control tower ;)
 
Hi,

It seems to be the problem is that the file can not be accessed by ModelConverterX. Are you sure no other program is using it at the same moment?

I will see if I can reproduce the problem here, but I am not sure if that is possible. Else I will see if I can make the loader more robust when a file can not be accessed.
 
Hi,

It seems to be the problem is that the file can not be accessed by ModelConverterX. Are you sure no other program is using it at the same moment?

No other progam was accessing it apart from Explorer having the top level folder open.

I have attached the bgl and the aberrant texture.
 
Last edited:
Thanks, I will test it.
 
I moved the bgl to the desktop so no textures would be available and it worked fine. Obviously the models weren't textured in MCX.
 
Hi,

I fixed the crash. From now on when a texture file is in use by another program or can not be opened for another reason, ModelConverterX will not crash. Instead the texture will not be loaded and a checkerboard pattern will be shown.
 
Back
Top