February 12, 20188 yr Hello there, I have tried to move my AI aircraft out of the main P3Dv4 folder but when I try to add a component to the Other addons tab I get this See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at P3DV4AddonOrganizer.MainDialog.PopulateAddonView() at P3DV4AddonOrganizer.MainDialog.AddComponent_FormClosed(Object sender, FormClosedEventArgs e) at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e) at System.Windows.Forms.Form.WmClose(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) hoping that someone will know the cause of this I am running win 10 64 bit and have .NET 4.7 active
February 12, 20188 yr Commercial Member Hi, I have shortened your post to the exception stack trace (the rest is irrelevant) What did you do exactly when you tried to add the AI models? Every little step matters to catch a bug. I just tried it on my end and had no issues. Which version of the P4AO are you using? Latest release is 1.27 b02 Btw. P4AO has been built with .Net 4.6.2. .Net is not cumulative, every version is a separate environment. When you only have 4.7 that does not mean that everything before that will work. Best regards LORBY-SI
February 12, 20188 yr Author Sorry my bad was trying to create the xml file inside the folder that contains all my ai aircraft moved the folder to a different location and now all is good. Have to wait now until tomorrow to see if p3d actually sees the ai traffic Regards John Grimshaw
February 12, 20188 yr Commercial Member Hello John, still, a null pointer exception shouldn't happen. Can you help me to recreate it, so I can resolve the underlying issue? Generally speaking, you can have both assets (xml and content) in the same place, using relative paths. Was that what you were trying to do? To be sure, I just did the same thing. Installed an aircraft into "C:\Users\...\Documents\Prepar3D v4 Add-ons\Legacy Aircraft\SimObjects\Airplanes\..." and added it as an "other addon" with P4AO - no error. The resulting XML looks like this (note the relative path): Quote <?xml version="1.0" encoding="utf-8"?> <SimBase.Document Type="AddOnXml" version="4,0" id="add-on"> <AddOn.Name>Legacy Aircraft</AddOn.Name> <AddOn.Description /> <AddOn.Component> <Category>SimObjects</Category> <Path>SimObjects\Airplanes</Path> </AddOn.Component> </SimBase.Document> Best regards LORBY-SI
Archived
This topic is now archived and is closed to further replies.