Need help with autosplitter
7 years ago
United States

So I've tried to make an autosplitter for the PC version of A Bug's Life.

The first thing I did was find the level counter. The second thing I did was find the final boss' HP.

So the autosplitter would split whenever the level counter goes up and have the final split when the final boss' HP goes to 0. I tried to follow the autosplitter tutorial to the best of my abilities and this is the script I came up with (And as you can tell it doesn't work)

state("bugs") { int Levels : 0x59D8E4; int Hopper : 0x59F638; }

split { if (old.Levels < current.Levels)

if (current.Hopper = 0)

}

There's a few theories as to how I went wrong. The first thing is I have no clue what an "offset" or "pointer_path" is so I just put the address that Cheat Engine gave me into where it told me to put the offset.

The second theory I have is that these are not integers. I had just assumed that they were integers because Cheat Engine told me they were "4-byte" which translates to 32-bits

I really don't know what I'm doing wrong and could really use some help because the PC version of A Bug's Life won't allow you to split while in windowed mode. So this autosplitter could be a lifesaver.

Any help is appreciated.

California, USA

Even if you have the correct pointers from cheat engine, this is not correct syntax under the split section. I think you want something more like:

return (old.Levels < current.Levels || current.Hopper == 0);

As for cheat engine, if the addresses were green you're good to go on that front. Otherwise you'll need to use a pointer scan to find addresses that don't change on game relaunch.

Edited by the author 7 years ago
Germany

@seanpr having two ifs instead of combining them works just fine. The thing wrong there is comparing with a single = instead of ==, also you are missing the return statement. The Memory Addresses seem to miss the value for the .exe. Example: state("UBERMOSH vol3") <--name of exe { Pointer: int kills: "UBERMOSH vol3.exe"<--this is written in CE,0x00015E68,<--base address0xC,0x60C,0x164,0x4,0x414<-offsets; Static Address int menu: "UBERMOSH vol3.exe",0x385F70; }

Edited by the author 7 years ago
MasterLeoBlue likes this