[tiled-user] Tiledata
Christian Henz
chrhenz at gmx.de
Wed Aug 15 09:10:03 PDT 2007
On Wed, Aug 15, 2007 at 11:36:02AM +0200, milligan at gatesofdestiny.com wrote:
>
>
> Hello list
>
> This is my first post, so you'll have to excuse me
> if I'm asking something that I shouldn't be requesting assistance with
> here.
>
> I have a tileset that I've managed to make a nice map
> with. Mapdata is generated, and the xml file seems to be correctly
> generated. However, when extracting tiledata from the file, I get these
> values:
>
> 0 0 0 23 0 0 0 23 0 0 0 etc etc ... and I KNOW that
> there are different tiles in the positions...
>
> The code I am
> using to extract the tiledata is as follows:
>
> System.Convert.FromBase64String(iterator.Current.Value.Trim());
>
Are you maybe expecting something more like 23 23 etc ?
If so, then you must convert the byte array that you get after the
Base64 decoding into 32 bit integers.
cheers,
Christian
More information about the tiled-user
mailing list