Hi Brendon , got a problem maybe you can solve. I was working this weekend and suddenly an error appeared on the screen and every view window appeared a red X, I had done alot of work and so I saved the file before shutting down BTB. I restarted BTB and loaded the saved project then I tried to export to rfactor and got this error.
System.NullReferenceException: Object reference not set to an instance of an object.
at BobsBits.rFactor_GMT.CalculateOBBTerrain(Mesh Mesh, Vector3 Offset, VertexElement[] Elements)
at BobsBits.rFactor_GMT.PopulateFromTerrain(TerrainArea loTA, Vector3 Offset, String lsName)
at BobsBits.ISIEngine.rFactor_Venue.AddTerrainArea(Int32 TerrainAreaId)
at BobsBits.ISIEngine.rFactor_Venue.AddTerrain()
at BobsBits.ISIEngine.rFactor_Venue.CreateAll(Vector3 Offset, String VenueFolder, String TrackFolder)
at BobsBits.Venue.ExportForrFactor(String ExePath, String VenueFolder, String TrackFolder, String VenueName, String TrackName, Boolean OverwriteTDF, Boolean OverwriteGDB, Boolean OverwriteSCN, Boolean OverwriteAIW, Boolean OverwriteCAM)
at BobsTrackBuilder.frmExport.butrFactorExport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I know that what caused the export error was saving the file after recieving the first error because when I first got the exporting Exception error I tried to retrace my steps, deleting everything I had done and exporting right after. I was at this for a couple of hours and always got the error. Phewww!. Finaly I gave up and loaded an older copy of my project and it happend again (suddenly an error message and red X on every view window.) so I saved my progress before shutting BTB down. Restarted BTB , loaded the file and exported, and got the Exception error. Thats when I realised this was causing the exporting error.
My specs
Latest version of BTB
Win XP pro SP3 32 bit
P4 2,6 Ghz
nvidia 7600 gs AGP
2000 MB ram
Project files link http://postdownload.filefront.com/13784033//c0230d39c3e31f521293f44fe9e7fe743e5746b6ec5ddfd696e7b578162baca62b30f39ed70f9006
System.NullReferenceException: Object reference not set to an instance of an object.
at BobsBits.rFactor_GMT.CalculateOBBTerrain(Mesh Mesh, Vector3 Offset, VertexElement[] Elements)
at BobsBits.rFactor_GMT.PopulateFromTerrain(TerrainArea loTA, Vector3 Offset, String lsName)
at BobsBits.ISIEngine.rFactor_Venue.AddTerrainArea(Int32 TerrainAreaId)
at BobsBits.ISIEngine.rFactor_Venue.AddTerrain()
at BobsBits.ISIEngine.rFactor_Venue.CreateAll(Vector3 Offset, String VenueFolder, String TrackFolder)
at BobsBits.Venue.ExportForrFactor(String ExePath, String VenueFolder, String TrackFolder, String VenueName, String TrackName, Boolean OverwriteTDF, Boolean OverwriteGDB, Boolean OverwriteSCN, Boolean OverwriteAIW, Boolean OverwriteCAM)
at BobsTrackBuilder.frmExport.butrFactorExport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I know that what caused the export error was saving the file after recieving the first error because when I first got the exporting Exception error I tried to retrace my steps, deleting everything I had done and exporting right after. I was at this for a couple of hours and always got the error. Phewww!. Finaly I gave up and loaded an older copy of my project and it happend again (suddenly an error message and red X on every view window.) so I saved my progress before shutting BTB down. Restarted BTB , loaded the file and exported, and got the Exception error. Thats when I realised this was causing the exporting error.
My specs
Latest version of BTB
Win XP pro SP3 32 bit
P4 2,6 Ghz
nvidia 7600 gs AGP
2000 MB ram
Project files link http://postdownload.filefront.com/13784033//c0230d39c3e31f521293f44fe9e7fe743e5746b6ec5ddfd696e7b578162baca62b30f39ed70f9006