This library provides OC scenario graphs as code to perform the math for OCs locally. This was intended to be an internal library for Tornium, but since none exist already (except for non machine-readable copies), I'm going to publish it even though it's namespaced weirdly and not the cleanest written. The library natively supports Python, Elixir, and C++ but can be made to work with most languages using the language's FFI mechanism.
This library is built on top of Allenone's OC scenario graphs by parsing its graph URLs, generating C++ code for the scenario graph, and patching the generated files to fix bugs in Allenone's graphs. As such there may be some unresolved issues in the graphs or outdated generated files.
For information on using this library, see the README. If you need help using this library or encounter any bugs, please create a ticket on Tornium's Discord server.
Credit to Allenone for the original research into OC scenarios and for creating the original graphs for OC scenarios.
Links:
Examples:
Mentions: Allenone [2033011] · [Site + Script] Torn OC Scenario Tracker