This script automatically extracts global variables from decompiled scripts and saves them to a file.
The script scans exclusively for Global_x
and Global_x.f_x
vars.
The output does not include Global arrays or additional suffixes.
For example, it will not capture formats like Global_x[x]
or Global_x[x /*x*/]
.
Only the base Global_x
part will be extracted from these.
Edit the following paths in the source code to match your desired directories:
DECOMPILED_SCRIPTS = Path("D:/Downloads/GTA Stuff/PC/.Other Stuff/03 - Codding/01 - Decompiled Scripts/v-decompiled-scripts-master")
OUTPUT_FILE = Path("extracted_globals.txt")