It is currently 17 Aug 2025, 03:10
   
Text Size

SVN Bug Reports

Post MTG Forge Related Programming Questions Here

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

Re: SVN Bug Reports

Postby Chris H. » 11 May 2011, 20:24

SoulStorm wrote:I'm not playing much at all currently. I just track the change log, and every once in awhile a new card or other change inspires me to design a new deck to play around with for a bit.
`
People's interest can change over time. I find myself spending far more time with dev efforts than actually playing the game but that is just where my head is at this time. :D

I personally played over 1,000 games in quest mode before I got tired of playing hundreds of games to build one deck. Now I just want to be able to tinker with new decks and test them against the creations of others.
`
People have requested a gauntlet mode in the past. It might be a good idea to separate the gauntlet type of mode from the quest mode as they may be different enough from each other to justify two different modes.

I would guess that a gauntlet mode could be selected at the New Game constructed deck option. We would select a deck as normal in a constructed mode game. We could add a new "Gauntlet" option in the deck selector for the computer.

Press the new game button and the computer would be given a random deck from the /res/quest/decks/ folder. If the human wins the match we could then give the human the choice to play against another one of the quest mode AI decks.

Now that we have a sizable number of quest decks this might be a fun way to test out our constructed mode decks.
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

Re: SVN Bug Reports

Postby Sloth » 11 May 2011, 20:30

Fnoed wrote:
Sloth wrote:Another question Fnoed:
Does the new metadata in deck files allow to add quest decks without an entry in the QuestBattle class?
Yes, this is the plan. There will be some additional lines that will indicate the difficulty of the deck, the description and the opponent image name. We should even be able to define quests' various parameters like initial board setup and reward data in there.
Good to hear! Recently I wanted to give an extra rare for players beating a very hard quest deck, but gave up after a while, unable to figure out how to get the difficulty of the deck at the end of the match.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby friarsol » 11 May 2011, 20:31

friarsol wrote:
Jaedayr wrote:r8521

This occurred in AI Main2.
There is an error in the card code for Flayer Husk:
Was Flayer Husk in play? We need more information so we can recreate problems like this.
Nevermind I got it. Just try to be as specific as you can about the game state so we can track things down.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby Fnoed » 11 May 2011, 20:40

Sloth wrote:Good to hear! Recently I wanted to give an extra rare for players beating a very hard quest deck, but gave up after a while, unable to figure out how to get the difficulty of the deck at the end of the match.
Would it make sense to get rid of deck tiers (easy, medium, hard, vhard) altogether and just embed all the reward info into the decks? (Perhaps even adjusted based on the deck, so that beating a red deck gives a booster that has, say, 50% red cards)
Perhaps add an XP system and minimum char level to encounter a particular deck so that it becomes more like an RPG?
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times

Re: SVN Bug Reports

Postby Corwin72 » 11 May 2011, 20:44

r8525
I am casting Sanity Grinding and the prompt says that 23 or 24 U symbols are found. Only 10 cards are milled from the AI.
This is the deck I was testing with.
| Open
[metadata]
Name=Sanity Grinder
Deck Type=constructed
[main]
4 Sanity Grinding|EVE
4 Twincast|M10
4 Counterspell|7ED
4 Glen Elendra Liege|SHM
4 Ghastlord of Fugue|SHM
4 Crag Puca|EVE
4 Misty Rainforest|ZEN
4 Scalding Tarn|ZEN
4 Overbeing of Myth|EVE
4 Dominus of Fealty|EVE
4 Wasp Lancer|SHM
16 Island|MBS
[sideboard]


And Twincast ing a Sanity Grinder did not do anything.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Bug Reports

Postby DennisBergkamp » 11 May 2011, 20:59

Fnoed wrote:
Sloth wrote:Good to hear! Recently I wanted to give an extra rare for players beating a very hard quest deck, but gave up after a while, unable to figure out how to get the difficulty of the deck at the end of the match.
Would it make sense to get rid of deck tiers (easy, medium, hard, vhard) altogether and just embed all the reward info into the decks? (Perhaps even adjusted based on the deck, so that beating a red deck gives a booster that has, say, 50% red cards)
Perhaps add an XP system and minimum char level to encounter a particular deck so that it becomes more like an RPG?
That would be the ideal way to do it... a quick, dirty and hacky method to make this work is just to store the difficulty of the deck in the Constant class.

So, you could just add Constant.Runtime.deckDifficulty (String or int), and set it before starting a match, then check it after the match is over.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Bug Reports

Postby friarsol » 11 May 2011, 22:30

Jaedayr wrote:Got the following as I was casting Carnifex Demon against quest Darrin Stevens easy. Checking the AI hand afterwards showed one Assert Authority, but I don't know if this actually caused the problem.
Looks like Assert Authority didn't set it's ValidTgts properly. Is fixed now.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby Jaedayr » 12 May 2011, 00:38

friarsol wrote:
Jaedayr wrote:r8521

