hrt / BrawlBot

Code that plays the game Brawlhalla!
32 stars 10 forks source link

Question about ginput & other things #9

Open Zayoe4 opened 4 years ago

Zayoe4 commented 4 years ago

@hrt I am updating g_input_offsets and I wanted to know what I should do next. image Here you can see that I found five different addresses for ginput. I was thinking I should do a pointer scan and try to find a base address, but I'm not sure which address I should try to uses, they all have different offsets, but the same address accessing them 3C96B0B0.

Another question I wanted to ask, in your offsets.py file, I noticed that you had several other values behind the base address: g_input_offsets = ('Adobe AIR.dll', [0x0131550C, 0x1DC, 0x18, 0x8, 0x98, 0x1F8, 0x4CC]) 0x0131550C is the base address, is everything behind it just offsets? The reason I'm asking is because whenever I do a pointer scan, I get down to 80 pointers (of which, 60 are adobeair.dll) and I'm not sure which pointer I should use. I assume I should be able to use any of them since when I restart Brawlhalla, they always point back to where they should. Below I've included the 80 pointers I got from local player: image So let's imagine I used the address at the top of the list in the screenshot. "Adobe AIR.dll"+01315500 Would I need to edit the file to read: local_ptr_offsets = ('Adobe AIR.dll', [0x01315500, If so, would the offsets be added to the right like this: local_ptr_offsets = ('Adobe AIR.dll', [0x01315500, 0x7A8, 0x52C, 0xFC, 0x568, 0x370]) Here is a better example of what I mean: image

TL;DR: Question 1: I found six ginputs, which should I use? Question 2a: I have 60 base address, can I use any of them for local_ptr_offsets? Question 2b: Is the image below correct? image

Thank you for coming to my TedTalk.

Sc0peBetter commented 3 years ago

can you add me on Discord? Sc0pe#9249

taohabo commented 3 years ago

do you can add me discord Thien1994#5618 @Zayoe4

Ornamus commented 3 years ago

@Zayoe4 I'm very curious how you resolved this, as I'm doing this myself at the moment. Can you add me on Discord? Ornamus#6574