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 


Possible to search and change a public var ?

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

Joined: 25 Mar 2014
Posts: 17

PostPosted: Thu Apr 07, 2016 6:22 am    Post subject: Possible to search and change a public var ? Reply with quote

Not sure the best way to ask this, but with cheat engine a lot is to do with memory and aob's, in my trainer I use aobswap to execute my hacks - however, I've came across something in my way which I can't seem to get around using aobswap,

At the top of this particular file, is this:

public var armorIsActive:Boolean = false;


When I click on this using JPEXS flash decompiler, it shows me this in the right panel:

trait Qname(PackageNamespace(""),"armorIsActive") slot slotid 0 type Qname(PackageNamespace(""),"Boolean") value False


Is there any way I can remove this from the file using cheatengine in my trainer, or change the value to true? I've tried a few different things like

pushtrue
setsuper Qname(PackageNamespace(""),"armorIsActive")

But this fails to work also, any help is greatly appreciated!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4695

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

If it's initialized somewhere else (e.g. constructor), then change that instead.

Why not find out where it's being used and change it there?

_________________
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
Jimbo
Newbie cheater
Reputation: 1

Joined: 10 Apr 2016
Posts: 17

PostPosted: Sun Apr 10, 2016 9:44 pm    Post subject: Reply with quote

How would you do that?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4695

PostPosted: Sun Apr 10, 2016 9:50 pm    Post subject: Reply with quote

Search for the variable name. If it's private, then you'd only need to search for it locally; however, since this is public you'll need to globally search for it by going to Tools -> Text Search. Then, just replace the bytecode at wherever it's being used like you would normally.
_________________
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