It is currently 21 Nov 2018, 14:40
   
Text Size

seeing what cards the ai has in its hand

Moderators: melvin, beholder, ubeefx, 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: 587
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: 1043
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 452 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: 587
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: 1043
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 452 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: 1043
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 452 times


Return to Magarena

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form