Joined: 20 Oct 2012
|Posted: Mon Oct 30, 2017 3:23 am Post subject: A single instruction is shared with tons of addresses values
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
[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.
Max Oxygen 277200
Harvested Resource 138600 harvested when reached
Backpack Crafting time 138600 completed when decreased to 0 from 138600
//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)
//label(instantcraftbp) //not completed
cmp [rbx+000000A8],2E480609 //check if it is harvest resource
// 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
mov [rbx+00000140],(int)138600 // Massive Resources + Soil Collection
// mov [rbx+00000140],(int)0
// jmp return
//code from here till the end of the code will be used to disable the cheat
db 89 BB 40 01 00 00
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?