• 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 SCASM compatibility

Messages
119
Country
italy
Hi Guys!
I'm trying to convert an old .bgl that is not recognized by ModelConverterX directly; so I did use BGLAnalyze 3.1 and disassemble it into a SCASM file; when I try to load it in MCX I receive the following message, after a while and the same happens if trying to Batch convert it:

An error occured during importing the selected file

Message:
Value was either too large or too small for an Int16.

StackTrace:
at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
at System.Convert.ToInt16(String value, Int32 fromBase)
at ASToFra.SCASMReader.DwxToByteArray(SCASMCommand sca)
at ASToFra.SCASMReader.BinarySCASMToByteArray(SCASMCommand sca)
at ASToFra.SCASMReader.ReplaceBinaryCommands(List`1 commandList)
at ASToFra.SCASMReader.Read(String filename)
at ASToFra.ObjectReader.read(String fileName)
at ASToFra.MainWindow.bwImporter_DoWork(Object sender, DoWorkEventArgs e)


I also have a lighter version that apparently is loaded without problem from a converted SCASM...

It's a freeware bgl, so I can point to the original archive, if needed...

S!
 
Hi,

Looks like you found a bug. If you can tell me which file, I will try to debug.
 
Hello Arno!
Thanks for answering: here is the archive, else I can send you the SCASM if you prefer... Actually as I wrote I was able to convert and recreate the light version you'll find in this same archive...

Please, let me know!

Cheers
 
Hi,

OK, got the file and I will take a look.
 
Hi,

I have fixed the issue with importing the SCASM file. There was some unexpected value in it and the reader is more robust now. However after that I still can't load the SCASM file, I get an out of memory exception.

But I also fixed some bugs in the BGL reader, now I can import both BGL files directly without problems.

All these changes will be in the development release tomorrow.
 
WoW

That is GREAT Arno!
Thanks a lot! Being able to directly load that kind of bgl /I have others too...) would be even a better choice for me...

I look forward for your next release...

S!
 
The latest Beta seems quite GOOD!

I'd been working on old BGLs directly and I've been able to load them all without much troubles... I've noticed that you're now presented with an option panel [Set condition variables] after loading these objects even though I believe these are not relevant for these kind of objects: i.e. I have I_gear while loading only buildings... It may be because the original designer left some options included even if not needed, I wonder...?
Bear with me, now I have another question, if someone may point me to the right path: suppose now I want to convert some of the nasty transparent issues related to modeling or texturing one piece, how should I be able to proceed? I have both GMax and FSDS to start delving in object manipulation, but I cannot find the proper way to export compatible files from MCX... Any hint would be much appreciated.

...and thanks a lot Arno for this program.
Cheers
 
Hi,

Some of the variables are not recognised correctly indeed, so if it shows a gear variable or so that could be a different one for scenery. If you don't want to be asked about the variables, you can also change the options. You can specify that conditions are always true or false as well.

About the transparency problem, can you be a bit more specific about the problems you have. In ModelConverterX you should be able to apply the right material settings for transparent materials already. That's done with the "Set Default Transparent" button in the material editor. When ModelConverterX finds a texture with an alpha channel on import it will also apply these settings by default.
 
Hello Arno, thanks again for answering: about the variables, is this routine already present in the 120 version? I never noticed it...
I know and I've already used the texture transformation tool inside MCX, but not all the time the results are satisfactory..
For example, if you want to make a fence transparent instead of black-blocked, adding the alpha channel would usually solve the situation; the same should go with the trees, possibly? I have to check this last out.
As in the case with the Poretta scenery I've mentioned, you may fix the transparency problem of the airport fences, but you still have a problem if you just add the alpha channel to the glass textures used on the terminal and tower: they will just appear as holes... since these objects should have a volumetric subdivision inside, or at least mask their inner dimension (or lack of thereof). I've tried to create different degrees of grays for the alpha, but as yet I haven't found a way to control the degree of transparency.
So I thought I would try to redefine the materials inside a proper 3d dedicated program (that I have installed, but not used at all up to now, even though I have a bit of experience with the 3D world...), or just for the sake of order, disassemble multiple parts of one object contained in a bgl (i.e. the fence segments, the three hangars, the light poles, etc.), and reassemble them as a BGL Library of objects...
Of course my intention is to do this just for my own personal use, or if about materials of the public domain that I'm willing to re-distribute, after asking permission from the original authors etc.

Cheers
 
Back
Top