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
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 from 138600 to 0
[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, doesn't work, and 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