[DiscordArchive] Why would anpc gets stuck in evade ?
[DiscordArchive] Why would anpc gets stuck in evade ?
Archived author: Crane • Posted: 2025-09-14T10:44:22.819000+00:00
Original source
TC simulates this with this function
```c++
void EnterEvadeMode(EvadeReason why = EVADE_REASON_OTHER) override
{
if (!me->HasAura(SPELL_BUTTON1_SELF_BUFF))
EscortAI::EnterEvadeMode(why);
else
me->CombatStop();
}```
Archived author: Crane • Posted: 2025-09-14T10:46:17.894000+00:00
Original source
I'm not that familiar with the source code of TC yet, I'm just using what's available and that was the most useful solution so far, because setting flags when starting the escort didn't help
Archived author: Crane • Posted: 2025-09-14T11:18:50.712000+00:00
Original source
Maybe someone else has an idea to solve the evade problem
Archived author: Boka • Posted: 2025-09-14T11:29:20.784000+00:00
Original source
1) use the debugger?
2) find similar script/conditions
3) find the script and look through for hardcoded points
Archived author: jackpoz • Posted: 2025-09-14T11:36:39.036000+00:00
Original source
Yeah debugging would be the next step
Archived author: Crane • Posted: 2025-09-14T11:45:46.105000+00:00
Original source
Now I've had, let's say, partial success, but you can see that he transforms again each time. He doesn't leave his form, but is instantly reset, which you can see from the effect.
https://www.youtube.com/watch?v=vX7afQZYDOg
Archived author: Crane • Posted: 2025-09-14T11:48:00.432000+00:00
Original source
Unfortunately, debugging isn't my strong point. It's enough that a crash log is created when it crashes and that a text file is created. To be honest, I have no idea about the rest.
Archived author: Boka • Posted: 2025-09-14T11:50:42.887000+00:00
Original source
run with breakpoints and follow the code step by step, change breakpoints, set it in more convenient place, the real problems would be only with async methods and inheritances (interfaces, scripts as itself)
use conditions for breakpoints
pin global/local variables to make it easier
Archived author: Crane • Posted: 2025-09-14T11:50:48.920000+00:00
Original source
The only problem is that evade in this quest everything else works as it should
Archived author: jackpoz • Posted: 2025-09-14T11:58:29.346000+00:00
Original source
https://riptutorial.com/visual-studio/le...ual-studio articles like this can help you get started
[Embed: Visual Studio - Debugging in Visual Studio | visual-studio Tutorial]
visual-studio documentation: Debugging in Visual Studio
https://riptutorial.com/visual-studio/le...ual-studio