AoB Extractor

Post your topics and discussions here that you can't find a good section for.
Post Reply
User avatar
SilverRabbit90
Table Makers
Table Makers
Posts: 178
Joined: Fri Jan 15, 2021 12:01 am
Reputation: 149

AoB Extractor

Post by SilverRabbit90 »

I place it here because I don't know where to post it.

A simple script for Python 3 to extract AoB from a CE script.

Code: Select all

code = """

"""

aob = ''.join([line.split(':')[1].split('-')[0].strip().replace(' ', '') for line in code.split('\n') if line.strip() != '' and not line.strip().startswith('//')])
formatted_aob = ' '.join([aob[i:i + 2] for i in range(0, len(aob), 2)])
print(formatted_aob)

Premise this does not work if you have the opportunity to see the modules activated.

Guide to disable it:


First of all you have to click on "Memory View", then on "View" and then you have to remove the check from "Show Symbols" (I recommend reactivating the tick after use).

(There is no need to do this for all games depends if the game uses Modules or Mono, in that case you do.)
Spoiler
Image
Once this is done now you can create a script, now just extract the AoB (Obviously the script must be AoB type)

Here are the steps to be made:
Open the script go all the way and select the piece of code from which you want to extract the AoB. Copy the code and paste between

Code: Select all

code = """

"""
Run the IDE and the game is done
Spoiler
Image
Spoiler
Image
Spoiler
Image
Spoiler
Image
Spoiler
Image
If you do not have an IDE installed on your PC you can use online, here is a list:
Spoiler
[Link] [Link] [Link]

I hope it is useful ;)

User avatar
SilverRabbit90
Table Makers
Table Makers
Posts: 178
Joined: Fri Jan 15, 2021 12:01 am
Reputation: 149

Re: AoB Extractor

Post by SilverRabbit90 »

This works even with Modules/Mono:

Code: Select all

code = """

"""

aob = ''.join([line.split('-')[0].strip().split(':')[-1].replace(' ', '') for line in code.split('\n') if line.strip() != '' and not line.strip().startswith('//')])
formatted_aob = ' '.join([aob[i:i + 2] for i in range(0, len(aob), 2)])
print(formatted_aob)
You don't need to disable "Show symbols"

User avatar
SilverRabbit90
Table Makers
Table Makers
Posts: 178
Joined: Fri Jan 15, 2021 12:01 am
Reputation: 149

Re: AoB Extractor

Post by SilverRabbit90 »

I have implemented the byte count of the AoB

Code: Select all

print('All Bytes:')

code = """

"""

aob = ''.join([line.split('-')[0].strip().split(':')[-1].replace(' ', '') for line in code.split('\n') if line.strip() != '' and not line.strip().startswith('//')])
formatted_aob = ' '.join([aob[i:i + 2] for i in range(0, len(aob), 2)])
byte_count = len(aob) // 2
print(formatted_aob)
print("Byte count:", byte_count)
print(f"{byte_count:X}")
print(' ')



print('Before Injecting point Bytes:')

code = """

"""

aob_section = code.split("// ---------- INJECTING HERE ----------")[0]
aob = ''.join([line.split('-')[0].strip().split(':')[-1].replace(' ', '') for line in aob_section.split('\n') if line.strip() != '' and not line.strip().startswith('//')])
formatted_aob = ' '.join([aob[i:i + 2] for i in range(0, len(aob), 2)])
byte_count = len(aob) // 2
print(formatted_aob)
print("Byte count:", byte_count)
print(f"{byte_count:X}")
Spoiler
Image
Spoiler
Image

Post Reply

Who is online

Users browsing this forum: AhrefsBot, zoomcv