Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Do you know the offset?

[DiscordArchive] Do you know the offset?

[DiscordArchive] Do you know the offset?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
03-21-2023, 07:06 PM
#1
Archived author: robinsch • Posted: 2023-03-21T19:06:17.945000+00:00
Original source

Do you know the offset?
rektbyfaith
03-21-2023, 07:06 PM #1

Archived author: robinsch • Posted: 2023-03-21T19:06:17.945000+00:00
Original source

Do you know the offset?

rektbyfaith
Administrator
0
03-21-2023, 07:07 PM
#2
Archived author: Thiaz • Posted: 2023-03-21T19:07:11.157000+00:00
Original source

xD

```C++
#include "ClientDetours.h"
#include "Logger.h"
#include "FSRoot.h"

#include "windows.h"
#include "detours.h"

#include <vector>

std::vector<ClientDetours:Big Grinetour> & detours()
{
static std::vector<ClientDetours:Big Grinetour> _detours;
return _detours;
}

int ClientDetours::Add(
std:Confusedtring const& name
, void* clientFun
, void* yourFun
, std:Confusedtring const& filename
, size_t lineno
) {
detours().push_back({
name
, clientFun
, yourFun
, filename
, lineno
});
return 0;
}

void ClientDetours::Apply()
{
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
for (Detour const& detour : detours())
{
LOG_INFO
<< "Detour: "
<< detour.m_name
<< "@"
<< detour.m_oldFn
<< " -> "
<< relProjectPath(detour.m_filename)
<< ":"
<< detour.m_lineno
;
DetourAttach((PVOID*)detour.m_oldFn, detour.m_newFn);
}
detours().clear();
DetourTransactionCommit();
}
```
rektbyfaith
03-21-2023, 07:07 PM #2

Archived author: Thiaz • Posted: 2023-03-21T19:07:11.157000+00:00
Original source

xD

```C++
#include "ClientDetours.h"
#include "Logger.h"
#include "FSRoot.h"

#include "windows.h"
#include "detours.h"

#include <vector>

std::vector<ClientDetours:Big Grinetour> & detours()
{
static std::vector<ClientDetours:Big Grinetour> _detours;
return _detours;
}

int ClientDetours::Add(
std:Confusedtring const& name
, void* clientFun
, void* yourFun
, std:Confusedtring const& filename
, size_t lineno
) {
detours().push_back({
name
, clientFun
, yourFun
, filename
, lineno
});
return 0;
}

void ClientDetours::Apply()
{
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
for (Detour const& detour : detours())
{
LOG_INFO
<< "Detour: "
<< detour.m_name
<< "@"
<< detour.m_oldFn
<< " -> "
<< relProjectPath(detour.m_filename)
<< ":"
<< detour.m_lineno
;
DetourAttach((PVOID*)detour.m_oldFn, detour.m_newFn);
}
detours().clear();
DetourTransactionCommit();
}
```

rektbyfaith
Administrator
0
03-21-2023, 07:07 PM
#3
Archived author: robinsch • Posted: 2023-03-21T19:07:44.395000+00:00
Original source

And how does your newFn looks?
rektbyfaith
03-21-2023, 07:07 PM #3

Archived author: robinsch • Posted: 2023-03-21T19:07:44.395000+00:00
Original source

And how does your newFn looks?

rektbyfaith
Administrator
0
03-21-2023, 07:09 PM
#4
Archived author: tester • Posted: 2023-03-21T19:09:14.876000+00:00
Original source

for reference, tswow detours should be as follows
```
CLIENT_DETOUR(GameObjectInitialize, 0x007140A0, __cdecl, int, ()) {
LOG_DEBUG << "GameObject Initialization";
return GameObjectInitialize();
}
```
rektbyfaith
03-21-2023, 07:09 PM #4

Archived author: tester • Posted: 2023-03-21T19:09:14.876000+00:00
Original source

for reference, tswow detours should be as follows
```
CLIENT_DETOUR(GameObjectInitialize, 0x007140A0, __cdecl, int, ()) {
LOG_DEBUG << "GameObject Initialization";
return GameObjectInitialize();
}
```

rektbyfaith
Administrator
0
03-21-2023, 07:09 PM
#5
Archived author: Thiaz • Posted: 2023-03-21T19:09:54.171000+00:00
Original source

CLIENT_DETOUR(HandleSlotModel, 0x004F2640, __thiscall, int, (int* a1, int a2, DWORD* a3, uint32_t a4))

no problem on this part
rektbyfaith
03-21-2023, 07:09 PM #5

Archived author: Thiaz • Posted: 2023-03-21T19:09:54.171000+00:00
Original source

CLIENT_DETOUR(HandleSlotModel, 0x004F2640, __thiscall, int, (int* a1, int a2, DWORD* a3, uint32_t a4))

no problem on this part

rektbyfaith
Administrator
0
03-21-2023, 07:10 PM
#6
Archived author: robinsch • Posted: 2023-03-21T19:10:32.079000+00:00
Original source

???
rektbyfaith
03-21-2023, 07:10 PM #6

Archived author: robinsch • Posted: 2023-03-21T19:10:32.079000+00:00
Original source

???

rektbyfaith
Administrator
0
03-21-2023, 07:10 PM
#7
Archived author: robinsch • Posted: 2023-03-21T19:10:36.780000+00:00
Original source

Where is the function.
rektbyfaith
03-21-2023, 07:10 PM #7

Archived author: robinsch • Posted: 2023-03-21T19:10:36.780000+00:00
Original source

Where is the function.

rektbyfaith
Administrator
0
03-21-2023, 07:10 PM
#8
Archived author: Thiaz • Posted: 2023-03-21T19:10:47.616000+00:00
Original source

Ah you want the whole func
rektbyfaith
03-21-2023, 07:10 PM #8

Archived author: Thiaz • Posted: 2023-03-21T19:10:47.616000+00:00
Original source

Ah you want the whole func

rektbyfaith
Administrator
0
03-21-2023, 07:10 PM
#9
Archived author: Thiaz • Posted: 2023-03-21T19:10:58.483000+00:00
Original source

was more answering to tester
rektbyfaith
03-21-2023, 07:10 PM #9

Archived author: Thiaz • Posted: 2023-03-21T19:10:58.483000+00:00
Original source

was more answering to tester

rektbyfaith
Administrator
0
03-21-2023, 07:11 PM
#10
Archived author: Thiaz • Posted: 2023-03-21T19:11:01.976000+00:00
Original source

dming u
rektbyfaith
03-21-2023, 07:11 PM #10

Archived author: Thiaz • Posted: 2023-03-21T19:11:01.976000+00:00
Original source

dming u

Pages (2): 1 2 Next
Recently Browsing
 
Recently Browsing