handchugtaga
New Member
I'm writing a game where I want to use ContentTypeReader. While loading my model like this:\[code\]terrain = Content.Load<Model>("Text/terrain");\[/code\]I get following error:\[code\]Error loading "Text\terrain". Cannot find ContentTypeReaderAdventureGame.World.HeightMapInfoReader,AdventureGame,Version=1.0.0.0,Culture=neutral.\[/code\]I've read that this kind of error can be caused by space's in assembly name so i've already removed them all but exception still occurs.This is my content class:\[code\][ContentTypeWriter]public class HeightMapInfoWriter : ContentTypeWriter<HeightmapInfo>{ protected override void Write(ContentWriter output, HeightmapInfo value) { output.Write(value.getTerrainScale); output.Write(value.getHeight.GetLength(0)); output.Write(value.getHeight.GetLength(1)); foreach (float height in value.getHeight) { output.Write(height); } } public override string GetRuntimeType(TargetPlatform targetPlatform) { return "AdventureGame.World.Heightmap,AdventureGame,Version=1.0.0.0,Culture=neutral"; } public override string GetRuntimeReader(TargetPlatform targetPlatform) { return "AdventureGame.World.HeightMapInfoReader,AdventureGame,Version=1.0.0.0,Culture=neutral"; }}\[/code\]Does anyone meed that kind of error before?