Skip to content
TORNLIFE More

[Library] Tornium OC Graph

Started by tiksan [2383326] on in Tools & Userscripts.

1 replies · 101 views · thread synced · 10 days ago · View on torn.com
About this thread

Posts archived: 2 / 2 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
2
Discussion span
→
People posting
1
Likes on archived posts
2
Authority score
34 / 100
Historical score
21 / 100
Story score
27 / 100
Engagement score
45 / 100

Mentioned in this thread

Allenone [2033011] ×1

tiksan [2383326]

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:

Github

Discord Support Server

 

Examples:

Mentions: Allenone [2033011] · [Site + Script] Torn OC Scenario Tracker

tiksan [2383326]

tornium_oc_graph v0.2.0 - 2026-04-11

 

tornium_oc_graph can now be downloaded from PyPi through `pip install tornium-oc-graph`. Wheel files are pre-built for Linux for ARM and x86 (see the PyPi files). Other OSes will have to be compiled locally as you install it.

 

- Added Nix support
- [Python] Added support for wheels
- [Python] Added package to PyPi
- Changed code generation to use forum thread to get OC scenario graphs instead of hard-coding their URLs
- Fixed code generation for the First Aid and Abet OC
- [Python] Removed usage of shared object in the Python bindings