Bug Reports (snapshot builds)
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Bug Reports (snapshot builds)
by 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
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.
The problem area is in PlayArea.java in wrap() ll 343-350ish
- Code: Select all
rows.add(insertIndex == -1 ? rows.size() : insertIndex, currentRow);
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)
by 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)
by Sloth » 04 Apr 2012, 15:59
I think this has changed the displaying of phases (i.e. "COMBAT_DECLARE_BLOCKERS" instead of "Declare Blockers"). Was that necessary?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.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Bug Reports (snapshot builds)
by Max mtg » 04 Apr 2012, 18:26
It's not really a problem.Sloth wrote:I think this has changed the displaying of phases (i.e. "COMBAT_DECLARE_BLOCKERS" instead of "Declare Blockers"). Was that necessary?
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)
by friarsol » 04 Apr 2012, 18:28
I think displaying of Strings are better without all CAPS and Underscores for sure.Max mtg wrote:It's not really a problem.Sloth wrote:I think this has changed the displaying of phases (i.e. "COMBAT_DECLARE_BLOCKERS" instead of "Declare Blockers"). Was that necessary?
Do you think that strings were better?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Bug Reports (snapshot builds)
by Max mtg » 04 Apr 2012, 19:49
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.friarsol wrote:I think displaying of Strings are better without all CAPS and Underscores for sure.
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)
by Sloth » 04 Apr 2012, 21:45
This line in InputPassPriority:Max mtg wrote:Can you point the line of code where that caps are displayed to UI?
- Code: Select all
sb.append("Phase: ").append(phase).append("\n");
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Bug Reports (snapshot builds)
by 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?
Re: Bug Reports (snapshot builds)
by 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)
by 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)
by Max mtg » 05 Apr 2012, 04:00
This will do the correct output:Sloth wrote:This line in InputPassPriority:
- Code: Select all
sb.append("Phase: ").append(phase).append("\n");
- Code: Select all
sb.append("Phase: ").append(phase.Name).append("\n");
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)
by 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?
Re: Bug Reports (snapshot builds)
by Sloth » 05 Apr 2012, 21:21
Fixed! Thanks Buhmann.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.
Both fixed! Thanks sol.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.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Bug Reports (snapshot builds)
by 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
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)
by 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.
-
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
Who is online
Users browsing this forum: Google [Bot] and 14 guests