Crimes 2.0 Subcrime Data | API Development | TORN

Crimes 2.0 Subcrime Data

    • so_like_juan [2556205]
    • Role: Civilian
    • Level: 71
    • Posts: 270
    • Karma: 97
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 14:24:35 - 05/02/24 (7 months ago)
    |
    Last replied 22:29:36 - 07/02/24 (7 months ago)
    Is it possible to have the total number of each subcrime in the API call?
    eg:

    {
    "criminalrecord": {
    ...
    "theft": {
    "searchforcash": 1000,
    "pickpocketing": 600,
    "total": 1600
    }
    ...
    "total": 10600,
    },
    ....
    }
    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 1,865
    • Karma: 2,838
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 04:58:41 - 06/02/24 (7 months ago)
    Post link copied to clipboard Copy post link

    so_like_juan [2556205]

    Is it possible to have the total number of each subcrime in the API call?
    eg:

    {
    "criminalrecord": {
    ...
    "theft": {
    "searchforcash": 1000,
    "pickpocketing": 600,
    "total": 1600
    }
    ...
    "total": 10600,
    },
    ....
    }
    Not currently (that I know of). Closest thing would be user/skills which shows the crime skill for each crime (e.g. "search_for_cash": "100.00" )
    • so_like_juan [2556205]
    • Role: Civilian
    • Level: 71
    • Posts: 270
    • Karma: 97
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:37:31 - 06/02/24 (7 months ago)
    Post link copied to clipboard Copy post link

    so_like_juan [2556205]

    Is it possible to have the total number of each subcrime in the API call?
    eg:

    {
    "criminalrecord": {
    ...
    "theft": {
    "searchforcash": 1000,
    "pickpocketing": 600,
    "total": 1600
    }
    ...
    "total": 10600,
    },
    ....
    }

    Kwack [2190604]

    Not currently (that I know of). Closest thing would be user/skills which shows the crime skill for each crime (e.g. "search_for_cash": "100.00" )
    yea, that's what is currently available.

    I'm wanting to make use of a function in tornstats, that lets you create and monitor faction competitions.

    With sub crimes in 2.0 being lumped into categories, it cant differentiate between "SearchForCash" and "PickPocketing". So a THEFT competition would not be easy to manage because it will just add up the total amount of criminal offences for THEFT; where SearchForCash has less nerve requirements than PickPocketing, leaving a door open for less than desirable outcomes for the faction.
    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 1,865
    • Karma: 2,838
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:05:38 - 06/02/24 (7 months ago)
    Post link copied to clipboard Copy post link

    so_like_juan [2556205]

    Is it possible to have the total number of each subcrime in the API call?
    eg:

    {
    "criminalrecord": {
    ...
    "theft": {
    "searchforcash": 1000,
    "pickpocketing": 600,
    "total": 1600
    }
    ...
    "total": 10600,
    },
    ....
    }

    Kwack [2190604]

    Not currently (that I know of). Closest thing would be user/skills which shows the crime skill for each crime (e.g. "search_for_cash": "100.00" )

    so_like_juan [2556205]

    yea, that's what is currently available.

    I'm wanting to make use of a function in tornstats, that lets you create and monitor faction competitions.

    With sub crimes in 2.0 being lumped into categories, it cant differentiate between "SearchForCash" and "PickPocketing". So a THEFT competition would not be easy to manage because it will just add up the total amount of criminal offences for THEFT; where SearchForCash has less nerve requirements than PickPocketing, leaving a door open for less than desirable outcomes for the faction.
    Ah, I didn't realise you meant it as more of a feature request.

    This area doesn't really get watched by Ched so I doubt you'll get much of a response here. You could open a bug report requesting the selection but tbh I'd expect it to be closed.

    Realistically the only way I see this working currently would be getting full-access keys from all factionmates so you can iterate through their logs. Alternatively you can get them to export their logs from T.R but these could always be modified before you receive them.
    • so_like_juan [2556205]
    • Role: Civilian
    • Level: 71
    • Posts: 270
    • Karma: 97
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:09:48 - 07/02/24 (7 months ago)
    Post link copied to clipboard Copy post link
    I've just realized that this information is readily available (just not via api).

    If you're in a crime, you can see the various attempts at targets as well as the totals for success (green), fail (white) and critical failure (red).

    Just need these numbers to be made available via api now and it's an easy win.
    Last edited by so_like_juan on 22:10:03 - 07/02/24
    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 1,934
    • Karma: 11,353
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:29:36 - 07/02/24 (7 months ago)
    Post link copied to clipboard Copy post link
    You can always parse the logs like torn.repot does. Though it only works with a full access key.

    Toolbox - a collection of my tools and spreadsheets made for Torn.

    Guidebook - a collection of guides i made for Torn.

Reply
Thread Title: