|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 07, 2017 9:22 am Post subject: Easy Craft / Free Craft etc.. |
|
|
Hello, I was wondering how exactly would you do Easy Craft for most of the games, for example in Animallica, or The Forest or other games with Crafting System, I mean I don't understand how exactly should I look for it, what value type, Is it a flag or some sort when you have all the resources to craft the item?
|
|
Back to top |
|
|
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Tue Aug 08, 2017 7:50 am Post subject: |
|
|
There will likely be some subroutine that does the function "check requirements"
It will loop through the items required, and then loop through your inventory slots. Or depending on how OOP the game is, it may call helper functions to search the inventory.
This will then return some Boolean to say if there are enough items (1, true) or there are not (0, false).
And you need to alter that value.
_________________
Er, hi |
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Tue Aug 08, 2017 8:49 am Post subject: |
|
|
i totally agree with you, it can be 0,1.
but there is two available ways:
assuming when you select a building to upgrade or construct, cost values will be passed to a function.
finding the function that hold buildings costs and make all the costs '0' or NOPing it should give you free crafting.
another way is when you click on building or an item to craft or whatever, there will be for sure a register holding item or bulding cost to subtract from your money, and usually that register will get the value from stack register (in most times)
so also making this register always hold '0' so it will subtract nothing. or making stack register to move 0 too.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
|
|
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
|
|