Could anybody share some knowledge about how to use lordPE with pt? I'm trying to use it but I don't understand nothing when I open it...
Printable View
Could anybody share some knowledge about how to use lordPE with pt? I'm trying to use it but I don't understand nothing when I open it...
The best guide I've seen is contained within strangefays' guide to adding more levels to your client and server... but LordPE isn't much use on its own, you have to use it in conjunction with other tools, what it does is modify the header of a portable executable file (PE file, EXEs, DLLs, OCXs, SCRs, CPLs etc etc) and by doing that, it "corrupts" the file... however, if use a hex editor or similar binary file editor in such a way as it "corrupts" the PE, LordPE can correct the header to make it right again.
I describe it as being like a partition editor, because with a raw disk editor, you can place files beyond the end of a partition, and then you can't access them, and will get all sorts of errors on any file access... but if you change the partition table to include those files, then it's all fixed. :) Alternatively, if you change the partition table without editing the raw disk then the same sort of errors will crop up, for the exact opposite reason.
Thx for the explanation, I read that you can give functions with LordPE, and then I could try to add the holding function to the item, so the char won't hold it wrong...
Hmm... interesting hack. Dirty, but it might work.
If you add your function before the official one, the official one will override it. And if you add your function after you will have to re-implement all of the original functionality as well, or pass through non-handled items.
In the process, you may well learn more what to look for in the original function. For example, some memory address must hold the current idle animation file for the PC. (Player, not machine:wink:) any routine that updates that has to be a good candidate for inspection, especially ones called when changing weapon. :wink:
Additionally, if there is a free area of memory already in your PE, then you can use that. I often take out shed loads of code that is only used for GameGuard, NProtect and XTrap. For some reason all that code seems to be in most of the clients regardless of whether the original used all, some or only 1 of those protections. When they are clear, they leave unused holes in the code that you can add new functions. But anything with a GFantisy or KPTTrans section can have routines shoved in there too, as they are rarely filled to brimming.
LordPE is most commonly used to:-
a) Add a new section like GFantsy or KPTTrans
b) Add a dll dependency so you can add functions from a new DLL, like HanDes. (Note that E-XPT and uPT remove large parts of code from the game.exe, and place them in their own .dll)
You can also late / delay load a dll and access it's functions... which is what happens to XTrap, GameGuard, NProtect and on the server "sql.dll" and "clan.dll". You don't need to use LordPE to do that. ^_^
Oh, and there is a third option known as DLL Injection. Some of you may have heard of a "cheating" tool called Apocalypse for PT which we will not distribute or encourage here, but is often a challenge for server devs. It is possible to stop, but constantly developing and a pain in the neck. DLL injection is another good way to develop additional functionality into a program however.
There are official functions to achieve it in the Windows OS, and not all uses of it are nefarious. It's great for quick OS security patches, Anti-Virus, virtualisation, UI Themeing, etc, etc.