When I move after I injected this dll into wow, wow crashes with a memory error, the instruction at the offset XXXXXXXX referenced memory at XXXXXXXXX, the memory could not be read.
Edit:
I tried injecting the dll while ollydbg was attached to wow, olly told me that my dll is outside of the code segment of the PE or something like that, I'm quite sure my that's causing the crash, yet I've no Idea how to fix that issue :/.
I double checked every thing, yet I can't find a mistake in my code, maybe I'm doing something wrong when injecting my dll.
I use a createremotethread injection with a LoadLibaryA call, I tried my dll injection on both Linux and Windows, with Linux the detour doesn't work at all, it doesn't write the function call to wows memory, with Windows I'll get an error because the function I want to call is outside of wows code segment :/
wtf am I doing wrong >.<
Inside your nofalldmg function, put in some code that helps you check the size of call. Make sure call is only 5 bytes long, not 9. If that's not the problem, I have no idea.
Shynd, you're right, the call struct is bigger than 5 bytes, I tried to fix that problem by writing the call instruction without the call struct like this
this will give me a memory write error instead of a memory read error, I think the problem is the size of DWORD, it should be 4byte but it isn't, maybe I need to convert the DWORD into a BYTE Array, yet I've no Idea how to do this.
I don't know, I just typed that out without testing, but it seems to me that your PtrToULong function returns an 8-byte LONG-type variable, or something. I'm not sure.
DWORD = unsigned long
and it should be only 4bytes long, yet your code causes another memory error, the memory referenced at 0x0000001 could not be read or something like that.
Maybe I'll just change the Nofalldmgdetour a bit and write the call instruction to another place
Yeah sry forgot the credits
btw I think I've done a big mistake in my code, the call offset is just wrong, I need to dynamical calculate it...
I'll try if it works later and maybe upload a dll with a working nofalldmg hook ^^
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
Posts: 6
Join Date: Jun 2008
07-01-2008
This is probably a REALLY noob question, but is it possible to get the address for fall damage using a memory editor for say, Age of Conan? Sorry for asking here but theres nothing really about fall damage on the Conan forums. The reason I ask here is because i thought maybe it might be similar to this game, plus you are all very knowledgable on these kinds of things, so i thought i might as well ask .