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

Error: Awaiting User ID to appear in log. #407

Open
musicluvah1981 opened this issue Jun 19, 2024 · 17 comments
Open

Error: Awaiting User ID to appear in log. #407

musicluvah1981 opened this issue Jun 19, 2024 · 17 comments
Labels
question Further information is requested

Comments

@musicluvah1981
Copy link

How can I get this app to work?

I'm getting this error no matter what I do.

I've created an exclusion in windows defender - for the SharpMonoInjector.dll and the main folder itself.
I've confirmed the SharpMonoInjector.dll file is present.
I've confirmed the player.log file is present.
I've confirmed the location of my MTGA_DATA folder (using default, not steam)
I've confirmed I have log files for games.
I've lauched the app before launching MTGA itself.
I've manually deleted all app files and reinstalled.
I've restarted my PC after setting the exclusion.

Still not working :\

Sadly I've spent a couple of hours trying different things and can't get it to work.

@musicluvah1981 musicluvah1981 added the question Further information is requested label Jun 19, 2024
@pfdutot
Copy link

pfdutot commented Jun 20, 2024

From a quick look at the logs, it seems that getusercredentials.ts is looking for something that is not in my logs. The "authenticateResponse" is not in my log, instead the logging phase looks like:

[Accounts - Login] Attempting Login with credentials. [Accounts - Login] Logged in successfully. Display Name: XXXXXXX#99999 Connecting to Front Door: frontdoor-mtga-production-2024-38-10-2.w2.mtgarena.com:30010 [UnityCrossThreadLogger]FrontDoorConnectionAWS.Open {"creator":"ArenaGlobals.Constructor"} [UnityCrossThreadLogger]Got non-message event: Wizards.Arena.TcpConnection.TcpOpenedEvent [UnityCrossThreadLogger]==> LogBusinessEvents {"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","request":"{\"PlayerSocialId\":\"XXXXXXXXXXXXXXXXXXXXXXXXXX\",\"NewStatus\":\"Offline\",\"OldStatus\":\"Available\",\"SceneId\":\"EmptyScene\",\"Validity\":\"Verified\",\"EventType\":37,\"EventTime\":\"2024-06-20T13:11:04.9708572Z\"}"} [UnityCrossThreadLogger]==> LogBusinessEvents {"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","request":"{\"EventName\":\"ClientStartup\",\"Data\":{\"BuildVersion\":\"2024.38.10.6143\",\"RegionId\":\"USA\",\"InstallId\":\"NoInstallID-ffffffff-ffff-ffff-ffff-ffffffffffff\",\"PersonaId\":\"NoInstallID-ffffffff-ffff-ffff-ffff-ffffffffffff\",\"AccountId\":\"NoInstallID-ffffffff-ffff-ffff-ffff-ffffffffffff\",\"ClientPlatform\":\"SteamWindows\",\"AppSessionId\":\"ffffffff-ffff-ffff-ffff-ffffffffffff\"},\"EventType\":72,\"EventTime\":\"2024-06-20T13:11:05.1398625Z\"}"}

I cut only a few lines, and anonymized. Let me know if there is more you need to know here.

@pfdutot
Copy link

pfdutot commented Jun 20, 2024

Just to confirm, when hardcoding the correct values for my account line 19 and 20 in getusercredentials.ts, the plugins work correctly.

@Arokan13
Copy link

Could you elaborate on that, maybe with paths? I'm having the same problem!

@musicluvah1981
Copy link
Author

musicluvah1981 commented Aug 16, 2024 via email

@Starli0n
Copy link

I have the exact same issue

Any update ?

@rutexd
Copy link

rutexd commented Oct 5, 2024

+1

@Razviar
Copy link
Owner

Razviar commented Oct 5, 2024

I just checked, 2.2.33 Tracker is compatible with current MTGA client. Not sure why you are having this issue. How did you install MTGA? Using native MTGA installer / launcher or using some games platforms?

@rutexd
Copy link

rutexd commented Oct 5, 2024

Hm... Maybe i did something wrong then?

I installed MTGA using native installer, no game platform installed at all. I changed path. I restarted mtga and mtgap several times and it stuck at this caption. Played several games and looks like nothing is changed.

image

@Razviar
Copy link
Owner

Razviar commented Oct 5, 2024

Hm... Maybe i did something wrong then?

I installed MTGA using native installer, no game platform installed at all. I changed path. I restarted mtga and mtgap several times and it stuck at this caption. Played several games and looks like nothing is changed.

image

Have you enabled detailed logs in MTGA account settings?

@rutexd
Copy link

rutexd commented Oct 5, 2024

Yes, i did

@Razviar
Copy link
Owner

Razviar commented Oct 5, 2024

Can you please manually go to C:\Users\USER-NAME\AppData\LocalLow\Wizards Of The Coast\MTGA folder and check your Player file. It should contain row that starts from:
[MTGA.Pro Logger] **Userdata**

if you can't see MTGA.Pro Logger strings, then injection didn't work.

@rutexd
Copy link

rutexd commented Oct 5, 2024

I cant see logger strings in the Player.log. What's does that mean for me now?

@rutexd
Copy link

rutexd commented Oct 5, 2024

image
Something weird going on here...

@Razviar
Copy link
Owner

Razviar commented Oct 5, 2024

That means injection didn't happen, mod is not applied. Might be because of running the game as admin, antivirus blocked sharpmonoinjector, wrong mtga path... Hard to tell

@musicluvah1981
Copy link
Author

musicluvah1981 commented Oct 5, 2024 via email

@rutexd
Copy link

rutexd commented Oct 5, 2024

i tried the case to run both as administrator, mtgp doesnt regonize log at all and thinks no advanced logs are enabled.
image

@pfdutot
Copy link

pfdutot commented Dec 9, 2024

I just checked, 2.2.33 Tracker is compatible with current MTGA client. Not sure why you are having this issue. How did you install MTGA? Using native MTGA installer / launcher or using some games platforms?

Sorry I didn't check this conversation earlier. I am using a quite complex install as I am running the steam based wine emulator on a fringe linux distribution.

Anyway, to fix the error, I simply entered my credentials in my installation of the plugin in the file https://github.com/Razviar/mtgap/blob/master/src/app/log-parser/getusercredentials.ts directly at initialization on lines 19 and 20. This is definitely not a general solution, nor a solution for anyone who is not comfortable with code or log files. The plugin runs fine after this.

As I mentioned in my first messages, the code was trying through lines 63 to 83 to find both values in my logs, and my logs did not have the correct form. This may be related to my non-conventional installation though.

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

No branches or pull requests

6 participants