if (this.m_client.getClientVersion() < 780) {
return [254, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 33, 22, 23, 24, 34, 25, 26, 27, 28, 32, 29, 30, 35, 31, 36, 37, 38];
} else if (this.m_client.getClientVersion() < 860) {
return [254, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 33, 22, 23, 24, 34, 25, 26, 27, 28, 32, 29, 30, 35, 31, 36, 37, 38];
} else if (this.m_client.getClientVersion() < 900) {
return [254, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 32, 21, 33, 22, 23, 24, 34, 25, 26, 27, 31, 28, 29, 30, 35, 36, 37, 38];
} else if (this.m_client.getClientVersion() < 1000) {
return [254, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 32, 21, 33, 22, 23, 24, 34, 25, 26, 27, 31, 28, 29, 30, 35, 36, 37, 38];
} else {
return [254, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 33, 22, 23, 24, 34, 25, 26, 27, 28, 32, 29, 30, 35, 31, 36, 37, 38];
}
Saves file that is not the same as
Tibia.datloaded.Data in file is the same, but when you compare it byte by byte, it's different.
Load -> Save code should generate the same file, if nothing was modified by DatManager.
There are 2 problems:
saveDatchanges something in "frame group" (idle/walk animation of outfits added in 10.57), it's 1 byte changed per 1 outfitI've made this ordered attributes code:
Current results of loading and saving all versions of Tibia.dat file are (
- 1= files are the same,- 0files are different):