Skip to content
TORNLIFE More

Scamming error

Started by PurpleFire [2868362] Committee on in Bugs & Issues.

75 replies · 1.01k views · thread synced · 4 days ago · View on torn.com

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

_Shahariar_ [2892335]

I'm having same issue with the Scamming Crime.


Whenever I click on it to do the crime, it says “Cannot read properties of undefined (reading 'barStates')”

fuzzy-focus [2696902]

Little to add but another case. 

 

Started 10h ago, but all the education courses (probably the psy one is the relevant one). 

Happens across browsers and devices. 

 

 

Meeepy [1952394]

Has now changed to

Cannot read properties of undefined (reading 'hesitationEnd')

Instead of the 'barStates' earlier

tobytorn [1617955]

There is a typing error in the code. Each scamming target contains an internal "subID" field, which is a hexadecimal string. However, if the field consists only of digits, it is mistakenly converted to a number instead of being retained as a string.

 

Below is a simple userscript to correct this issue.

 

Disclaimer: This is a temporary workaround and not an official solution. It has not been thoroughly tested, so please use it at your own risk.

 

Edit: I don't know how to post code with correct formatting here. I will post it on greasyfork instead.

Edit 2: I've uploaded it to greasyfork and posted it here: https://www.torn.com/forums.php#/p=threads&f=67&t=16424573

Mentions: [Script] Workaround for the scamming bug

CrymeLord [2764328] Admin Staff

That's right, the root cause was indeed numeric instance IDs, which then fail to compare against the expected string type.

 

We just pushed the fix.

CrymeLord [2764328] Admin Staff

I checked your account specifically, the issue is fixed. If it doesn't work for you, please try clearing cache.