It is currently 22 Aug 2025, 11:59
   
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 Bundy » 04 Nov 2012, 12:05

forge-1.3.1-20121029.122741-2
I won the first round, then when the second round starts this error pops up
Code: Select all
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
   http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.

null


Version:
Forge version 1.3.1-SNAPSHOT

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.7.0_09 Vendor: Oracle Corporation

Detailed error trace:
java.lang.NullPointerException
   at forge.game.player.ComputerUtil.payManaCost(ComputerUtil.java:600)
   at forge.game.player.ComputerUtil.canPayCost(ComputerUtil.java:498)
   at forge.card.abilityfactory.AbilityFactoryEffect.effectDoTriggerAI(AbilityFactoryEffect.java:372)
   at forge.card.abilityfactory.AbilityFactoryEffect$1AbilityEffect.doTrigger(AbilityFactoryEffect.java:109)
   at forge.control.input.InputMulligan.end(InputMulligan.java:157)
   at forge.control.input.InputMulligan.selectButtonOK(InputMulligan.java:74)
   at forge.gui.GuiInput.selectButtonOK(GuiInput.java:79)
   at forge.gui.match.controllers.CMessage$2.actionPerformed(CMessage.java:51)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
Bundy
 
Posts: 348
Joined: 17 Dec 2010, 17:32
Location: The netherlands
Has thanked: 23 times
Been thanked: 3 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 04 Nov 2012, 12:28

Diogenes wrote:This is a minor issue, and may not be addressable with the tools used to build Forge, but I just tried running the game on my secondary display for the first time and I've noticed that all pop-up boxes appear on my primary display. Hopefully this is an easy adjustment, but it's perfectly tolerable even if it can't be changed.
Yea I have a dual monitor setup on my gaming machine, I believe this is a swing issue, and I'm not sure if there's any setting we can set to try to lock that down.
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 Diogenes » 04 Nov 2012, 13:46

friarsol wrote:Yea I have a dual monitor setup on my gaming machine, I believe this is a swing issue, and I'm not sure if there's any setting we can set to try to lock that down.
Thanks for the reply. :)

Even though I post really infrequently here, I am following the daily builds. If I have the time somewhere in the next few months to learn the relevant languages, tools, and Forge's scripting system enough to help out, I think the first project I'd want to tackle (if there aren't any objections) would be to integrate all the pop-up windows' functionality into the present UI panels. I also think it would be useful to collapse the Dock, Prompt, and several of the pop-ups (like play/draw and mulligan choices) into a more universal command panel.

I'm not sure I can follow through on this, but it would solve the multiple display problem.
Diogenes
 
Posts: 201
Joined: 12 Jul 2012, 00:54
Has thanked: 39 times
Been thanked: 23 times

Re: Bug Reports (snapshot builds)

Postby Agetian » 04 Nov 2012, 14:53

For some reason if the AI plays an enchantment on my card that results in taking control of my card, for instance, Mind Control, I'm unable to choose the Mind Control card on the AI playfield (when hovering the mouse over it, it won't even highlight or show up in the card panel).

- Agetian
Agetian
Programmer
 
Posts: 3489
Joined: 14 Mar 2011, 05:58
Has thanked: 684 times
Been thanked: 572 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 04 Nov 2012, 17:08

Bundy wrote:forge-1.3.1-20121029.122741-2

I can't activate Geth, Lord of the Vault. I can choose it's ability when i click on it, but then nothing happens ...
r17844 fixes this issue
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 Diogenes » 04 Nov 2012, 17:14

Saw these in today's daily, both extremely minor issues:

Tokens are grouped into stacks by token name, even if the tokens have different characteristics. For instance, if you're making 1/1 white Spirits with flying and the opponent has a Forbidden Orchard, your flying and non-flying spirits are intermingled.

Also, the tokens made by Crib Swap have the wrong name. They should be Shapeshifter tokens with the Changeling ability, not Changeling tokens. Easy fix:

Crib Swap | Open
Name:Crib Swap
ManaCost:2 W
Types:Tribal Instant Shapeshifter
Text:no text
S:Mode$ Continuous | EffectZone$ All | Affected$ Card.Self | CharacteristicDefining$ True | AddType$ AllCreatureTypes | Description$ Changeling (This card is every creature type at all times.)
A:SP$ ChangeZone | Cost$ 2 W | ValidTgts$ Creature | TgtPrompt$ Select target creature | Origin$ Battlefield | Destination$ Exile | IsCurse$ True | SubAbility$ DBToken | SpellDescription$ Exile target creature. Its controller puts a 1/1 colorless Shapeshifter creature token with changeling onto the battlefield.
SVar:DBToken:DB$Token | TokenImage$ C 1 1 Shapeshifter | TokenColors$ Colorless | TokenAmount$ 1 | TokenName$ Shapeshifter | TokenTypes$ Creature,Shapeshifter | TokenPower$ 1 | TokenToughness$ 1 | TokenStaticAbilities$ Changeling | TokenOwner$ TargetedController
SVar:Changeling:Mode$ Continuous | EffectZone$ All | Affected$ Card.Self | CharacteristicDefining$ True | AddType$ AllCreatureTypes | Description$ Changeling (This card is every creature type at all times.)
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/crib_swap.jpg
SetInfo:LRW|Uncommon|http://magiccards.info/scans/en/lw/11.jpg
Oracle:Changeling (This card is every creature type at all times.)\nExile target creature. Its controller puts a 1/1 colorless Shapeshifter creature token with changeling onto the battlefield.
End


edit: attachment removed
Last edited by Diogenes on 07 Nov 2012, 08:16, edited 4 times in total.
Diogenes
 
