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 


Injection Crashes Game (RoR2)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
NovaTheFox
How do I cheat?
Reputation: 0

Joined: 19 Sep 2019
Posts: 1

PostPosted: Thu Sep 19, 2019 11:16 pm    Post subject: Injection Crashes Game (RoR2) Reply with quote

I'm trying to do a basic godmode cheat in Risk of Rain 2 that only applies to my character. I believe my end goal for this is fairly out of my league because I'm pretty new to this.

I found the operation that modifies health, and I also found an offset I can use to make it so the cheat only applies to me, but I don't really know how to go about writing the injection without crashing my game as soon as there's a change in health anywhere. I also don't really understand how xmm registries work of if that has anything to do with this. I honestly don't really know what I'm doing exactly so if anyone would be willing to just kinda guide me in the right direction.
Code:
assert(address,bytes)
alloc(newmem,$1000,29F82DDF462)

label(code)
label(return)

newmem:
  cmp [rdi+7c],0
  je return

code:
  movss [rdi],xmm5
  mov rsi,[rbp-20]
  jmp return

address:
  jmp newmem
  nop 3
return:

Another problem I have is that the address for this operation changes every time I restart, which doesn't make any sense to me because my other code injection I wrote for a gold hack works fine.

I've gone through several tutorials on stuff like this and I've read a bit into assembly, but maybe I just haven't found specifically what I need to fix this.

_________________
<3
Back to top
View user's profile Send private message
mibiz1
How do I cheat?
Reputation: 0

Joined: 20 Feb 2008
Posts: 9

PostPosted: Fri Nov 15, 2019 3:44 pm    Post subject: Reply with quote

Are you trying to learn assembly and how Cheat Engine works to hack games? If not, Fearless has table for this game. If you are, I suggest try downloading the table from Fearless and review the table's scripts and see if any of that make sense. If any section or line of code doesn't, google it. For example:

Code:
movss xmm0,[r14+58]


What is movss? What is xmm0, xmm1, etc.? From looking at the table's main script, the game is based on mono. I don't recommend starting to learn with this type of game since you should learn the basics first before trying to understand how to get this:
Code:
PostProcessing:ScreenDamage:OnRenderImage+cb,F3 41 0F 10 46 58


These codes are from that table's script to get the pointer to the player. With that, you could pretty much do anything to certain extent: god mode, unlimited coins/gold, no cool down on spells/abilities, etc.

EDIT: PS. You should be using latest version of Cheat Engine. As of this posting, version 7. I strongly suggest that you go through all the 3 tutorials via Help and make sure you understand all of them before attempting a mono based game.
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