mtgap icon indicating copy to clipboard operation
mtgap copied to clipboard

Error: Awaiting User ID to appear in log.

Open musicluvah1981 opened this issue 1 year ago • 17 comments

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 avatar Jun 19 '24 19:06 musicluvah1981

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 avatar Jun 20 '24 14:06 pfdutot

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

pfdutot avatar Jun 20 '24 18:06 pfdutot

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

Arokan13 avatar Aug 16 '24 00:08 Arokan13

The solution is to make sure you're running the game as administrator and the app as administrator.

On Thu, Aug 15, 2024, 8:29 PM Arokan13 @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Razviar/mtgap/issues/407#issuecomment-2292507498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBYR6D6YKPJYDN3WOPTPHDZRVBXZAVCNFSM6AAAAABJSTXBXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSGUYDONBZHA . You are receiving this because you authored the thread.Message ID: @.***>

musicluvah1981 avatar Aug 16 '24 11:08 musicluvah1981

I have the exact same issue

Any update ?

Starli0n avatar Sep 26 '24 17:09 Starli0n

+1

rutexd avatar Oct 05 '24 15:10 rutexd

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?

Razviar avatar Oct 05 '24 15:10 Razviar

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

rutexd avatar Oct 05 '24 16:10 rutexd

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?

Razviar avatar Oct 05 '24 16:10 Razviar

Yes, i did

rutexd avatar Oct 05 '24 16:10 rutexd

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.

Razviar avatar Oct 05 '24 16:10 Razviar

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

rutexd avatar Oct 05 '24 16:10 rutexd

image Something weird going on here...

rutexd avatar Oct 05 '24 16:10 rutexd

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

Razviar avatar Oct 05 '24 16:10 Razviar

The fix for me was to make sure both the app and mtg game are running as administrator.

On Sat, Oct 5, 2024, 12:48 PM Razviar @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/Razviar/mtgap/issues/407#issuecomment-2395114814, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBYR6BM7Y3XOB7TGNWENYLZ2AJ57AVCNFSM6AAAAABJSTXBXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGEYTIOBRGQ . You are receiving this because you authored the thread.Message ID: @.***>

musicluvah1981 avatar Oct 05 '24 19:10 musicluvah1981

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

rutexd avatar Oct 05 '24 19:10 rutexd

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.

pfdutot avatar Dec 09 '24 16:12 pfdutot