Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Radio v4.0.0 working with ETS2 but not with ATS: JavaScript error #226

Open
DoctorStrange96 opened this issue May 3, 2024 · 2 comments

Comments

@DoctorStrange96
Copy link

As written in the title. I was able to reproduce this issue using version 3.4.2 as well. I can find and listen to local radio stations just fine in ETS2, but I run into the "Waiting for your in-game coordinates..." issue in ATS.

Upon inspecting the console via MS Edge Dev Tools (I'm using the latest version of Edge x64 – at the moment I'm writing this issue, the version number is 124.0.2478.80), the following error repeats itself:

main.js:214 Uncaught TypeError: Cannot read properties of undefined (reading 'relative_radius')
at refresh (main.js:214:90)
at Object.success (main.js:82:13)
at fire (jquery-3.1.1.js:3305:31)
at Object.fireWith [as resolveWith] (jquery-3.1.1.js:3435:7)
at done (jquery-3.1.1.js:9242:14)
at XMLHttpRequest. (jquery-3.1.1.js:9484:9)

Deleting the relative_radius variable in this particular line solves the issue. Maybe we don't need that variable for ATS at all?

@Koenvh1
Copy link
Owner

Koenvh1 commented May 5, 2024

Hmm, I've quickly tried reproducing it, but have not managed to do so so far.

@Koenvh1
Copy link
Owner

Koenvh1 commented May 13, 2024

Does this fix it? ae25bb8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants