• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

QUESTION ksEditor shuts down while importing fbx

Massimo

Member
How big is the fbx file? I've had problems importing large tracks, but I fixed that by patching ksEditor to make more memory available
Hi!
Please, can you explain me how to patch KsEditor? I'm working With very large tracks and I have same problem (editor shotdown)

Thanks!
 

Massimo

Member
Thanks for your reply my friend!
This solution doesn't works for me, I'm trying to import in KsEditor a really big map (about 200 Km^2), but the .fbx file is about 700kbs (map without anything taken from Google Maps using Race track builder , I tried the import in KsEditor just to check any problems).
Is there a workaround to increase the memory available for KsEditor? Maybe another patch that gives more memory? Or any other solution? Or do I necessarily have to review my projects?
thanks for your attention

Best Regards
 
Last edited:

Massimo

Member
maybe post your "...\Documents\Assetto Corsa\logs\log.txt"
after trying to import your fbx into ksEditor
hello friend and thanks for your reply!
I'm new on RTB and big maps, so I got some research, and I have to point out that I haven't set the initial map size in RTB, this could be the problem ... I have already tried the Modded KsEditor, but there is the same problem. In any case, I enclose the error text that shows up in the KsEditor importing the track, unfortunately some lines may be in Italian, sorry for that

************** Testo dell'eccezione **************
System.Runtime.InteropServices.SEHException (0x80004005): Eccezione lanciata da un componente esterno.
in Model.load(Model* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* , GraphicsManager* , IModelImporter* )
in ksNet.ksGraphics.loadFBX(String filename, UInt32& key) in i:\manu\documents\ac-source-pc\ksnet\ksnet.cpp:riga 743
in ksEditor.Form1.loadFBXFile(String file, Boolean saveRecent) in i:\Manu\Documents\ac-source-pc\ksEditor\Form1.cs:riga 840
in ksEditor.Form1.openFBXToolStripMenuItem_Click(Object sender, EventArgs e) in i:\Manu\Documents\ac-source-pc\ksEditor\Form1.cs:riga 826
in System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
in System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
in System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
in System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
in System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
in System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
in System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
in System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.ToolStrip.WndProc(Message& m)
in System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assembly caricati **************
mscorlib
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4300.0 built by: NET48REL1LAST_C
Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ksEditor
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///D:/Giochi%20Steam/steamapps/common/assettocorsa/sdk/editor/ksEditor.exe
----------------------------------------
System
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4300.0 built by: NET48REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4270.0 built by: NET48REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4084.0 built by: NET48REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4190.0 built by: NET48REL1LAST_B
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4300.0 built by: NET48REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4084.0 built by: NET48REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ksNet
Versione assembly: 1.0.5884.33843
Versione Win32:
Base di codice: file:///D:/Giochi%20Steam/steamapps/common/assettocorsa/sdk/editor/ksNet.DLL
----------------------------------------
System.Windows.Forms.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4084.0 built by: NET48REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.GeneratedCode
Versione assembly: 1.0.0.0
Versione Win32: 4.8.4084.0 built by: NET48REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ksMathCore
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///D:/Giochi%20Steam/steamapps/common/assettocorsa/sdk/editor/ksMathCore.DLL
----------------------------------------
mscorlib.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.8.4084.0 built by: NET48REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** Debug JIT **************
Per abilitare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
abilitato.
Ad esempio:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Quando il debug JIT è abilitato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.



I also attach the log file as you asked but I'm not sure its content is right, so I attach the file assettocorsa/sdk/editor/errors.log not sure, but can helps.
thanks!

Best regards
 

Attachments

Last edited:

Massimo

Member
maybe use blender 2.79, there is an export plugin that export's to kn5 directly:
https://sites.google.com/site/hagn99/assettocorsa/blender-kn5-exporter

i tried to make that work on newer blender versions, but last time in autumn i just ragequited when running into the x-th problem with it...

