tools: NID coverage checker + workflow doc #36

Closed
Pouare514 wants to merge 2 commits from upstream-pr/36 into main
Pouare514 commented 2026-09-27 11:32:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-09-27T11:32:22Z.


tools/check-nid-coverage.py compares --windows-diagnostics imports against the known-missing list and existing prx exports (exit 0/1/2), tested on fake data. docs/nid-coverage.md documents the relink->check->stub loop.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4653548132 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/36). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-09-27T11:32:22Z. --- tools/check-nid-coverage.py compares --windows-diagnostics imports against the known-missing list and existing prx exports (exit 0/1/2), tested on fake data. docs/nid-coverage.md documents the relink->check->stub loop.
boykopovar commented 2026-09-27 15:34:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-27T15:34:27Z.


The tool isn't particularly versatile. It's also unclear how to generate "legends-unresolved-nids.json" for other games. Overall, the idea is useful. I believe the tool should accept a windows-diagnostics-imports.txt file (it can have any name) and the path to the folder with the compiled libs (no default arguments). So, the script's job is to iterate through all the PRX files, find out which nids are exported, and output a list of those missing to fully cover windows-diagnostics-imports.txt. The script also needs to be able to work with Linux (SO) PRX files. Such a tool is significantly more complex, but it would be universal.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5857273905 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/36#issuecomment-5857273905). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-27T15:34:27Z. --- The tool isn't particularly versatile. It's also unclear how to generate "legends-unresolved-nids.json" for other games. Overall, the idea is useful. I believe the tool should accept a windows-diagnostics-imports.txt file (it can have any name) and the path to the folder with the compiled libs (no default arguments). So, the script's job is to iterate through all the PRX files, find out which nids are exported, and output a list of those missing to fully cover windows-diagnostics-imports.txt. The script also needs to be able to work with Linux (SO) PRX files. Such a tool is significantly more complex, but it would be universal.
boykopovar commented 2026-09-28 08:02:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-28T08:02:22Z.


If you do this, open new PR, you should split tool into several files in the tools/nid_coverage/ folder. Regarding the md file with the description (docs/nid-coverage.md), you shouldn't add it to the repository, but you can attach it to PR. And in the Python tool, add the --help flag with short instructions, if you like.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5865894678 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/36#issuecomment-5865894678). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-28T08:02:22Z. --- If you do this, open new PR, you should split tool into several files in the tools/nid_coverage/ folder. Regarding the md file with the description (docs/nid-coverage.md), you shouldn't add it to the repository, but you can attach it to PR. And in the Python tool, add the --help flag with short instructions, if you like.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!36
No description provided.