It is currently 18 Aug 2025, 05:32
   
Text Size

Bug Reports (snapshot builds)

Post MTG Forge Related Programming Questions Here

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

Re: Bug Reports (snapshot builds)

Postby friarsol » 03 Apr 2012, 03:08

I think I just repro'd the issue of quest matches not loading all the cards. I'm not able to reproduce 100% of the time, but I got a crash and then didn't move onto a proper quest in this situation:

The problem area is in PlayArea.java in wrap() ll 343-350ish

Code: Select all
rows.add(insertIndex == -1 ? rows.size() : insertIndex, currentRow);
These were the values of the variables when I got an ArrayIndexOutOfBounds Exception, which is failed to be handled, and then (I believe) nothing is drawn

rows => ArrayList, size of 1. First Element is null.
current Row => [[Plant Wall]]
insertIndex => 0

Hopefully this will provide some extra information, and we can finally fix this strange issue.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 03 Apr 2012, 19:27

I have commited a change that turns phaseType into an enum instead of strings. This might break something. Please do not kill me for that.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby Sloth » 04 Apr 2012, 15:59

Max mtg wrote:I have commited a change that turns phaseType into an enum instead of strings. This might break something. Please do not kill me for that.
I think this has changed the displaying of phases (i.e. "COMBAT_DECLARE_BLOCKERS" instead of "Declare Blockers"). Was that necessary?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 04 Apr 2012, 18:26

Sloth wrote:I think this has changed the displaying of phases (i.e. "COMBAT_DECLARE_BLOCKERS" instead of "Declare Blockers"). Was that necessary?
It's not really a problem.
Do you think that strings were better?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 04 Apr 2012, 18:28

Max mtg wrote:
Sloth wrote:I think this has changed the displaying of phases (i.e. "COMBAT_DECLARE_BLOCKERS" instead of "Declare Blockers"). Was that necessary?
It's not really a problem.
Do you think that strings were better?
I think displaying of Strings are better without all CAPS and Underscores for sure.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 04 Apr 2012, 19:49

friarsol wrote:I think displaying of Strings are better without all CAPS and Underscores for sure.
Strings that were compared each time you needed to check what phase was at that moment were not good at all. Enum members are pointers that is number, much faster to compare, and also you can switch over them. This is about quality of code. Triggers need strictly typed parameters instead of maps of string to object, abilities would benefit as well.

I do some unobviuos things, but each time they lead to a greater good. The last thing being pets moved to data files.

The change you've noticed is a minor side-effect. Can you point the line of code where that caps are displayed to UI?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby Sloth » 04 Apr 2012, 21:45

Max mtg wrote:Can you point the line of code where that caps are displayed to UI?
This line in InputPassPriority:

Code: Select all
sb.append("Phase: ").append(phase).append("\n");
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Bug Reports (snapshot builds)

Postby Milod » 05 Apr 2012, 00:20

when phantasmal image(copy fiend hunter) leaves the battelfield it doesent return the exiled creature witch i used with fiend hunters ability or do i mis somehting here?
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 05 Apr 2012, 01:14

Silent Assassin description is weird. I haven't looked at the script, but it seems like it's almost listed twice.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 05 Apr 2012, 02:38

Playing the obnoxious R2D2 deck that bounces all your stuff. When the AI cast a Black Vise, I wasn't chosen as a target. Making the card pretty worthless.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 05 Apr 2012, 04:00

Sloth wrote:This line in InputPassPriority:
Code: Select all
sb.append("Phase: ").append(phase).append("\n");
This will do the correct output:
Code: Select all
sb.append("Phase: ").append(phase.Name).append("\n");
r15054
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby Milod » 05 Apr 2012, 20:00

when i use corrupted conscious on ai creature with sword of war and peace on it it only steals the creature and is it possible to make ai respond to stealing and re-enquip it to one of his other creatures?
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: Bug Reports (snapshot builds)

Postby Sloth » 05 Apr 2012, 21:21

Buhmann wrote:Issue:
I played several games with Human = Venser Duel Deck, AI = Koth Duel Deck.
Whenever AI plays Koth of the Hammer, when the spell is about to resolve, the game crashes providing following Crash Report.
This crash does only occur with Koth of the Hammer on AI's side.
Fixed! Thanks Buhmann.

friarsol wrote:Silent Assassin description is weird. I haven't looked at the script, but it seems like it's almost listed twice.
Playing the obnoxious R2D2 deck that bounces all your stuff. When the AI cast a Black Vise, I wasn't chosen as a target. Making the card pretty worthless.
Both fixed! Thanks sol.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Bug Reports (snapshot builds)

Postby jwallstone » 06 Apr 2012, 06:43

 Shelter has the wrong casting cost: It should be 1W instead of W
Last edited by Chris H. on 06 Apr 2012, 13:47, edited 2 times in total.
Reason: Mouse-over
jwallstone
 
Posts: 66
Joined: 02 Mar 2012, 06:16
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby Chris H. » 06 Apr 2012, 13:52

jwallstone wrote: Shelter has the wrong casting cost: It should be 1W instead of W
`
Fixed, thank you jwallstone.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: Google [Bot] and 14 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 15 users online :: 1 registered, 0 hidden and 14 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: Google [Bot] and 14 guests

Login Form