other than that there is modded ksEditor from x4fab, but i think it has the same limitations:
https://ascobash.wordpress.com/2015/07/22/kseditor/
Just tested the Blender's Addon for Kn5 files, but I've this problem at the end of export loading.
Any idea? (I'm new in Blender 2.79, just a little skill in 2.9)

Error Text:

Traceback (most recent call last):
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\__init__.py", line 107, in execute
self.writeContent(outputFile, context, settings, warnings)
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\__init__.py", line 135, in writeContent
nodeWriter.write()
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\NodeWriter.py", line 52, in write
self.writeObject(o)
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\NodeWriter.py", line 59, in writeObject
self.writeMeshNode(object)
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\NodeWriter.py", line 104, in writeMeshNode
dividedMeshes=self.splitObjectByMaterials(object)
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\NodeWriter.py", line 216, in splitObjectByMaterials
uv=self.calculateUvs(object,meshCopy,materialIndex,localPosition)
File "C:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\kn5exporter\NodeWriter.py", line 263, in calculateUvs
y=co[1]/size[1]
ZeroDivisionError: float division by zero
 

fughettaboutit

aka leBluem
"Any idea" not really
some guesses: some of your objects have double materials assigned
upload_2021-1-5_22-52-59.png

that export-plugin does a "SplitByMaterial" by itself it seems and you end up with something empty

maybe do "SplitByMaterial" by hand: select all, enter edit mode with TAB, use "P" (separate), then "by material"
upload_2021-1-5_22-57-35.png
 

Massimo

Member
de
oh and maybe its only working on Blender 2.76
as written on that kn5-export-plugin webpage
Dear friend, thanks for your reply,
I tried to apply scale and rotation on all objects before the export, and it works for me! The track is correctly exported in kn5 and loaded in AssettoCorsa, but obviously in the game there is not the correct scale (the map is much smaller than the original scale).

I'll try your idea (split by material) and I'll update you.

p.s. Already tried in Blender 2.76, same issue (fixed applying scale and rotation)

Best regards!
 

Massimo

Member
Dear friend, thanks for your reply,
I tried to apply scale and rotation on all objects before the export, and it works for me! The track is correctly exported in kn5 and loaded in AssettoCorsa, but obviously in the game there is not the correct scale (the map is much smaller than the original scale).

I'll try your idea (split by material) and I'll update you.

p.s. Already tried in Blender 2.76, same issue (fixed applying scale and rotation)

Best regards!
 

Massimo

Member
Hi Guys,
Still same problem here. Large track (20 km road, about 100 km^2), tried patch but not working for me. Tried the kind solutions by funghettaboutit, but same issue...

Any update/new ideas about this error?

Thanks

Massimo
 

fughettaboutit

aka leBluem
did you make meshes all a real object, ksEditor only can handle empties and meshes

but no instanced objects, cameras, lights or such things from 3d-software
upload_2021-1-27_20-58-13.png
 

Massimo

Member
did you make meshes all a real object, ksEditor only can handle empties and meshes

but no instanced objects, cameras, lights or such things from 3d-software
View attachment 6091
Hi man!
always a pleasure to read your answers.
I will definitely try your suggestion, but this involves using blender. I find it strange that there is an error in loading the fbx exported directly from RTB that doesn't export instantiated objects as camera or ligts (it never gave me problems with other tracks)
Thanks
 

Massimo

Member
oh haha, forgot about RTB, you have split up your track in several parts, i am afraid
No worries man!
Yes I did, but it's requested to have road meshs with less 65k verts, no?
I hope my track isn't simply too big. But I remember even bigger tracks for AC ...
 

Massimo

Member
EDIT: SOLVED

Guys, I solved the problem. Simply using 3DsimED to export the fbx file generated from Race Track Builder in Kn5. Hope it can be helpful for someone.
Thanks as always to fughettaboutit for help.
best regards

Massimo
 
Last edited:
Top