Trying to read the TEAMS from the SERVER_DB.DAT database.
record.Nation = ReadInt32();
record.NickName1Gender = ReadByte();
record.NickName1 = Helper.ReadUnicodeString(this.reader);
record.NickName2Gender = ReadByte();
record.NickName2 = Helper.ReadUnicodeString(this.reader);
record.YouthAcademy = ReadByte();
record.YouthSetup = ReadByte();
record.ProfessionalStatus = ReadByte();
record.AverageAttendance = ReadInt32();
record.MinimumAttendance = ReadInt32();
record.MaximumAttendance = ReadInt32();
record.TrainingFacilities = ReadByte();
record.ClubFlags = ReadByte();
record.PublicLimitedCompany = this.reader.ReadBoolean(); // ReadByte();
record.Chairmain = ReadInt32();
record.Unused = ReadInt16();
Then I'm missing 2 bytes... ???
After that I'm a kind of lost.
I see BoardMember and Scouts. OK so far.
Then FinanceType.
If = 1, I read some data (lots of skip, sponsors, cashinjection, 10 unkown bytes, cash, sugarDaddy, 13 unknown bytes)
If = 0, I read cash and then 14 unknown bytes
Then MostApps, 4 unknown bytes, MostGoals, MostAppsFirst, MostAppsLast, MostGoalsFirst, MostGoalsLast
Then 17 unknown bytes
Then some weird stuff. Think something with Captain??
Going to stop here... Can somebody help?
|