It is currently 21 Aug 2025, 09:17
   
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 PowerClaws » 14 Jul 2012, 08:43

I think this is something to do with java and not forge, but whenever something reaches an obscenely big number (i think at one point in the range of about 1800000000) it becomes negative, would there be any way to stop/prevent this from occuring?

I ask coz i had a deck with Ajani Goldmane, True Conviction, Boon Reflection and Rhox Faithmender and reached such a huge life total, that i lost when it changed to a negative
PowerClaws
 
Posts: 131
Joined: 30 Jan 2012, 11:33
Has thanked: 28 times
Been thanked: 8 times

Re: Bug Reports (snapshot builds)

Postby Hellfish » 14 Jul 2012, 10:28

2147483647 life,power,toughness,counter amount among other things isn't enough??? :shock:

We could change to using BigInteger everywhere instead of Integer, which would limit these only by your memory amount but I think this would be too much work for too little gain.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Bug Reports (snapshot builds)

Postby Milod » 14 Jul 2012, 12:53

activated desolated lighthouse to draw a card then discard a card in ai turn i drawed temporal mastery and asked me to use its miracle cost and i dit then discarded a card is this the corect way?
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 14 Jul 2012, 14:38

Milod wrote:activated desolated lighthouse to draw a card then discard a card in ai turn i drawed temporal mastery and asked me to use its miracle cost and i dit then discarded a card is this the corect way?
This is how it should work. You have to reveal it right away and then a trigger hits the stack once the Static Effects are run when the current ability finishes resolving. Then once the trigger is resolving you can pay for the spell if it's still in your hand. http://forums.mtgsalvation.com/showthread.php?t=417614
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 moomarc » 14 Jul 2012, 16:16

Hellfish wrote:2147483647 life,power,toughness,counter amount among other things isn't enough??? :shock:

We could change to using BigInteger everywhere instead of Integer, which would limit these only by your memory amount but I think this would be too much work for too little gain.
Perhaps there should be a catch for this that causes the AI player to concede? Seems more reasonable than changing loads of code if the player hasn't decided to win by the time their life exceeds a billion.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 14 Jul 2012, 16:24

moomarc wrote:Perhaps there should be a catch for this that causes the AI player to concede? Seems more reasonable than changing loads of code if the player hasn't decided to win by the time their life exceeds a billion.
Why would the AI Player concede? It makes sense to catch the attempted overflow, and set it at the MAX Value instead.
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 moomarc » 14 Jul 2012, 16:37

friarsol wrote:
moomarc wrote:Perhaps there should be a catch for this that causes the AI player to concede? Seems more reasonable than changing loads of code if the player hasn't decided to win by the time their life exceeds a billion.
Why would the AI Player concede? It makes sense to catch the attempted overflow, and set it at the MAX Value instead.
I was just thinking that usually in these situations the player is in control and just going for the mmmmonster kill. But I suppose there's enough instant win/lose scenarios that a straightforward concession is probably wrong. So your solution is definitely better.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Bug Reports (snapshot builds)

Postby PowerClaws » 15 Jul 2012, 14:02

When i start a new game (doesnt matter what the decks are) the game loads the match screen, but doesnt set the field up, flip the coin, etc and the cards in the library, hand, grave, etc and all the types of mana have 99 in the boxes, when i click any button, i get the following error
This works with the marble theme, when i set the theme to default, the error doesnt occur

Error Message | Open
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.2.11-SNAPSHOT

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_31 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NullPointerException
at forge.gui.GuiInput.selectButtonOK(GuiInput.java:92)
at forge.gui.match.controllers.CMessage$2.actionPerformed(CMessage.java:52)
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$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$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)
PowerClaws
 
Posts: 131
Joined: 30 Jan 2012, 11:33
Has thanked: 28 times
Been thanked: 8 times

Re: Bug Reports (snapshot builds)

Postby moomarc » 15 Jul 2012, 16:01

PowerClaws wrote:When i start a new game (doesnt matter what the decks are) the game loads the match screen, but doesnt set the field up, flip the coin, etc and the cards in the library, hand, grave, etc and all the types of mana have 99 in the boxes, when i click any button, i get the following error
This works with the marble theme, when i set the theme to default, the error doesnt occur
Just a guess at this stage but I think the main sprite icons wasn't adjusted when the default icon changed so the code points to a pixel that doesn't exist.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Bug Reports (snapshot builds)

Postby Jaedayr » 15 Jul 2012, 18:43

1.2.10-20120712.110201-17

Early in a game, AI has Kor Duelist equipped with Spidersilk Net and Basilisk Collar. It is a 5/7 creature. AI has no cards in graveyard and no cards exiled. I do not have debug turned on so I don't know if there are cards in deck that are causing this. I am playing quest opponent Wonder Woman (I think) mono-W with equipment. I killed the Duelist.

Two turns later AI played Myr Adapter and attached Spidersilk Net to it and it got proper enhancements. The following turn AI attached Basilisk Collar to it and with both equipments on it, it was 7/9.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Bug Reports (snapshot builds)

Postby Jaedayr » 15 Jul 2012, 19:10

1.2.10-20120712.110201-17
AI cast Eyeblight's Ending and destroyed my Rune-Tail, Kitsune Ascendent which was still in my hand.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 15 Jul 2012, 19:35

Jaedayr wrote:1.2.10-20120712.110201-17

Early in a game, AI has Kor Duelist equipped with Spidersilk Net and Basilisk Collar. It is a 5/7 creature. AI has no cards in graveyard and no cards exiled. I do not have debug turned on so I don't know if there are cards in deck that are causing this. I am playing quest opponent Wonder Woman (I think) mono-W with equipment. I killed the Duelist.

Two turns later AI played Myr Adapter and attached Spidersilk Net to it and it got proper enhancements. The following turn AI attached Basilisk Collar to it and with both equipments on it, it was 7/9.
Didn't someone already say below that Basilisk Collar was giving inappropriate PT bonuses?
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 ArsenalNut » 15 Jul 2012, 19:38

Jaedayr wrote:1.2.10-20120712.110201-17

Early in a game, AI has Kor Duelist equipped with Spidersilk Net and Basilisk Collar. It is a 5/7 creature. AI has no cards in graveyard and no cards exiled. I do not have debug turned on so I don't know if there are cards in deck that are causing this. I am playing quest opponent Wonder Woman (I think) mono-W with equipment. I killed the Duelist.

Two turns later AI played Myr Adapter and attached Spidersilk Net to it and it got proper enhancements. The following turn AI attached Basilisk Collar to it and with both equipments on it, it was 7/9.
Sloth fixed Basilisk Collar on 7/12.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Bug Reports (snapshot builds)

Postby Chris H. » 15 Jul 2012, 20:06

friarsol wrote:
Jaedayr wrote:1.2.10-20120712.110201-17

Early in a game, AI has Kor Duelist equipped with Spidersilk Net and Basilisk Collar. It is a 5/7 creature. AI has no cards in graveyard and no cards exiled. I do not have debug turned on so I don't know if there are cards in deck that are causing this. I am playing quest opponent Wonder Woman (I think) mono-W with equipment. I killed the Duelist.

Two turns later AI played Myr Adapter and attached Spidersilk Net to it and it got proper enhancements. The following turn AI attached Basilisk Collar to it and with both equipments on it, it was 7/9.
 
Didn't someone already say below that Basilisk Collar was giving inappropriate PT bonuses?
 
Looks like Jaedayr is using a snapshot build from before the last beta release. Current snapshots are

1.2.11-{date}.{time}-{release num}
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: Bug Reports (snapshot builds)

Postby DeadSpeak » 19 Jul 2012, 05:33

Hey everyone...

Using the latest snapshot (forge-1.2.11-20120718.105458-4) I'm having some problems with Huntmaster of the Fells and Birthing Pod.

When I activate Birthing Pod and sacrifice the unflipped Huntmaster of the Fells to it, Forge will only let me find a 1 CMC creature instead of the 5 CMC creature I was actually looking for.

I assume this might have something to do with the "flip-sided" nature of Huntmaster of the Fells, and I know that if the card had been flipped to the Ravager of the Fells side, this is how it should be.

Later,

DeadSpeak
DeadSpeak
 
Posts: 104
Joined: 25 Dec 2009, 00:14
Location: Denmark
Has thanked: 4 times
Been thanked: 3 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 21 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form