Can't get tile Custom Properties

Aug 13, 2011 at 12:25 AM

Hi, im having a problem while trying to read custom properties from a tile, i even tried this http://tide.codeplex.com/discussions/244983 but the problem still persists, so i made a quick test to show the problem: http://dl.dropbox.com/u/19912093/Test.rar

The problem is in the Update Method, in there i have a code that loads a layer propertie sucessfully, but when i try to access a tile custom propertie it throws a KeyNotFoundException.

Thanks in advance :)

Coordinator
Aug 13, 2011 at 2:20 PM

Thanks for setting up the example project. The source of the problem was a bug in the Tbin binary format for map files as this is used internally by the XNA content pipeline processor for tIDE maps. As I have released v2.0.4 of the engine just yesterday, I decided to update v2.0.4 to include the Tbin fix. Can you please try out your code with the updated engine?

Aug 13, 2011 at 4:18 PM

Wow thanks you very much colinvella, it works perfectly now!!  Btw this Map editor is awesome, it is the most complete and useful map editor i have found :)

Coordinator
Aug 13, 2011 at 4:25 PM

Glad to hear :)