Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Couple of questions
#7
Don't give up just yet. Its pretty easy in fact. Reverse engineering isn't as hard as people think. All what you will be doing is open your exe with olly dbg (make sure all the RES edits are applied before doing that), "warp" to an address, change the values to suit your needs and save your exe:
[Image: UDd8Tgr.png]

The address for louis's armor is "0042E6EC". So just goto that address, and change that id to what you want. Just put in mind that the number system Olly uses in hexadecimal (of base 16). Use this to convert in between: http://www.binaryhexconverter.com/decima...-converter

Now you probably don't want to tweak the existing one, but rather add an armor to a new id. To do this, you will need to detour a bit from that code. To do so, you will be using the "JMP" instruction to jump to somewhere down where you have all the empty space you like.
You will be doing something like this:
Originally,
Code:
0 MoveIdToECX();
1 CheckIfECXIs6();
2 GoToArmorStuffIfTrue();
3 SetThePowerOfTheArmorTo1();
4 DoOtherStuff();

Now,
Code:
0 MoveIdToECX();
1 JMP 50;
2 GoToArmorStuffIfTrue();
3 SetThePowerOfTheArmorTo1();
4 DoOtherStuff();

50 CheckIfECXIs6();
51 JNZ 2; //Jump if not equal to 0. 0 is the int for for false, so in other words; Jump if true 2
52 CheckIfECXIs9();
53 JNZ 2; //Jump if true 2
54 CheckIfECXIs2();
55 JNZ 2; //Jump if true 2
56 CheckIfECXIsA();
57 JNZ 2; //Jump if true 2
58 JMP 2; //Jump back to the original track

So the instruction you will be needing are:
JNZ -Jump if True
JMP -Jump Immediately

Also, you may as well use CALL and RTN. Just CALL into the new address's spot, and have a "RTN" at the end of your new code.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by: Dragon5 , bashscrazy


Messages In This Thread
Couple of questions - by bashscrazy - 09-02-2013, 02:35 AM
RE: Couple of questions - by Redbeard - 09-02-2013, 07:23 AM
RE: Couple of questions - by AmadisLFE - 09-02-2013, 08:33 PM
RE: Couple of questions - by bashscrazy - 09-03-2013, 01:12 AM
RE: Couple of questions - by Marko - 09-03-2013, 04:29 AM
RE: Couple of questions - by bashscrazy - 09-03-2013, 04:51 PM
RE: Couple of questions - by A-Man - 09-06-2013, 05:10 AM
RE: Couple of questions - by Boop - 09-06-2013, 04:55 PM
RE: Couple of questions - by A-Man - 09-06-2013, 05:56 PM
RE: Couple of questions - by bashscrazy - 09-06-2013, 11:07 PM
RE: Couple of questions - by DBsquad - 06-14-2018, 12:27 PM
RE: Couple of questions - by Silverthorn - 06-16-2018, 08:11 AM



Users browsing this thread: 1 Guest(s)