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

Libray Objects

Messages
69
Okay, I have been beating my head senseless trying to get this to work. So I have created a 'generic' mockup of a single library object as follows:

Part 1:
Created a vertical plane 2'x2'. No texturing, just the base color of the poly.
Exported through Gmax MakeMDL to get the MDL and XML file.
Opened the XML file and did NOT remove the comment markers around the scenery object lines.
The only line that should be compiled is the Modeldata section at the very bottom that references the MDL sourcefile.
This should in turn make this compiled BGL file into a library object (because it is not being placed anywhere inside flightsim)
I compile and get a BGL

Part 2:
I then created another scene where I have a bunch of boxes.
I run the 'attachment' script from the SDK and proceed to attach the plane from part one to all of the boxes (using different names) except for one (as the exporter needs at least a single 'physical' object to compile correctly)
I then export the entire scene once again getting an MDL and XML file.
I open the XML file and proceed to place coordinates within flightsim.
I compile and get a BGL

Conclusion:
Now, when I go into flightsim and look at the scene I created, the only thing that I see is the 'physical' box that I created from part 2. All the other 'reference' boxes from part 2 are not there, BUT there aren't any 'referenced objects' in their place either.

I know I am doing this correctly because I can drop the part 1 object directly into flightsim and it shows. Am I doing something wrong with the reference portion or what? :confused:
I am losing hair and sleep over this!!!! :banghead:

Thanx in advance for the input.

Sean E.
 
Hi Sean,

When you are calling the objects are you sure you use the correct GUID (the one listed in the first XML file)?

Also, I haven't tested this, the attached objects could be outside the bounding box of the scene (I don't know if GMax calculates it correct). You could try to add a few extra static parts in the scene around the attached objects, just to see if that is the problem.

And last idea I have now, you have placed both BGL files in your scenery folder I assume?
 
Thanx Arno,

I checked out your idea on the bounding box by placing another object outside what would be considered the radius for the center object and the references showed up. Gmax gets goofier every time I dive deeper into it. Geesh.

Thanx for the ideas and input.

In return, here's a neat trick I did by accident.

When I compiled my trees as a single poly. I compiled them with the *_LOD_50 on the end so that they wouldn't appear until you were closer. Well, I then went ahead and tweaked them with the MDL tweaker to rotate to user. Sounds like it would work right.....sort of.

I would fly close to them in flightsim and they wouldn't rotate to the view. At first I thought, "Oh great...now what?!?!?!". :banghead:

I kept flying around them trying to see what happened. As I got farther away from them....they rotated to face me. :yikes: This freaked me out.
So, I got up real close to one of the trees so that I couldn't see it's face and slowly pulled away from it. Sure enough, at a certain distance the tree turned and faced me. And as I kept creeping away past other trees, they too turned to face me.

I wonder if this could be used to our advantage....? :scratchch

Thanx again.

Sean E.
 
Back
Top