P3D v4 Adding V4.4 Models to ADE

#1
Hi,

First time in a while I've used ADE to place a model, Is ADE compatible with the V4.4 mdl? when I add a v4.4 model to 'Lists-Models' it shows an error message, then ADE shows only zero's for the GUID and user model for the name.

System.NullReferenceException: Object reference not set to an instance of an object.
at ASToFra.ObjectEditor.footprintGenerator.GenerateFootprint(ObjectModelobjIn)
at ScruffyDuck.Flightsim.Scenery.SceneryObject.Model.GetTriangles(BooleanIsUserModel)

I'm using version 01.76.6715.14291

It does this for all models Ive tried so far when compiled with V4.4 SDK. Works fine with previous SDK compiled models.

Regards

Stevo ;)
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#3
This is an error coming from code developed by Arno and included in ADE. Hopefully Arno will see this and check. It may be that ADE is not using the latest version of Arno's code that addresses this or it may be a bug
 
#5
This is an error coming from code developed by Arno and included in ADE. Hopefully Arno will see this and check. It may be that ADE is not using the latest version of Arno's code that addresses this or it may be a bug
i think you can download the lastest MCX version that comes with the newest libraries and just use them :)
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#6
Hi,

I think the problem is that Jon is using an older version of the DLL files, these are from before the update that adds P3D v4.4 support. Jon, I think you need to check that the the reading of the object actually returned a non-empty scenery, before passing it to the footprint generator.

Just replacing the DLL files with the ones from the latest MCX will probably not work. I did rebuild the DLL files in a different .NET version for Jon last time. So I don't think the new ones are compatible with ADE.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#8
I am checking this now. Stevo, could you please send me a couple of the mdl files you created which generate the error message to jon AT scruffyduck DOT org. Using Arno's latest libraries in 1.76 will generate an error. The current internal development version is using them successfully.
 
#9
Email sent Jon,

I have since found that a model with the standard P3D material applied adds ok to ADE, however it is when the model has the new PBR material added, ADE give the error. I have said this in the email.

Stevo ;)
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#10
OK - thanks - we are looking at what is going on. Will get back to you when we have worked it out
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#11
This should now be fixed. I will try and release a development version in the next couple of days that should handle P3D v4.4 mdl files correctly for footprints and other information
 
#13
@stevo stevocan you post pictures of what you could achive with PBR
Im using your substance config and i want to see the results from a PRO so i can start learning substance
Thnx :)
 
Top