I have a rather strange problem, for the life of me I can't figure out what I did wrong, but here goes.
I have an array of map tile information such as mapTile[i,n] really they're just strings containing the sprite sheet, and position of the tile that should be displayed. the strings are relatively small, maybe 7 chars long.
when I create a blank map, i write the first line containing the maps name, height and width, and the event file associated with the map.
then I loop through the tiles writing each on its own line, the problem is it cuts off at the same place each time, I'm not sure if there is a maximum number of lines etc, but I see no problem with my code. and it cuts off in the middle of a string. anyway heres my code:
|
Any help would be greatly appreciated.
I've been testing with a 100x100 map size. it cuts off at line 9898 and on that line only the first 4 char's are written.
Sam HobbsPosted Jan 18, 2011, 3:58 PM
Also, try using a "using" block for files. It seems like a cumbersome thing to do and I don't like it but it is the C# way to do things. The purpose of a "using" block is to ensure that clean-up is done as needed.
Vijay YadavPosted Jan 18, 2011, 6:14 AM
Your code is running fine.
Check it once again
Thanks
Vijay
Kirtan PatelPosted Jan 17, 2011, 12:07 AM
Michael ClinePosted Jan 16, 2011, 11:08 PM
Kirtan PatelPosted Jan 16, 2011, 10:34 PM