It is currently 16 Apr 2024, 04:17
   
Text Size

seeing what cards the ai has in its hand

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

seeing what cards the ai has in its hand

Postby muppet » 26 May 2018, 15:28

These used to be visible if you wanted to see them. Is there an admin command I can use to see the ai's hand. It is useful for debugging cards and seeing what mad things it is doing.

e.g. currently looking at the mad plays with arcbound ravager and similar sacrifice permanents.
muppet
Tester
 
Posts: 590
Joined: 03 Aug 2011, 14:37
Has thanked: 33 times
Been thanked: 30 times

Re: seeing what cards the ai has in its hand

Postby melvin » 27 May 2018, 00:48

Trying clicking on the icon for AI's hand or pressing 'S'. The 'S' key is described in the README.txt file under Duel Screen.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: seeing what cards the ai has in its hand

Postby muppet » 27 May 2018, 07:44

yes that is how it used to work but now the cards are just grey backs.
muppet
Tester
 
Posts: 590
Joined: 03 Aug 2011, 14:37
Has thanked: 33 times
Been thanked: 30 times

Re: seeing what cards the ai has in its hand

Postby melvin » 27 May 2018, 09:28

I can confirm that it only shows the card back. Earlier on I was trying it out in debug mode and it works.

Looks like it was changed in https://github.com/magarena/magarena/co ... ae4c0a36ed to work only in debug mode and a setting was supposed to be added to manually enable it (https://github.com/magarena/magarena/issues/217) but is not completed.

For now, you can need to enable debug mode to use this feature. Find the Magarena.jar and run it using
Code: Select all
java -Xms256M -Xmx512M -noverify -Ddebug=true -jar Magarena.jar
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: seeing what cards the ai has in its hand

Postby melvin » 27 May 2018, 09:31

I have fixed this for the next version, thanks for the report.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times


Return to Magarena

Who is online

Users browsing this forum: No registered users and 27 guests


Who is online

In total there are 27 users online :: 0 registered, 0 hidden and 27 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 27 guests

Login Form