Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Why would anpc gets stuck in evade ?

[DiscordArchive] Why would anpc gets stuck in evade ?

[DiscordArchive] Why would anpc gets stuck in evade ?

Pages (6): Previous 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
09-14-2025, 10:44 AM
#21
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();
}```
rektbyfaith
09-14-2025, 10:44 AM #21

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();
}```

rektbyfaith
Administrator
0
09-14-2025, 10:46 AM
#22
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
rektbyfaith
09-14-2025, 10:46 AM #22

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

rektbyfaith
Administrator
0
09-14-2025, 11:18 AM
#23
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
rektbyfaith
09-14-2025, 11:18 AM #23

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

rektbyfaith
Administrator
0
09-14-2025, 11:29 AM
#24
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
rektbyfaith
09-14-2025, 11:29 AM #24

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

rektbyfaith
Administrator
0
09-14-2025, 11:36 AM
#25
Archived author: jackpoz • Posted: 2025-09-14T11:36:39.036000+00:00
Original source

Yeah debugging would be the next step
rektbyfaith
09-14-2025, 11:36 AM #25

Archived author: jackpoz • Posted: 2025-09-14T11:36:39.036000+00:00
Original source

Yeah debugging would be the next step

rektbyfaith
Administrator
0
09-14-2025, 11:45 AM
#26
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
rektbyfaith
09-14-2025, 11:45 AM #26

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

rektbyfaith
Administrator
0
09-14-2025, 11:48 AM
#27
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.
rektbyfaith
09-14-2025, 11:48 AM #27

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.

rektbyfaith
Administrator
0
09-14-2025, 11:50 AM
#28
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
rektbyfaith
09-14-2025, 11:50 AM #28

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

rektbyfaith
Administrator
0
09-14-2025, 11:50 AM
#29
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
rektbyfaith
09-14-2025, 11:50 AM #29

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

rektbyfaith
Administrator
0
09-14-2025, 11:58 AM
#30
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
rektbyfaith
09-14-2025, 11:58 AM #30

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

Pages (6): Previous 1 2 3 4 5 6 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)