Cheat Engine
The Official Site of Cheat Engine
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
Cheat Engine Forum Index
->
General Discussions
->
Guests
Post a reply
Username
Subject
Message body
Emoticons
View more Emoticons
Font colour:
Default
Dark Red
Red
Orange
Brown
Yellow
Green
Olive
Cyan
Blue
Dark Blue
Indigo
Violet
White
Black
Font size:
Font size
Tiny
Small
Normal
Large
Huge
Close Tags
[quote="NuclearThroneHelp"]Hey, I've been trying to make a small cheat table for a game called Nuclear Throne, apparently in the game there are multiple different types of damage and i managed to pinpoint all of them and made "infinite hp" scripts for all, only problem is, one of them gives infinite hp to enemies as well. I did the usual struct dissection and found a 4-bit value consistently same among players and different on enemies (players all 5, enemies all 0) my problem is the syntax of the code to use to distinguish the player from the enemy and give infinite hp to player only. i did experiment for a long time, hopefully someone experienced can help me properly use cmp function This is the original code : label(code) label(return) newmem: code: movsd [ebx],xmm1 jmp nuclearthrone.exe+1C2CD4 jmp return HP4: jmp newmem nop return: registersymbol(HP4) [ebx] is address of HP, i found address of differentiating type is [ebx+1C], where 5 is player and 0 is enemy. can someone help me code the syntax. also, what i normally do is: label(code) label(return) newmem: code: nop nop nop nop jmp nuclearthrone.exe+1C2CD4 jmp return HP4: jmp newmem nop return: registersymbol(HP4) this nullifies the code but gives enemy infinite hp[/quote]
Options
HTML is
OFF
BBCode
is
ON
Smilies are
ON
Disable BBCode in this post
Disable Smilies in this post
All times are GMT - 6 Hours
Jump to:
Select a forum
Cheat Engine
----------------
Cheat Engine
Cheat Engine MacOS
Cheat Engine Lua Scripting
Cheat Engine Extensions
Cheat Engine Tutorials
General Gamehacking
Auto Assembler tutorials
Pointer tutorials
Game specific tutorials
Webbrowser stuff related tutorials
Console Modding
LUA Tutorials
General Discussions
----------------
General Discussions
Art
Computer Talk
Random spam
Art Requests
Art Tutorials
Willekeurige Rotzooi
Guests
Cheat Requests
----------------
Single player cheat request
Cheat Engine Downloads
----------------
Tables
Trainers
Auto Assemble scripts
Coding
----------------
Cheat Engine Source
CETC Server and Clients
DBVM
Plugin development
General programming
Binaries
Crackmes
General programming+
Game Development
2D Graphics
3D Modeling
Gameplay design
Web Development
Games
----------------
Flash Games
Gaia Online
Stick Arena
Hello Kitty Forums
----------------
Temp
Topic review
Author
Message
OldCheatEngineUser
Posted: Mon Dec 18, 2017 2:02 pm
Post subject:
Guest wrote:
I did the usual struct dissection and found a 4-bit value consistently same among players and different on enemies (players all 5, enemies all 0)
you meant 4-byte value? if so then:
Code:
label(code)
label(return)
newmem:
cmp byte ptr [ebx+1C],05
jz nuclearthrone.exe+1C2CD4
code:
movsd [ebx],xmm1
jmp nuclearthrone.exe+1C2CD4
jmp return
HP4:
jmp newmem
nop
return:
registersymbol(HP4)
NuclearThroneHelp
Posted: Mon Dec 18, 2017 12:06 pm
Post subject: assembler sytax for code injection
Hey,
I've been trying to make a small cheat table for a game called Nuclear Throne, apparently in the game there are multiple different types of damage and i managed to pinpoint all of them and made "infinite hp" scripts for all, only problem is, one of them gives infinite hp to enemies as well. I did the usual struct dissection and found a 4-bit value consistently same among players and different on enemies (players all 5, enemies all 0)
my problem is the syntax of the code to use to distinguish the player from the enemy and give infinite hp to player only. i did experiment for a long time, hopefully someone experienced can help me properly use cmp function
This is the original code :
label(code)
label(return)
newmem:
code:
movsd [ebx],xmm1
jmp nuclearthrone.exe+1C2CD4
jmp return
HP4:
jmp newmem
nop
return:
registersymbol(HP4)
[ebx] is address of HP, i found address of differentiating type is [ebx+1C], where 5 is player and 0 is enemy. can someone help me code the syntax.
also, what i normally do is:
label(code)
label(return)
newmem:
code:
nop
nop
nop
nop
jmp nuclearthrone.exe+1C2CD4
jmp return
HP4:
jmp newmem
nop
return:
registersymbol(HP4)
this nullifies the code but gives enemy infinite hp
Powered by
phpBB
© 2001, 2005 phpBB Group
CE Wiki
IRC (#CEF)
Twitter
Third party websites