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 


Rydian's Guide To Basic AOBs And Scripts
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
hiro928
Newbie cheater
Reputation: 0

Joined: 15 Aug 2016
Posts: 16

PostPosted: Mon Aug 15, 2016 6:53 pm    Post subject: Alan Wake's American Nightmare Reply with quote

hey all! first off, loved this post, i feel like i've learned a lot here, i found you out through youtubes "Cheat the Game", anyway onto my question

in Alan Wakes American Nightmare, i have a script that gives me infinite clip, which is awesome, but i also want infinite ammo as well, i find the value no problem, but when i go to modify the opcode it looks like this

mov [esi+eax*4+20],ecx
mov ecx,esi

i've tried adding "nop"s, i've tried adding my own math before and after, and no matter what, as soon as i shoot with the script active, it crashes, now if i go into the memory viewer and click "replace with code that does nothing" then it works just fine, but i want to put this into script form, any help would be appreciative, thanks!!
Back to top
View user's profile Send private message
Sigan.Q
Cheater
Reputation: 0

Joined: 24 Feb 2013
Posts: 35

PostPosted: Tue Feb 21, 2017 2:41 pm    Post subject: Reply with quote

I'm having a problem with the very last part of this post. I'm playing a game and I'm trying to write to a fstp, just like you recommended. The code I've got is this:

Code:

label(code)
label(return)

globalalloc(_DuraBase,4)

newmem:

code:
  mov [_DuraBase],edi
  fstp dword ptr [edi+18]
  mov [edi+18],(Int)100
  mov eax,[edi+08]
  jmp return


The value it returns to my float is this: 1.401298464E-43

I don't really care what value it is, on one hand, but 1.4 is just a bit away from the item's durability wearing out completely. My questions are, why is this happening, and how can I fix it?

Edit: Nevermind. I figured out the problem.
Code:

mov [edi+18],(Float)100
Back to top
View user's profile Send private message
deepsingh852963
How do I cheat?
Reputation: 0

Joined: 13 Jun 2017
Posts: 1

PostPosted: Tue Jun 13, 2017 1:48 am    Post subject: Reply with quote

thanks
_________________
Deep Singh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
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