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 


A single instruction is shared with tons of addresses values

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
squall0833
Cheater
Reputation: 0

Joined: 20 Oct 2012
Posts: 35

PostPosted: Mon Oct 30, 2017 3:23 am    Post subject: A single instruction is shared with tons of addresses values Reply with quote

Hello guys,

Recently I went back to play Astroneer, and doing some cheats, then I found most of the stuff in the game shared the same instruction. And I'm running out of idea how to deal with this kind of instruction

im still new to CE, just beginner level

what this cheat does is
Infinite Oxygen[/b
[b]Massive Resources and Soil Collection
when harvesting.
(every bit of harvested resource instantly harvested as a stack, end up massive resources explosion)

here's my current code:

note: Oxygen and Massive Resources work as intended.

Values found:
Max Oxygen 277200
Harvested Resource 138600 harvested when reached
Backpack Crafting time 138600 completed when decreased to 0 from 138600


Quote:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat



aobscanmodule(INF_OXYGEN,Astro-Win64-Shipping.exe,89 BB 40 01 00 00 85)
alloc(newmem,$1000,"Astro-Win64-Shipping.exe"+1DF9CB)

label(code)
label(return)
label(massiveresources)
//label(instantcraftbp) //not completed

newmem:
cmp [rbx+000000A8],2E480609 //check if it is harvest resource
je massiveresources
// cmp [rbx+000000XX],XXX //check XXX if it is Build/Craft time
// jmp instantcraftbp
cmp [rbx+000000A8],2E480619 //check if it is Oxygen
jne code //jump to original code if not oxygen not resources
mov [rbx+00000140],(int)277200 //Infinite Oxygen
jmp return

massiveresources:
mov [rbx+00000140],(int)138600 // Massive Resources + Soil Collection
jmp return

//instantcraftbp:
// mov [rbx+00000140],(int)0
// jmp return

code:
mov [rbx+00000140],edi
jmp return

INF_OXYGEN:
jmp newmem
nop
return:
registersymbol(INF_OXYGEN)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INF_OXYGEN:
db 89 BB 40 01 00 00

unregistersymbol(INF_OXYGEN)
dealloc(newmem)



However when this cheat is enabled, all building/crafting in the game will be freeze until the cheat is disable, it seems that the building/crafting time is also using the same instruction, I believe when an item is being crafted, the value is the same as harvest resource integer 138600 but decreasing instead, and when it reached 0, item is done,

So I wrote instantcraftbp compare statement, it seems it doesn't work, and still crafting still freezing at 138600 (0% progression),

did some testing, the code that's freezing the crafting time was coming from massiveresources: code, If i change 138600 to 0, then instant craft works, but can no longer harvesting resources and soil, looks like something is wrong in this code that's still applying 138600 to the crafting time, cmp statement on instantcraftbp doesnt work?

is there any better way to identify what is the "edi" or "rbx+140" for them jump to the right cheat code?


Thanks
Back to top
View user's profile Send private message
ZacTheSin
I post too much
Reputation: 6

Joined: 09 May 2006
Posts: 2657

PostPosted: Mon Oct 30, 2017 2:59 pm    Post subject: Reply with quote

You might want to do a `Break and Trace` on the instruction that is actually changing things. You might find that it's on like a parent class that might be modifying more than just that value you're expecting.

Gawd it's been awhile since I used CE.

_________________
If someone helps you, why not Rep them?
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 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