Can't get tile Custom Properties

Aug 13, 2011 at 1:25 AM

Hi, im having a problem while trying to read custom properties from a tile, i even tried this but the problem still persists, so i made a quick test to show the problem:

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 :)

Aug 13, 2011 at 3: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 5: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 :)

Aug 13, 2011 at 5:25 PM

Glad to hear :)