This occurred in AI Main2.
There is an error in the card code for Flayer Husk:
Was Flayer Husk in play? We need more information so we can recreate problems like this.
No it was not in play.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby SoulStorm » 12 May 2011, 03:33

Chris H. wrote:I would guess that a gauntlet mode could be selected at the New Game constructed deck option. We would select a deck as normal in a constructed mode game. We could add a new "Gauntlet" option in the deck selector for the computer.

Press the new game button and the computer would be given a random deck from the /res/quest/decks/ folder. If the human wins the match we could then give the human the choice to play against another one of the quest mode AI decks.

Now that we have a sizable number of quest decks this might be a fun way to test out our constructed mode decks.
Chris, this is an awesome idea which I support, endorse, love, and want to see implemented yesterday! I'm also a little resentful that I didn't come up with the idea first. :mrgreen: Have the game track and store the number of consecutive wins for each deck. Sure, your affinity deck may be practically unbeatable, but what about your goblin deck? Then when people post decks to share, they can include this data as an indicator of how strong the deck is.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby friarsol » 12 May 2011, 03:40

Does the AI not seem to be using Equips anymore? I'm playing Grandpa Simpson and he has three Equips out, three creatures (including Kor Duelist) and i'm just swinging with a flyer mockingly past an unattached Kitesail.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby friarsol » 12 May 2011, 04:04

r8540
Asmira, Holy Avenger gains +1/+1 counters when my creature is destroyed. I think the Trigger Description is incorrect too.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Bug Reports

Postby Sloth » 12 May 2011, 12:43

I get this error when starting forge slapshot5:
| Open
AbilityFactory : SpellAbility was not created for Browse. Looking for API: Dig


Version:
Forge -- official beta: $Date: 2011-01-06 17:34:48 +0100 (Do, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_20 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.RuntimeException: AbilityFactory : SpellAbility was not created for Browse. Looking for API: Dig
at forge.card.abilityFactory.AbilityFactory.getAbility(Unknown Source)
at forge.card.cardFactory.CardFactory.getCard2(Unknown Source)
at forge.card.cardFactory.CardFactory.getCard(Unknown Source)
at forge.card.cardFactory.CardFactory.<init>(Unknown Source)
at forge.AllZone.<clinit>(Unknown Source)
at forge.Gui_NewGame$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Starting a game with a dig card also gives a similar error.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby SoulStorm » 12 May 2011, 12:59

:Rite of Passage

I had a Primeval Titan, Thrashing Wumpus, Wall of Reverence, and one Rite of Passage in play. I used the activated ability of Thrashing Wumpus twice, which dealt 2 points of damage to each creature as expected. However, instead of each of my creatures receiving 2 counters, my Primeval Titan received 6 counters. It seems that my Primeval Titan received the counters my Wall of Reverence and Thrashing Wumpus should have received.

I've seen effects similar to this before. If you attack with a Ronin Cliffrider equipped with a Sword of Kaldra, each creature controlled by the AI takes 1 point of damage, but only 1 creature will be exiled.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby slapshot5 » 12 May 2011, 13:52

Sloth wrote:I get this error when starting forge slapshot5:
| Open
AbilityFactory : SpellAbility was not created for Browse. Looking for API: Dig


Version:
Forge -- official beta: $Date: 2011-01-06 17:34:48 +0100 (Do, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_20 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.RuntimeException: AbilityFactory : SpellAbility was not created for Browse. Looking for API: Dig
at forge.card.abilityFactory.AbilityFactory.getAbility(Unknown Source)
at forge.card.cardFactory.CardFactory.getCard2(Unknown Source)
at forge.card.cardFactory.CardFactory.getCard(Unknown Source)
at forge.card.cardFactory.CardFactory.<init>(Unknown Source)
at forge.AllZone.<clinit>(Unknown Source)
at forge.Gui_NewGame$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Starting a game with a dig card also gives a similar error.
You must have caught me between checkins? Is it still happening for you?

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: SVN Bug Reports

Postby Sloth » 12 May 2011, 16:01

slapshot5 wrote:
Sloth wrote:I get this error when starting forge slapshot5:
| Open
AbilityFactory : SpellAbility was not created for Browse. Looking for API: Dig


Version:
Forge -- official beta: $Date: 2011-01-06 17:34:48 +0100 (Do, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_20 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.RuntimeException: AbilityFactory : SpellAbility was not created for Browse. Looking for API: Dig
at forge.card.abilityFactory.AbilityFactory.getAbility(Unknown Source)
at forge.card.cardFactory.CardFactory.getCard2(Unknown Source)
at forge.card.cardFactory.CardFactory.getCard(Unknown Source)
at forge.card.cardFactory.CardFactory.<init>(Unknown Source)
at forge.AllZone.<clinit>(Unknown Source)
at forge.Gui_NewGame$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Starting a game with a dig card also gives a similar error.
You must have caught me between checkins? Is it still happening for you?

-slapshot5
Dunno what it was. I just refreshed a lot and kept building and suddenly it was gone. Strange.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 20 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 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: No registered users and 20 guests

Login Form