Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Infinite ammo (KF2)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
bundfalke
Newbie cheater
Reputation: 0

Joined: 06 Aug 2014
Posts: 14
Location: Antarctica

PostPosted: Fri Apr 08, 2016 6:03 pm    Post subject: Infinite ammo (KF2) Reply with quote

My attempt at unlimited clip ammo for Kf2.
It has worked before and the new update broke it.
I spend 3 hours debugging and another 2 hours in reclass, and im about to hang myself.

Any idea whats wrong, spoonfeed is appreciated.


[Enable]

//--------------------------------------------------//
//Infinite Clip Ammo 1
aobscanmodule(ica_aob1,KFGame.exe,FE 0B 48 8B 5C 24 30)
registersymbol(ica_aob1)

ica_aob1:
db 90 90
//--------------------------------------------------//
alloc(ica_2,32,KFGame.exe) //Infinite Clip Ammo (2)
aobscanmodule(ica_aob2,KFGame.exe,28 03 0F B6 03)
registersymbol(ica_aob2)
label(returnhere_ica_2)

label(ica_UP)

label(ica_DOWN)

//--------------------------------------------------//
ica_2:
cmp al,1
je ica_DOWN
cmp al,7
je ica_DOWN
jmp ica_UP
//--------------------------------------------------//
ica_UP:
sub [rbx],al
movzx eax,byte ptr [rbx]
jmp returnhere_ica_2
//--------------------------------------------------//
ica_DOWN:
movzx eax,byte ptr [rbx]
jmp returnhere_ica_2
//--------------------------------------------------//

ica_aob2:
jmp ica_2
returnhere_ica_2:

[Disable]

ica_aob1:
db FE 0B
unregistersymbol(ica_aob1)

ica_aob2:
db 28 03 0F B6 03
unregistersymbol(ica_aob2)
dealloc(ica_2)
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Sat Apr 09, 2016 7:09 am    Post subject: Re: Infinite ammo (KF2) Reply with quote

bundfalke wrote:
My attempt at unlimited clip ammo for Kf2.
It has worked before and the new update broke it.
I spend 3 hours debugging and another 2 hours in reclass, and im about to hang myself.

Any idea whats wrong, spoonfeed is appreciated.

What do you meant by not working?
Is it not activating?Then, the aob is invalid
If it's activated try to make sure that the aob is unique by manually search aob using the scan.
If the scan get more than a result, make that aob longer or just make sure the first result is the right one.

Make sure that instruction accesses the right address and make sure the compare is using right value.

_________________
...
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4696

PostPosted: Sat Apr 09, 2016 9:45 am    Post subject: Reply with quote

Code:
alloc(ica_2,32,KFGame.exe)
32 bytes isn't enough for all the instructions you're writing into that memory region; however, I doubt that's causing any errors since CE should allocate a full page of memory for ica_2.

I'm guessing you can't find that AoB signature anymore. Try removing the bytes of the operands in the instructions and see if you can find it. If you still can't, then start removing the opcodes until you do find a memory region that looks somewhat similar to the one you had before.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites