OK, I solved it alone
OK, I solved it alone
Nice Work, DarthTon! it's very resourceful! I'll spend time to look into your work!
Can anyone use D3::ACD::SELL function without crash? I use dll injection and offset
FUNC_SELL_ITEM 0x00A8BF20 (1.0.5)
I've updated my SNV repo for latest 1.0.7 patch. Local attachment is still old, because I'm too lazy to update it too
I can assume that you have used wrong offset. Try the new one.BBOYWEI
Can anyone use D3::ACD::SELL function without crash? I use dll injection and offset
FUNC_SELL_ITEM 0x00A8BF20 (1.0.5)
Maybe you want to include this:
in tObData:
- offset of skills: 0xB4 (0xAC was in 1.0.6)
- offset of passives: 0xA08 + 0, 0xA08 + 4, 0xA08 + 8 (3 powerID in a row)
- offset of character's name: 0x7450
in tObManStorage:
- offset of current ticks of the game (60 ticks are 1 second): 0x94
(cooldowns and other timers are based on this number)
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
Hey,
Nice work dude, any 1.0.7 release ? THX
dear Dathton, in case you need this:
offsets related to tObData (so CObDataContainer + 0x58 + ...)
public readonly int player_ofs__actor_id = 0x8;
public readonly int player_ofs__skills = 0xB4;
public readonly int player_ofs__passives = 0xA08;
public readonly int player_ofs__seed = 0x7448;
public readonly int player_ofs__name = 0x7450;
public readonly int player_ofs__class = 0x78FC;
public readonly int player_ofs__area = 0x78F8;
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
Thx. I've update my SVN repo with these changes.
BTW you cant make some useful commits to the repo by yourself if you want. It's open even for anonymous commits.
Well, I don't like editing other's code, but I post here if I find something useful.
You can look into this if you want: http://www.ownedcore.com/forums/diab...formation.html (Player information)
We (well, mostly enigma32) found a new structure and a static path for it.
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
Remove or fix the post-build event in DarkD3Detour project. If you choose to remove it, make sure you have correct path to dll in function CMemDll::Inject(). Because now it simply loads dll from working directory.
I will try that. Thank you DarthTon
I've attempted to call this function from a stand alone application, but with no luck. Here is my code:
I'm getting this link error when I try to build it:Code:#include "DarkD3/DarkD3Detour/Handler.h" #include <iostream> #include <Windows.h> using namespace std; #define D3D_DEBUG_INFO #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "DarkD3Lib.lib") int main(void) { CD3DPresentDetour test; DWORD num = test.GetD3DPresent(); wcout << "D3 Address: " << (DWORD)num; return 0; }
I believe I've included the correct libraries but I'm stumped. Any help would be greatly appriciated.Code:1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall CD3DPresentDetour::~CD3DPresentDetour(void)" (??1CD3DPresentDetour@@QAE@XZ) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "public: unsigned long __thiscall CD3DPresentDetour::GetD3DPresent(void)" (?GetD3DPresent@CD3DPresentDetour@@QAEKXZ) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall CD3DPresentDetour::CD3DPresentDetour(void)" (??0CD3DPresentDetour@@QAE@XZ) referenced in function _main
1) CD3DPresentDetour is a singleton. So either call CD3DPresentDetour::Instance().GetD3DPresent() or convert it to a normal class.
2) I suppose you forgot to add a corresponding .cpp file to your project (Handler.cpp) that contains function definitions.