mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add comprehensive fidget animation logging for debugging
Added debug logging to show ALL non-looping, short, stationary animations regardless of metadata, so we can identify hoof stamps and head tosses. Shows: - All potential fidgets (no metadata filter) - Animation ID, duration, frequency, replay timers, flags, next animation - Helps identify which IDs are the shuffles/stamps/tosses on Palomino
This commit is contained in:
parent
2e2ca24f8d
commit
a88c5f9bb8
1 changed files with 17 additions and 0 deletions
|
|
@ -717,6 +717,23 @@ void Renderer::setMounted(uint32_t mountInstId, uint32_t mountDisplayId, float h
|
|||
mountAnims_.fidgets.clear();
|
||||
core::Logger::getInstance().info("Scanning for fidget animations in ", sequences.size(), " sequences");
|
||||
|
||||
// DEBUG: Log ALL non-looping, short, stationary animations to identify stamps/tosses
|
||||
core::Logger::getInstance().info("=== ALL potential fidgets (no metadata filter) ===");
|
||||
for (const auto& seq : sequences) {
|
||||
bool isLoop = (seq.flags & 0x01) == 0;
|
||||
bool isStationary = std::abs(seq.movingSpeed) < 0.05f;
|
||||
bool reasonableDuration = seq.duration >= 400 && seq.duration <= 2500;
|
||||
|
||||
if (!isLoop && reasonableDuration && isStationary) {
|
||||
core::Logger::getInstance().info(" ALL: id=", seq.id,
|
||||
" dur=", seq.duration, "ms",
|
||||
" freq=", seq.frequency,
|
||||
" replay=", seq.replayMin, "-", seq.replayMax,
|
||||
" flags=0x", std::hex, seq.flags, std::dec,
|
||||
" next=", seq.nextAnimation);
|
||||
}
|
||||
}
|
||||
|
||||
// Proper fidget discovery: frequency > 0 + replay timers indicate random idle animations
|
||||
for (const auto& seq : sequences) {
|
||||
bool isLoop = (seq.flags & 0x01) == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue