XNA Creators Club Online
Page 1 of 1 (18 items)
Sort Posts: Previous Next

HeightmapCollision sample problem

Last post 09-22-2008 11:29 PM by II ARROWS. 17 replies.
  • 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 In reply to

    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 In reply to

    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 In reply to

    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 In reply to

    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 In reply to

    Re: HeightmapCollision sample problem

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

    Re: HeightmapCollision sample problem

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

  • 06-05-2008 4:15 AM In reply to

    Re: HeightmapCollision sample problem

    Run perfect now!! =D
    Change project name only!!
    Tks ASHOUR!!!

    Flexa
  • 06-05-2008 12:54 PM In reply to

    Re: HeightmapCollision sample problem

    Check in HeightMapInfo.cs if the namespace is HeightmapCollisionWindows_MIO

    And later repeats the process of Ashour ^^

    Flexa
  • 09-11-2008 4:39 PM In reply to

    Re: HeightmapCollision sample problem

    WILEz:
    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:
    Me too, but the error is different:

    Error loading "terrain". File contains Microsoft.Xna.Framework.Graphics.Texture2D but trying to load as Microsoft.Xna.Framework.Graphics.Model.

     

    I think it's right, the file is .bmp, but the sample uses the same file, the same instruction(Content.Load<Model>("terrain");)

    But works... why?

  • 09-11-2008 5:27 PM In reply to

    Re: HeightmapCollision sample problem

    Sounds like youre not putting the heightmap texture through the correct content processor.
    Eli Tayrien - XNA Framework Developer
  • 09-11-2008 5:56 PM In reply to

    Re: HeightmapCollision sample problem

    Uh?

    TankOnAHeightmap
    terrain = Content.Load<Model>("terrain"); 

    My's

    terrain.model = content.Load<Model>("Models\\terrain"); 

    I do the same operation, the only difference is the source location, and my terrain is an Object with a model...

  • 09-12-2008 11:35 PM In reply to

    Re: HeightmapCollision sample problem

    Please I need help!