mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
More logging
This commit is contained in:
parent
d83dc339fc
commit
ed9f155f7c
@ -3303,31 +3303,49 @@ void TaskManager::SendActiveTasksToClient(Client *client, bool task_complete)
|
|||||||
client, task_id, state->active_tasks[task_index], start_time, p_task_data[task_id]->duration,
|
client, task_id, state->active_tasks[task_index], start_time, p_task_data[task_id]->duration,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
Log(Logs::General, Logs::Tasks, "[UPDATE] SendActiveTasksToClient: Task %i, Activities: %i", task_id,
|
LogTasks("[SendActiveTasksToClient] task_id [{}] activity_count [{}]", task_id, GetActivityCount(task_id));
|
||||||
GetActivityCount(task_id));
|
|
||||||
|
|
||||||
int sequence = 0;
|
int sequence = 0;
|
||||||
int fixed_index = p_task_data[task_id]->type == TaskType::Task ? 0 : task_index - 1; // hmmm fuck
|
int fixed_index = p_task_data[task_id]->type == TaskType::Task ? 0 : task_index - 1; // hmmm fuck
|
||||||
for (int activity_id = 0; activity_id < GetActivityCount(task_id); activity_id++) {
|
for (int activity_id = 0; activity_id < GetActivityCount(task_id); activity_id++) {
|
||||||
if (client->GetTaskActivityState(p_task_data[task_id]->type, fixed_index, activity_id) != ActivityHidden) {
|
if (client->GetTaskActivityState(p_task_data[task_id]->type, fixed_index, activity_id) != ActivityHidden) {
|
||||||
Log(Logs::General, Logs::Tasks, "[UPDATE] Long: %i, %i, %i Complete=%i", task_id,
|
LogTasks(
|
||||||
activity_id, fixed_index, task_complete);
|
"[SendActiveTasksToClient] (Long Update) task_id [{}] activity_id [{}] fixed_index [{}] task_complete [{}]",
|
||||||
|
task_id,
|
||||||
|
activity_id,
|
||||||
|
fixed_index,
|
||||||
|
task_complete ? "true" : "false"
|
||||||
|
);
|
||||||
|
|
||||||
if (activity_id == GetActivityCount(task_id) - 1) {
|
if (activity_id == GetActivityCount(task_id) - 1) {
|
||||||
SendTaskActivityLong(
|
SendTaskActivityLong(
|
||||||
client, task_id, activity_id, fixed_index,
|
client,
|
||||||
p_task_data[task_id]->activity_information[activity_id].optional, task_complete
|
task_id,
|
||||||
|
activity_id,
|
||||||
|
fixed_index,
|
||||||
|
p_task_data[task_id]->activity_information[activity_id].optional,
|
||||||
|
task_complete
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SendTaskActivityLong(
|
SendTaskActivityLong(
|
||||||
client, task_id, activity_id, fixed_index,
|
client,
|
||||||
p_task_data[task_id]->activity_information[activity_id].optional, 0
|
task_id,
|
||||||
|
activity_id,
|
||||||
|
fixed_index,
|
||||||
|
p_task_data[task_id]->activity_information[activity_id].optional,
|
||||||
|
0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Log(Logs::General, Logs::Tasks, "[UPDATE] Short: %i, %i, %i", task_id, activity_id,
|
LogTasks(
|
||||||
fixed_index);
|
"[SendActiveTasksToClient] (Short Update) task_id [{}] activity_id [{}] fixed_index [{}]",
|
||||||
|
task_id,
|
||||||
|
activity_id,
|
||||||
|
fixed_index
|
||||||
|
);
|
||||||
|
|
||||||
SendTaskActivityShort(client, task_id, activity_id, fixed_index);
|
SendTaskActivityShort(client, task_id, activity_id, fixed_index);
|
||||||
}
|
}
|
||||||
sequence++;
|
sequence++;
|
||||||
@ -4078,7 +4096,7 @@ int TaskProximityManager::CheckProximities(float x, float y, float z)
|
|||||||
Log(
|
Log(
|
||||||
Logs::General,
|
Logs::General,
|
||||||
Logs::Tasks,
|
Logs::Tasks,
|
||||||
"[PROXIMITY] Checking %8.3f, %8.3f, %8.3f against %8.3f, %8.3f, %8.3f, %8.3f, %8.3f, %8.3f",
|
"[Proximity] Checking %8.3f, %8.3f, %8.3f against %8.3f, %8.3f, %8.3f, %8.3f, %8.3f, %8.3f",
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
z,
|
z,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user