Ched's API changes that could break our tools | API Devel…
Ched's API changes that could break our tools
  • IBB MightyGoober [812478]MightyGoober [812478]
    • MightyGoober [812478]
    • Role: Civilian
    • Level: 100
    • Posts: 4978
    • Karma: 11455
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 21:24:51 - 27/02/20 (1 year ago)
    |
    Last replied 15:14:06 - 18/07/21 (3 months ago)
    Ched is a very busy guy, and it has been brought up a few times that his Bugs & Issues API changes don't always get communicated to the scripting community.

    For those of us that follow the fixes, I think it would be valuable for people to post links to the threads where Ched is changing the API.


    So, for the first record of API changes... I'll start:
    empty attack logs to be in object format when empty, for users and faction selections.
    https://www.torn.com/forums.php#/p=threads&f=19&t=16146289&b=0&a=0&start=0&to=20068652

    Join IBB after your Halloween chain! Message me!

  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:07:38 - 15/03/20 (1 year ago)
    Post link copied to clipboard Copy post link
    [API] Added war information to 'torn' -> 'territory' & 'rackets' selections
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:26:41 - 24/05/20 (1 year ago)
    Post link copied to clipboard Copy post link
    Please note, upcoming change for Tuesday 26th.

    [API] Changed daily_profit to daily_income, and weekly_profit to weekly_income on 'company' -> 'profile' selection
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:23:44 - 07/06/20 (1 year ago)
    Post link copied to clipboard Copy post link
    Added neighbors array for 'torn' -> 'territory' selection when including territory names in ID field
    Changed 'torn' -> 'territory' selection to only show simplified details when viewing all territories
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:22:35 - 28/09/20 (1 year ago)
    Post link copied to clipboard Copy post link
    [API] Changed 'networth' to 'daily_networth' on the 'money' selection to avoid conflicts
    Last edited by Chedburn on 10:22:46 - 28/09/20
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:57:57 - 29/09/20 (1 year ago)
    Post link copied to clipboard Copy post link
    [API] Changed effectiveness to detailed array including total score in 'company' -> 'employees' selection
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:33:12 - 22/02/21 (8 months ago)
    Post link copied to clipboard Copy post link
    We're planning on releasing the change to faction news storage method tomorrow. This means that the "ID" format will change from a number to a key. This means rows will appear like this...

    [Vhuj91P0dwnYNlsafjWY] => Array ( [news] => Leadership was transferred to <a href = http://www.torn.com/profiles.php?XID=2307957>romankr</a>. [timestamp] => 1595970358 )

    Hopefully this doesn't cause too much upset. This will also allow us to add to/from timestamp ranges very soon.
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:56:18 - 13/03/21 (7 months ago)
    Post link copied to clipboard Copy post link
    Please note, after a request to change from Camel Case to Snake Case, the chain details within the attacks selection for 'users' and 'factions'. 

    Here's the report: www.torn.com/forums.php#/p=threads&f=19&t=16216051&b=0&a=0&start=0

    fairFight -> fair_fight
    groupAttack -> group_attack
    chainBonus -> chain_bonus

    This will be live on Tuesday 14:00 TCT.

    Thanks.
    Last edited by Chedburn on 16:56:31 - 13/03/21
  • Ðé Chedburn [1]Chedburn [1]
    • Chedburn [1]
    • Role: Admin
    • Level: 15
    • Posts: 24940
    • Karma: 42554
    • Last Action: 1 minute
    • Report
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:14:06 - 18/07/21 (3 months ago)
    Post link copied to clipboard Copy post link
    Renamed "company_bank" selection in company detailed info to "company_funds" for consistency (I'll remove company_bank in the future). Added company_funds also for director's 'user' > 'money' selections. If this causes any serious issues (i can't imagine it would) it's easy to reverse.
Reply
Thread Title: