mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-04 10:12:26 +00:00
Debug message adjustments
This commit is contained in:
commit
03be6b2b6b
@ -8,7 +8,9 @@ script:
|
|||||||
- make
|
- make
|
||||||
- ./bin/tests
|
- ./bin/tests
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only:
|
||||||
|
- master
|
||||||
|
- stable
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
irc:
|
irc:
|
||||||
|
|||||||
@ -1364,7 +1364,8 @@ bool Database::CheckDatabaseConversions() {
|
|||||||
}
|
}
|
||||||
/* Continue of PP Size does not match (Usually a created character never logged in) */
|
/* Continue of PP Size does not match (Usually a created character never logged in) */
|
||||||
else {
|
else {
|
||||||
printf("\nCharacter %s(%u) was missing profile data, character not converted.", row2[2] ? row2[2] : "Unknown", character_id);
|
// printf("%s ID: %i profile mismatch, not converting. PP %u - Profile Length %u \n", row2[2] ? row2[2] : "Unknown", character_id, sizeof(PlayerProfile_Struct), lengths);
|
||||||
|
std::cout << (row2[2] ? row2[2] : "Unknown") << " ID: " << character_id << " size mismatch. Expected Size: " << sizeof(PlayerProfile_Struct) << " Seen: " << lengths << std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1245,7 +1245,7 @@ bool ZoneDatabase::SaveCharacterTribute(uint32 character_id, PlayerProfile_Struc
|
|||||||
std::string query = StringFormat("DELETE FROM `character_tribute` WHERE `id` = %u", character_id); QueryDatabase(query);
|
std::string query = StringFormat("DELETE FROM `character_tribute` WHERE `id` = %u", character_id); QueryDatabase(query);
|
||||||
/* Save Tributes only if we have values... */
|
/* Save Tributes only if we have values... */
|
||||||
for (int i = 0; i < EmuConstants::TRIBUTE_SIZE; i++){
|
for (int i = 0; i < EmuConstants::TRIBUTE_SIZE; i++){
|
||||||
if (pp->tributes[i].tribute > 0 && pp->tributes[i].tribute != 4294967295){
|
if (pp->tributes[i].tribute > 0 && pp->tributes[i].tribute != 0xffffffffu){
|
||||||
std::string query = StringFormat("REPLACE INTO `character_tribute` (id, tier, tribute) VALUES (%u, %u, %u)", character_id, pp->tributes[i].tier, pp->tributes[i].tribute); QueryDatabase(query);
|
std::string query = StringFormat("REPLACE INTO `character_tribute` (id, tier, tribute) VALUES (%u, %u, %u)", character_id, pp->tributes[i].tier, pp->tributes[i].tribute); QueryDatabase(query);
|
||||||
LogFile->write(EQEMuLog::Status, "ZoneDatabase::SaveCharacterTribute for character ID: %i, tier:%u tribute:%u done", character_id, pp->tributes[i].tier, pp->tributes[i].tribute);
|
LogFile->write(EQEMuLog::Status, "ZoneDatabase::SaveCharacterTribute for character ID: %i, tier:%u tribute:%u done", character_id, pp->tributes[i].tier, pp->tributes[i].tribute);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user