Hi all
This is one of my first scripts that I built for private use. I shared with a friend in Torn - they loved it - and they told me I should share it with the fine (and not so fine) citizens of Torn...
The Challenge
I like to hop from one activity to the next in Torn. This might be a typical day for me:
Spend some time sniping items in the item market that are under-priced..
Sell these snipes in my bazaar or on the item market for a modest profit.
Spend some time shoplifting, searching for cash, dump diving, and then flipping my items on my lunch break in my bazaar or in the item market.
Then, my favourite pastime... $1 Bazaar Flips.
I will search through my favourite bazaars that list $1 items... snap up what I can, and then list them for sale.
Sometimes I don't get round to listing stuff, though.
And, sometimes I don't get round to one or more activity due to trains, travelling or whatever.
So, when I looked through my logs, it got hard to track my activities and see what kinda profit I was making on the regular.
Enter MegaLedger
The script itself lives in Google Sheets. I mostly live in Google Sheets for my daily grind, so it made sense to code it there.
Firstly, you enter the date range and the stuff you want to track:
Next, you download logs...
Then we download the logs in 'slices' and blocks to ensure we get every last drop of loggery: -
WHY? The API does not let you page through your logs. It caps at 100 per call. So, you have to 'slice' up the time period into manageable timeframes using timestamps instead. This increases API calls, but the script has a good backoff and keeps API calls to a decent limit.
Next comes the fun bit. Analysis of the logs.
You select Run Full Analysis from the menu: -
Then the script creates ledgers of all your activity; what you found, stole, sniped, and sold.
Here's some sample data:
NEW!!!! TRADE ANALYSIS:
This is just what I needed to be able to track my progress in Torn, and I think a few others might find it useful
I'll make the new versions available as I update MegaLedger, and I welcome any feedback. I'll consider making any changes depending on the time it takes to implement and the complexity. Sadly, my real life job does not pay as well as my Torn activities...
All support & donations welcome!
Download links in next post!