It is currently 10 Nov 2025, 12:30
   
Text Size

Any method to debug long "Waiting for opponent..." delays?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Any method to debug long "Waiting for opponent..." delays?

Postby elricod » 15 Mar 2023, 22:45

It doesn't happen with all decks or board states. But several turns into a reasonably complicated 4-player EDH game, the computer may stay on "Waiting for opponent" for 15-20 seconds per resolution, which gets rough when there are 30 triggers on the stack.

Not asking for a debug from developers. I am more looking for additional switches or parameters to pass Forge when I launch, to increase the verbosity of the forge.log or a similar location.

I am hoping if I can find which decision tree the AI is getting stuck on, I can avoid decks with those cards entirely.
elricod
 
Posts: 18
Joined: 18 Mar 2011, 02:01
Has thanked: 6 times
Been thanked: 0 time

Re: Any method to debug long "Waiting for opponent..." delay

Postby resonantmadly » 12 Nov 2024, 01:43

You can increase verbosity by launching Forge with the -debug flag, which may provide more detailed logs. Additionally, check the forge.log file, typically located in the Forge installation directory. This can give you insights into where the AI is getting stuck, especially around complex triggers. To troubleshoot specific deck issues, you might try isolating cards or mechanics that trigger delays by testing the decks in smaller games or using a simplified board state.
resonantmadly
 
Posts: 2
Joined: 12 Nov 2024, 01:41
Has thanked: 0 time
Been thanked: 2 times

Re: Any method to debug long "Waiting for opponent..." delay

Postby mariahcarey » 03 Nov 2025, 04:14

resonantmadly wrote:You can increase verbosity by launching Forge with the -debug flag, which may provide more detailed logs. Additionally, check the forge.log file, typically located in the Forge installation directory. This can give you insights into where the AI is getting stuck, Clashdleespecially around complex triggers. To troubleshoot specific deck issues, you might try isolating cards or mechanics that trigger delays by testing the decks in smaller games or using a simplified board state.
When launching with the -debug flag, do I need to add it right after the .jar command (like java -jar forge-gui-desktop.jar -debug), or is there a specific syntax or launcher option for it?
mariahcarey
 
Posts: 9
Joined: 02 May 2024, 08:05
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 11 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 11 users online :: 0 registered, 0 hidden and 11 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 11 guests

Login Form