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

Importing FS2004 scenery object

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,689
Country
netherlands
Hi,

I have improved the FS2004 MDL reader a bit more. I solved some problems with reading the transformations that caused crashes when loading some of the default library BGL files.

Now they load fine, but I noticed that some objects show as empty. This is because these have an empty LOD as their first LOD. Currently ModelConverterX can not yet read the LOD structure from these files. I think I might try to read the highest LOD only for the moment, or find another way to address this.
 
Hey Arno

Nice progress with your Tool! Thanks alot.
Did you already solve the problem with LODs and FS9 mdls? Or more generally, variable-dependent display of objects (LOD is checked by IfVarVSize commands if I remember correctly...)?

Regards,
Jeff
 
Hi Jeff,

No, that is still on the todo list. I have some ideas already on how to implement it, but I did not yet start with trying to implement it.

As you said I need to find a way to deal with conditional display of (parts) of the code in general, the LOD is just an example of that.
 
Hi,

I still experience some problems with importing FS9 scenery objects (made with FSDS3).
I get the following error (sorry it is in Dutch but that is Arno's doing):
System.FormatException: De indeling van de invoertekenreeks is onjuist.
bij System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
bij System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
bij System.Convert.ToInt32(String value)
bij ModelConverterX.SCASMReader.TextureList2TextureList(SCASMCommand sca)
bij ModelConverterX.SCASMReader.Generate3DModel(List`1 cmdList, Dictionary`2 labelDict)
bij ModelConverterX.MDL9Reader.ReadMDL(Int64 len)
bij ModelConverterX.MDL9Reader.Read(String filename)
bij ModelConverterX.MDLReader.Read(String filename)
bij ModelConverterX.ObjectReader.read(String fileName)
bij ModelConverterX.MainWindow.bwImporter_DoWork(Object sender, DoWorkEventArgs e)
bij System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
bij System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


************** Geladen assembly's **************
mscorlib
Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.3074 (QFE.050727-3000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly-versie: 1.0.0.0
Win32-versie: 1.1.0.0

Does that perhaps have to do with the first LOD being 0 ?
 
Hi,

Can you send me the file for debugging? It looks like there is something in the texture names that ModelConverterX does not like.
 
Hi,

Thanks. I found the bug, it was because one of the textures used on the model has a space in the name. I have fixed the bug, so in tomorrow's development build it will be solved.
 
It is getting monotonous, but, once again: thanks, it is much appreciated.
Do you mean to say that the model can not be rendered by ModelconverterX just because one of the textures has a space between the two names that describe it?
 
Yes, the filename of one of the textures has a space in it, that was the problem. Because of this, while parsing the code of the object the arguments mixed up and that caused the crash.
 
Hi Arno,

I can confirm it works now,
Had some trouble getting it to work until I found out I still had the country settings to the Netherlands. Maybe you could put it in big fat capital letters in the Wiki ?

Roby
 
Hi,

I thought the tool automatically checked if the decimal character was set OK, if not you will get an error message in the event log that tells you so. But I might have to check if that still works as it should :).
 
Back
Top