HeightmapCollision sample problem

Last post 04-21-2008, 6:15 PM by WILEz. 6 replies.
Sort Posts: Previous Next
  •  04-18-2008, 8:31 PM

    HeightmapCollision sample problem

    Hello, excuse me mine very bad English, i'm italian.
    I've a inconvenience whit HeightmapCollision sample.

    I've created a new project and i've copied a does the stop at code of the solution and now the two project they are sameness but I've an error:

    Error loading "terrain". Cannot find ContentTypeReader HeightmapCollision.HeightMapInfoReader, HeightmapCollision, Version=1.0.0.0, Culture=neutral.

    Why?
  •  04-19-2008, 8:09 AM

    Re: HeightmapCollision sample problem

    I've not looked at that specific sample, but based on the error it appears that you haven't included the reference of the pipeline project in your program's Content project.

    Assuming you have both projects opened in the same solution, you can expand the Content project of the main program and then right click on References to add a project reference.  If it isn't in the same solution, you will need to browse your harddrive for the assembly that was compiled from the earlier solution.

    Hope this helps,

    Chad



    Microsoft XNA Unleashed - 2D, 3D, HLSL, Content Pipeline, XACT, Particle Systems, AI, Physics, Game States, Performance, Garbage Collection and 2 full games!
  •  04-19-2008, 6:42 PM

    Re: HeightmapCollision sample problem


    The original project and my project are sameness in all files and reference.
    This is my solution:
    http://www.wico.netsons.org/HeightmapCollision-MY.rar

    Please help me!
  •  04-19-2008, 7:31 PM

    Re: HeightmapCollision sample problem

    just update the code in heightmapinfocontent.cs in the heightmap project by changing
    the project name to yours after adding the heightmapinfo class to your project and changing its namespace to your project's one too
            /// <summary>
    /// Tells the content pipeline what CLR type the sky
    /// data will be loaded into at runtime.
    /// </summary>
    public override string GetRuntimeType(TargetPlatform targetPlatform)
    {
    return "<YourProjectName>.HeightMapInfo, " +
    "<YourProjectName>., Version=1.0.0.0, Culture=neutral";
    }


    /// <summary>
    /// Tells the content pipeline what worker type
    /// will be used to load the sky data.
    /// </summary>
    public override string GetRuntimeReader(TargetPlatform targetPlatform)
    {
    return "<YourProjectName>..HeightMapInfoReader, " +
    "<YourProjectName>., Version=1.0.0.0, Culture=neutral";
    }

    Ashour
  •  04-20-2008, 4:26 PM

    Re: HeightmapCollision sample problem


    But my ProjectName is HeightmapCollision, sameless the original sample! The two project are sameness in all files and code. Is a copy. :(

  •  04-21-2008, 7:44 AM

    Re: HeightmapCollision sample problem

    are u sure u added the heightmapinfo class?
    Ashour
  •  04-21-2008, 6:15 PM

    Re: HeightmapCollision sample problem

    Intend add the heightmapinfo.cs file to project? Yes.
    The two solutions, original and mine:

View as RSS news feed in XML
©2007 Microsoft Corporation. All rights reserved. Privacy Statement Terms of Use Code of Conduct Feedback