Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some Question About Syringe & Ares
#4
And i need some small help again)

I start work from tutorial in "Contributing to Ares". Start new project in MSVC 2008, select DLL(without MFC), and wrote some code:

#include <YRPP.h>
#include <MacroHelpers.h>

DEFINE_HOOK(71A92A, _Temporal_AvoidFriendlies, 5)
{
GET(TemporalClass *, Temp, ESI);
HouseClass *hv = Temp->Target->Owner;
HouseClass *ho = Temp->Owner->Owner;
return ho->IsAlliedWith(hv) ? 0x71A97D : 0;
}

Then i build all this(add StaticInits.cpp to project and configure paths), copy dll to ra2 folder, create inj file:

71A92A = _Temporal_AvoidFriendlies, 5

Then i start synerge but again nothing happen =(.
LOG:

[17:41:19] Syringe 0.6.0.0
[17:41:19] ===============

[17:41:19] WinMain: lpCmdLine = ""D:\Games\RA2\gamemd.exe""
[17:41:19] WinMain: Trying to load executable file "D:\Games\RA2\gamemd.exe"...

[17:41:19] SyringeDebugger::RetrieveInfo: Retrieving info from the executable file...
[17:41:19] SyringeDebugger::LoadControlFile: Control file successfully loaded.
[17:41:19] exe = D:\Games\RA2\gamemd.exe
[17:41:19] pImLoadLibrary = 0x007E1220
[17:41:19] pImGetProcAddress = 0x007E1250
[17:41:19] pcEntryPoint = 0x007CD80F

[17:41:19] SyringeDebugger::LoadControlFile: Opening D:\Games\RA2\gamemd.exe to determine imports.
[17:41:19] WinMain: SyringeDebugger::FindDLLs();

[17:41:19] SyringeDebugger::FindDLLs: Recognized DLL: "exmachine.dll"
[17:41:19] SyringeDebugger::FindDLLs: Done (1 hooks added).

[17:41:19] WinMain: SyringeDebugger::Run("");

[17:41:19] SyringeDebugger::Run: Running process to debug. cmd = "D:\Games\RA2\gamemd.exe "
[17:41:19] SyringeDebugger::Run: Allocating 0x1000 bytes ...
[17:41:19] SyringeDebugger::Run: pAlloc = 0x00140000
[17:41:19] SyringeDebugger::Run: Filling allocated space with zero...
[17:41:19] SyringeDebugger::Run: Setting addresses...
[17:41:19] SyringeDebugger::Run: Writing DLL loader & caller code...
[17:41:19] SyringeDebugger::Run: pcLoadLibrary = 0x00140001
[17:41:19] SyringeDebugger::Run: Entering debug loop...
[17:41:20] SyringeDebugger::HandleException: Loaded ProcAddress: exmachine.dll - _Temporal_AvoidFriendlies - 0x01151020
[17:41:20] SyringeDebugger::HandleException: Finished retrieving proc addresses.
[17:41:20] SyringeDebugger::HandleException: Creating code hooks.
[17:41:20] SyringeDebugger::Run: Done.

[17:41:20] WinMain: SyringeDebugger::Run finished.
[17:41:20] WinMain: Exiting on success.

What i do wrong? -_-
And i have one question, what debbuger you use(fo disassembling)? I ask that because i don't know how start gamemd.exe from olly debugger. I know, i can start RAMD2.exe, but how debug in this case?)
Reply


Messages In This Thread
Some Question About Syringe & Ares - by DrZlo - 04.05.2009, 14:52:12
RE: Some Question About Syringe & Ares - by DrZlo - 04.05.2009, 16:11:55
RE: Some Question About Syringe & Ares - by pd - 04.05.2009, 19:24:47
RE: Some Question About Syringe & Ares - by DrZlo - 05.05.2009, 08:53:59
RE: Some Question About Syringe & Ares - by pd - 05.05.2009, 17:43:16
RE: Some Question About Syringe & Ares - by DrZlo - 05.05.2009, 18:16:08
RE: Some Question About Syringe & Ares - by DrZlo - 06.05.2009, 07:35:05
RE: Some Question About Syringe & Ares - by pd - 06.05.2009, 14:45:11
RE: Some Question About Syringe & Ares - by DrZlo - 06.05.2009, 18:19:39
RE: Some Question About Syringe & Ares - by pd - 01.06.2009, 10:55:39
RE: Some Question About Syringe & Ares - by Guest - 03.06.2009, 11:48:14
RE: Some Question About Syringe & Ares - by Guest - 04.06.2009, 14:12:42
RE: Some Question About Syringe & Ares - by pd - 08.06.2009, 09:42:46
RE: Some Question About Syringe & Ares - by DrZlo - 10.06.2009, 06:02:17
RE: Some Question About Syringe & Ares - by Guest - 10.09.2009, 22:15:21
RE: Some Question About Syringe & Ares - by Guest - 07.10.2009, 18:38:26
RE: Some Question About Syringe & Ares - by Guest - 09.10.2009, 11:15:49
RE: Some Question About Syringe & Ares - by Guest - 10.10.2009, 12:25:09



Users browsing this thread: 1 Guest(s)