Well, I'm having problems reading the decoded GameMap ... It keeps reading the first map , it Doesn't go down...
and there's an example how the gamemap looks
Where am I wrong?
Thank you.
Code:
IniFile I = new IniFile(ThePath+ @"ini\TheGameMap.txt");
uint TotalMaps = 260;
for (uint i = 0; i < TotalMaps; i++)
{
ushort MapID = I.ReadUInt16("AllMaps", "MapID");
string Path = I.ReadString("AllMaps", "Path");
DMap D = new DMap(MapID, Path);
H_DMaps.Add(MapID, D);
}
Quote:
[AllMaps]
MapID=1000
Path=map/map/desert.DMap
PuzzleSize=256// Keeps reading this map.. Doesn't go any further
MapID=1001
Path=map/map/d_antre01.DMap
PuzzleSize=256
MapID=1002
Path=map/map/newplain.DMap
PuzzleSize=256
MapID=1003
Path=map/map/mine01.DMap
PuzzleSize=256
MapID=1004
Path=map/map/forum.DMap
PuzzleSize=256
MapID=1005
Path=map/map/arena.DMap
PuzzleSize=256
MapID=1006
Path=map/map/horse.DMap
PuzzleSize=256
MapID=1100
Path=map/map/star01.DMap
PuzzleSize=256
Where am I wrong?
Thank you.