QUESTION ksEditor shuts down while importing fbx

Discussion in 'General' started by Eidolon, Dec 5, 2016.

  1. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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!
     
  2. origalde

    origalde Member

    Joined:
    Nov 30, 2019
    Messages:
    55
    Likes Received:
    27
  3. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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: Jan 5, 2021
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
  5. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
    maybe post your "...\Documents\Assetto Corsa\logs\log.txt"
    after trying to import your fbx into ksEditor
     
  6. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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
     

    Attached Files:

    Last edited: Jan 5, 2021
  7. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
    read my previous post too! logs dont help
     
  8. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    I had read your previous post, tomorrow I'll try, I'll update you.
    Thanks!
     
    fughettaboutit likes this.
  9. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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
     
  10. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
    "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
     
  11. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
    oh and maybe its only working on Blender 2.76
    as written on that kn5-export-plugin webpage
     
  12. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    de
    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!
     
  13. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
     
  14. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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
     
  15. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
    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
     
  16. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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
     
  17. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    426
    Likes Received:
    167
    oh haha, forgot about RTB, you have split up your track in several parts, i am afraid
     
  18. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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 ...
     
  19. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
     
  20. Massimo

    Massimo New Member

    Joined:
    Jul 9, 2019
    Messages:
    29
    Likes Received:
    5
    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: Jan 28, 2021
    fughettaboutit likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice