Well I got some problems loading skills in 5165 with my ini system, if anybody could point me in the right direction?
The save works fine, it saves the skills like this (Im using hybrids ini writer/reader).
But loading nah :S
<Example for fastblade and scentsword>
Code:
[Skill]
Count=0
[0]
ID=1046
Level=4
Exp=0
[1]
ID=1045
Level=4
Exp=0
And my loadcode:
Code:
public static void LoadSkill(Game.Character C)
{
MyIni SkillReader = new MyIni(@"C:\OldCODB\Database\Skills\" + C.Name + ".ini");
byte count = SkillReader .ReadByte("Skill", "Count", 0);
for (int i = 0; i < count; i++)
{
ushort id = SkillReader .ReadUInt16(i.ToString(), "ID", 0);
byte level = SkillReader .ReadByte(i.ToString(), "Level", 0);
uint exp = SkillReader .ReadUInt32(i.ToString(), "Exp", 0);
C.RWSkill(new Game.Skill() { ID = id, Lvl = level, Exp = exp });
}
}
Any help?