[Solved] collision model issue - failed to create ressource error

Discussion in 'Content Creation' started by Graf.Semmel, Jul 18, 2014.

  1. Graf.Semmel

    Graf.Semmel
    Expand Collapse

    Joined:
    Jun 17, 2014
    Messages:
    5
    I am working on a collision model.

    I used Blender and do the model-import und setup, like it is descibed here TUTORIAL-Sketchup-tutorial-for-LOD-and-Collision-meshes-(not-visible-mesh-collisions)

    Where i run the game after import, the collision works perfectly. But every time i restart the map, i get the error Failed to create ressource Scheibenberg_col.dae or Failed to create ressource Scheibenberg_col.cached.dts.

    These files are the collision model, which i import as a new detail shape in shape editor.




    Anyone who can help?

    EDIT

    i found the solution myself. The automated created CS-file pointed to the wrong resource path.
    I had to change the addMesh function, like showed.

    before
    Code:
    function ScheibenbergDae::onLoad(%this){
       %this.addMesh("SketchUpB 3", "Scheibenberg_col.dae", "SketchUpB 3");
       %this.addMesh("SketchUp 3", "Scheibenberg_col.dae", "SketchUp 3");
       %this.renameDetailLevel("detail3", "collision3");
       %this.setDetailLevelSize("3", "-1");
       %this.renameObject("SketchUpB", "Colmesh-1");
       %this.renameObject("SketchUp", "Colmesh-2");
       %this.setObjectNode("Colmesh-2", "SketchUp");
       %this.addImposter("0", "6", "0", "0", "128", "0", "0");
    }
    after
    Code:
    function ScheibenbergDae::onLoad(%this){
    [B]  %this.addMesh("SketchUpB 3", "levels/Test1/art/shapes/turm/Scheibenberg_col.dae", "SketchUpB 3");[/B]
    [B]  %this.addMesh("SketchUp 3", "levels/Test1/art/shapes/turm/Scheibenberg_col.dae", "SketchUp 3");[/B]
       %this.renameDetailLevel("detail3", "collision3");
       %this.setDetailLevelSize("3", "-1");
       %this.renameObject("SketchUpB", "Colmesh-1");
       %this.renameObject("SketchUp", "Colmesh-2");
       %this.setObjectNode("Colmesh-2", "SketchUp");
       %this.addImposter("0", "6", "0", "0", "128", "0", "0");
    }
     
    #1 Graf.Semmel, Jul 18, 2014
    Last edited: Jul 18, 2014
  2. jammin2222

    jammin2222
    Expand Collapse

    Joined:
    Sep 15, 2013
    Messages:
    386
    yes, I guess you missed that bit of my video. If you had watched it all you would have seen me edit the .cs file to correct the file paths. Glad you fixed it anyway.

    I think I will remake that tutorial soon. It needs improving to make the steps clearer. I was leading the blind with my own eyes shut when I made it.:rolleyes:
     
  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