Files
gtav-src/script/dev_ng/FindingUnreferencedStructFields.txt
2025-09-29 00:52:08 +02:00

14 lines
859 B
Plaintext
Executable File

1. Open a command line window and go to X:\gta5\script\dev
2. Run findunreferencedstructfields.exe to get instructions on how to create C:\struct-references.txt
3. Follow those instructions to create C:\struct-references.txt
4. In the command line, type findunreferencedstructfields.exe C:\struct-references.txt > results.txt
5. Open results.txt
6. Save all the lines between "Struct fields referenced **0** times:" and "Struct fields referenced **1** times:" as a separate text file called X:\gta5\tools\script\gamescript\list_of_structs.txt
7. Run X:\gta5\tools\script\gamescript\find_strings.bat
list_of_structs_with_filenames.txt should contain a list of structs and the file which declares them
multiple_occurrences.txt contains a list of structs that appear to be declared in more than one file
no_occurrences.txt should always be empty