|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
atnip How do I cheat? Reputation: 0
Joined: 07 Jan 2021 Posts: 5 Location: United States
|
Posted: Thu Jan 07, 2021 11:17 pm Post subject: [solved]noob here looking for help with load remover. |
|
|
synopsis: I am using LiveSplit (speedrunning software) that uses a timer to keep track of what your best time is and also what your current time is. One of the rules for the game that I am speedrunning happens to be that the timer is supposed to be paused anytime you enter a menu or a loading screen. You are able to write a script in this software so that you can do this automatically.
first things first id like to use cheat engine to find some sort of identifier or trigger for whenever i enter the main menu or whenever i enter a state where im loading into a new area. How would i go about finding an identifier for this?
if its of any use to anyone ill put the code of the old load remover in here which is useless now due to the game being updated.
Code: | state("BorderlandsGOTY")
{
// General data pointers that we use for if we're on the main menu
bool isMainMenu : "BorderlandsGOTY.exe", 0x02544B18, 0xe8, 0x108, 0xd4, 0xfc;
// If mainMenu2 is == 153 OR 139, we're [probably] on the main menu
int mainMenu2 : "BorderlandsGOTY.exe", 0x242478C;
// A proper boolean that returns true when we're loading
bool isLoading : "BorderlandsGOTY.exe", 0x25C2A1C;
bool isLoading2 : "BorderlandsGOTY.exe", 0x25C20FC;
// An integer value that is == 46179 when we're saving our game
int isSavingGame : "BorderlandsGOTY.exe", 0x025489E0, 0x4c0, 0x760, 0x78;
}
// We wanna pause the IGT timer if we're loading, in the main menu, or doing a save & quit.
isLoading
{
return (current.isLoading || current.isLoading2) || (current.isMainMenu || current.mainMenu2 == 153 || current.mainMenu2 == 139) || current.isSavingGame == 46179;
}
init
{
timer.IsGameTimePaused = false;
game.Exited += (s, e) => timer.IsGameTimePaused = true;
}
// Pause the timer whenever the game closes cause this game has memory leaks.
exit
{
timer.IsGameTimePaused = true;
} |
Last edited by atnip on Fri Jan 08, 2021 7:35 pm; edited 1 time in total |
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4300
|
Posted: Thu Jan 07, 2021 11:50 pm Post subject: |
|
|
I'm not familiar with that syntax, but those are probably pointer paths: i.e. "BorderlandsGOTY.exe", 0x02544B18, 0xe8, 0x108, 0xd4, 0xfc; in CE would probably be [[[["BorderlandsGOTY.exe" + 02544B18]+e8]+108]+d4]+fc
atnip wrote: | first things first id like to use cheat engine to find some sort of identifier or trigger for whenever i enter the main menu or whenever i enter a state where im loading into a new area. How would i go about finding an identifier for this? | In general, unknown initial value and changed/unchanged value scans. Clever use of "Compare to first scan" can cut down the results significantly, but be careful you don't remove valid results.
The game probably didn't change that much from where it was. The variables stored in the exe (i.e. mainMenu2, isLoading, isLoading2) are probably still stored in the exe: limit scan start/end regions to the exe and you should find them pretty quickly. The others (i.e. isMainMenu, isSavingGame) might be more difficult to find since you can't really limit the start/stop regions. Once you find them, do a pointer scan to find a good pointer path from the exe (see this video).
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
atnip How do I cheat? Reputation: 0
Joined: 07 Jan 2021 Posts: 5 Location: United States
|
Posted: Fri Jan 08, 2021 10:54 am Post subject: |
|
|
thanks for the help
|
|
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
|
|