/v_decompiled_scripts_globals

Automatically extracts global variables from decompiled scripts and saves them to a file.

Primary LanguagePython

V Decompiled Scripts Globals

This script automatically extracts global variables from decompiled scripts and saves them to a file.

Warning

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.

Usage

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")

Screenshots

Script's Output:

WindowsTerminal_2024-08-23_22-00

Extracted Globals File:

Notepad_2024-08-23_22-18