Hi ! I'm a new with modding but I wanted to made my own track. As I start with Blender too, I made something basics but when I import my track in .FBX in KsEditor it keeps having an error. It said "An external component throws an exception" This is the log I have (it's in french sorry I'm not a native english speaker :/ ) /// Consultez la fin de ce message pour plus de détails sur l'appel du débogage juste-à-temps (JIT) à la place de cette boîte de dialogue. ************** Texte de l'exception ************** System.Runtime.InteropServices.SEHException (0x80004005): Un composant externe a levé une exception. à Model.load(Model* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* , GraphicsManager* , IModelImporter* ) à ksNet.ksGraphics.loadFBX(String filename, UInt32& key) dans i:\manu\documents\ac-source-pc\ksnet\ksnet.cpp:ligne 743 à ksEditor.Form1.loadFBXFile(String file, Boolean saveRecent) dans i:\Manu\Documents\ac-source-pc\ksEditor\Form1.cs:ligne 840 à ksEditor.Form1.openFBXToolStripMenuItem_Click(Object sender, EventArgs e) dans i:\Manu\Documents\ac-source-pc\ksEditor\Form1.cs:ligne 826 à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) à System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) à System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.ScrollableControl.WndProc(Message& m) à System.Windows.Forms.ToolStrip.WndProc(Message& m) à System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Assemblys chargés ************** mscorlib Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2633.0 built by: NET471REL1LAST_C CodeBase : file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- ksEditor Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Assetto%20Corsa%20Editor/ksEditor.exe ---------------------------------------- System Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Core Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2633.0 built by: NET471REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Xml Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2612.0 built by: NET471REL1LAST_B CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ksNet Version de l'assembly : 1.0.5884.33843 Version Win32 : CodeBase : file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Assetto%20Corsa%20Editor/ksNet.DLL ---------------------------------------- Accessibility Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll ---------------------------------------- System.Windows.Forms.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll ---------------------------------------- Microsoft.GeneratedCode Version de l'assembly : 1.0.0.0 Version Win32 : 4.7.2612.0 built by: NET471REL1LAST_B CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ksMathCore Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Assetto%20Corsa%20Editor/ksMathCore.DLL ---------------------------------------- mscorlib.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.7.2556.0 built by: NET471REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll ---------------------------------------- ************** Débogage JIT ************** Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette application ou cet ordinateur (machine.config) doit avoir la valeur jitDebugging définie dans la section system.windows.forms. L'application doit également être compilée avec le débogage activé. Par exemple : <configuration> <system.windows.forms jitDebugging="true" /> </configuration> Lorsque le débogage juste-à-temps est activé, les exceptions non gérées seront envoyées au débogueur JIT inscrit sur l'ordinateur plutôt que d'être gérées par cette boîte de dialogue. /// If any of you have know where it come from I will be very happy because I search on the Net and I test a lot of things but nothing works.
Hi @Dal , welcome to the forums. This is just part of the log, could you try to attach complete log files ? (they might be under \assettocorsa\sdk\editor\crash_logs. Before that, make sure: - no mesh has more than 65k values (keep in under 50k tris to be sure) - all objects that you export to FBX have a material
Hi, so i checked in this folder (\assettocorsa\sdk\editor\crash_logs) but it's empty I only have a road, name 1ROAD and textures on it + 4 cubes named AC_PIT_0, AC_START_0, AC_TIME_0_R/AC_TIME_0_L with the same texture as the road in my Blender project My projet is very little, there no way my mesh has more than 65k values. For example, with the rule, I measure 30 meters at the 2 extremities of the road. I'm completely lost to be honest, I'm pretty sure I followed the tuto and didn't make mistake :/
As I said I use Blender, but I'm still a novice. So that's what I want to import in KsEditor (Blender1.png) That's what I get in KsEditor once I convert it in .FBX (KsEditorerror.png) The weird thing is that I ask a friend to run my .FBX in his PC and it works (almost) perfectly.
As I said I use Blender, but I'm still a novice. So that's what I want to import in KsEditor (Blender1.png) That's what I get in KsEditor once I convert it in .FBX (KsEditorerror.png) The weird thing is that I ask a friend to run my .FBX in his PC and it works (almost) perfectly.
What are the export settings ? Also, does your ksEditor load any other fbx (example, try attached sample)? - on Tapatalk
Oh thank you for the sample it works ! I could also export it in .kn5 and play it in AC. Now that we know that it works, it means that it's my project who bug ? Here is my export settings (settings.png)
I have exactly the same error as the original poster, pasted below. KsEditor won't load any .fbx files for me, including the sample in reply #7. I'm working on a track in 3ds max and have gone through many a tutorial and think I'm doing most things right but my machine is unwilling to get KsEditor to import any files. I've also got the 4gbpatch but that didn't solve the issue either. In addition, no log or crash_logs were registered until I tried to mix and match KsEditor by pasting the modded KsEditor (v6) into the same folder, which gave some crash logs, attached. The following is an error popup: Import Progress Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. External component has thrown an exception. Details: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at Model.load(Model* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* , GraphicsManager* , IModelImporter* ) at ksNet.ksGraphics.loadFBX(String filename, UInt32& key) in i:\manu\documents\ac-source-pc\ksnet\ksnet.cpp:line 743 at ksEditor.Form1.loadFBXFile(String file, Boolean saveRecent) in i:\Manu\Documents\ac-source-pc\ksEditor\Form1.cs:line 840 at ksEditor.Form1.openFBXToolStripMenuItem_Click(Object sender, EventArgs e) in i:\Manu\Documents\ac-source-pc\ksEditor\Form1.cs:line 826 at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.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) ************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- ksEditor Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Assetto%20Corsa%20Editor/ksEditor.exe ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ksNet Assembly Version: 1.0.5884.33843 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Assetto%20Corsa%20Editor/ksNet.DLL ---------------------------------------- Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ksMathCore Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Assetto%20Corsa%20Editor/ksMathCore.DLL ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
Here, take a look at my troubleshooting guide ! It's the error#1 https://steamcommunity.com/sharedfiles/filedetails/?id=2794236199