Posts: 201
Joined: 12 Jul 2012, 00:54
Has thanked: 39 times
Been thanked: 23 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 04 Nov 2012, 17:14

Milod wrote:corpsejack menace doesent work for the +counters
It actually works.

Give more details on the situation when corpsejack didn't add p1p1 counters
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 Max mtg » 04 Nov 2012, 17:37

Aigloblam wrote:Recently, for some reason i cannot block ANYTHING. I've played the last 20+ games and have not been able to block once. Im not sure whats going on...I would download a new Forge, but im not yet willing to lose my awesome streak in Quest mode.
Works for me (using latest svn build)

Would you provide some steps to reproduce the problem?
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 Nov 2012, 17:39

r17844
It looks like Mana Abilities aren't undone if you cancel out of a spell.
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 Nov 2012, 17:45

friarsol wrote:r17844
It looks like Mana Abilities aren't undone if you cancel out of a spell.
I'm aware, but can't fix it now.

If you know how to fix that, feel free to do so, otherwise I'll take a look next week.
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 Diogenes » 04 Nov 2012, 17:45

Verduran Enchantress and Mesa Enchantress have slightly incorrect descriptions of their triggered ability ("draw a card" instead of "you may draw a card".) The ability works correctly, though. Again, very minor alterations:

Mesa Enchantress | Open
Name:Mesa Enchantress
ManaCost:1 W W
Types:Creature Human Druid
Text:no text
PT:0/2
T:Mode$ SpellCast | ValidCard$ Enchantment | ValidActivatingPlayer$ You | Execute$ TrigDraw | TriggerZones$ Battlefield | OptionalDecider$ You | TriggerDescription$ Whenever you cast an enchantment spell, you may draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
SVar:RemRandomDeck:True
DeckNeeds:Type$Enchantment
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mesa_enchantress.jpg
SetInfo:M10|Rare|http://magiccards.info/scans/en/m10/20.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/25.jpg
SetInfo:PLC|Rare|http://magiccards.info/scans/en/pc/26.jpg
Oracle:Whenever you cast an enchantment spell, you may draw a card.
End


Verduran Enchantress | Open
Name:Verduran Enchantress
ManaCost:1 G G
Types:Creature Human Druid
Text:no text
PT:0/2
T:Mode$ SpellCast | ValidCard$ Enchantment | ValidActivatingPlayer$ You | Execute$ TrigDraw | TriggerZones$ Battlefield | OptionalDecider$ You | TriggerDescription$ Whenever you cast an enchantment spell, you may draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
SVar:RemRandomDeck:True
DeckNeeds:Type$Enchantment
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/verduran_enchantress.jpg
SetInfo:8ED|Rare|http://magiccards.info/scans/en/8e/285.jpg
SetInfo:LEA|Rare|http://magiccards.info/scans/en/al/131.jpg
SetInfo:LEB|Rare|http://magiccards.info/scans/en/be/131.jpg
SetInfo:7ED|Rare|http://magiccards.info/scans/en/7e/280.jpg
SetInfo:5ED|Rare|http://magiccards.info/scans/en/5e/199.jpg
SetInfo:4ED|Rare|http://magiccards.info/scans/en/4e/165.jpg
SetInfo:9ED|Rare|http://magiccards.info/scans/en/9e/279.jpg
SetInfo:6ED|Rare|http://magiccards.info/scans/en/6e/264.jpg
SetInfo:3ED|Rare|http://magiccards.info/scans/en/rv/130.jpg
SetInfo:2ED|Rare|http://magiccards.info/scans/en/un/131.jpg
Oracle:Whenever you cast an enchantment spell, you may draw a card.
End


edit: attachments removed
Last edited by Diogenes on 07 Nov 2012, 08:16, edited 1 time in total.
Diogenes
 
Posts: 201
Joined: 12 Jul 2012, 00:54
Has thanked: 39 times
Been thanked: 23 times

Re: Bug Reports (snapshot builds)

Postby Bundy » 04 Nov 2012, 20:43

forge-1.3.1-20121029.122741-2 (forgot do download a newer snapshot ...)

Computer activates Steel Hellkite without dealing combat damage with it.
Bundy
 
Posts: 348
Joined: 17 Dec 2010, 17:32
Location: The netherlands
Has thanked: 23 times
Been thanked: 3 times

Re: Bug Reports (snapshot builds)

Postby swordshine » 05 Nov 2012, 01:59

When Omniscicence is on the battlefield, cards with kicker/multikicker can't cast without paying its mana cost.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby Diogenes » 05 Nov 2012, 11:54

I almost feel guilty posting this because it isn't a bug, it's just weird. As of today's daily build, using the Generate Mana command puts 7 of each mana type into your pool instead of 10. Just thought I'd mention it in case it indicates numbers moving around when they weren't supposed to.
Diogenes
 
Posts: 201
Joined: 12 Jul 2012, 00:54
Has thanked: 39 times
Been thanked: 23 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 05 Nov 2012, 12:21

Diogenes wrote:I almost feel guilty posting this because it isn't a bug, it's just weird. As of today's daily build, using the Generate Mana command puts 7 of each mana type into your pool instead of 10. Just thought I'd mention it in case it indicates numbers moving around when they weren't supposed to.
It works as intended. After mana-giving part of abilities was changed, it became impossible to give N * (W U R B G 1) mana, instead one has to specify a full cost in constructor. A full string then would become too long, so I kept 7 of each mana only, even 5 of each mana would be enough in most cases.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: DanielKarie and 22 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 23 users online :: 1 registered, 0 hidden and 22 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: DanielKarie and 22 guests

Login Form