Page 3 of 4

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 17 Oct 2009, 20:56
by DennisBergkamp
Alright, I think I have fixed the mana part, I can play lands, tap them for mana and play spells with them and all that good stuff.

However, when I try opening the "Specify Card size" or "Display Options" I get the following error message:

Code: Select all
java.lang.NoSuchMethodError: javax.swing.JOptionPane.createDialog(Ljava/lang/String;)Ljavax/swing/JDialog;
 at forge.gui.ListChooser.show(ListChooser.java:152)
 at Gui_NewGame$LookAndFeelAction.actionPerformed(Gui_NewGame.java:597)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
 at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
 at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
 at apple.laf.CUIAquaMenuItem.doClick(CUIAquaMenuItem.java:119)
 at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
 at java.awt.Component.processMouseEvent(Component.java:5602)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
 at java.awt.Component.processEvent(Component.java:5367)
 at java.awt.Container.processEvent(Container.java:2010)
 at java.awt.Component.dispatchEventImpl(Component.java:4068)
 at java.awt.Container.dispatchEventImpl(Container.java:2068)
 at java.awt.Component.dispatchEvent(Component.java:3903)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
 at java.awt.Container.dispatchEventImpl(Container.java:2054)
 at java.awt.Window.dispatchEventImpl(Window.java:1801)
 at java.awt.Component.dispatchEvent(Component.java:3903)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I have a feeling Silly Freak might know how to fix this :)

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 17 Oct 2009, 21:28
by Niv-Mizzet
Whenever I start up Forge I get an error saying "The dynamic link library MSVCR71.dll could not be found in the specified path:" and then lists a lengthy file path. I never had this happen running an older version of Forge. It doesn't seem to have any actual impact on running the game that I can tell, but it is kind of annoying.

I'm running Win2000 Professional.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 17 Oct 2009, 21:36
by DennisBergkamp
I'm not sure about that latter error... strange.

As for the previous error, it happens because in 1.5 only the method createDialog(Component parent, String title); works. So I changed line 152 of ListChooser.java to:

Code: Select all
d = p.createDialog(p.getParent(),title);
and things seem to work. Is this the correct way to fix this, Silly Freak?

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 17 Oct 2009, 22:10
by silly freak
in german, we say "Jein", meaning "Ja und nein"/"yes and no"... I don't think the JOptionPane object has a parent, so it's probably equally right to use null directly. it makes no difference at all, of course. good spot, I really need a real JDK 1.5 for testing

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 17 Oct 2009, 22:20
by DennisBergkamp
Aha, sehr gut :) Yeah I wasn't sure what to use for the parent.

I'll try to release a new and fixed version ASAP (hopefully tonight), and it should work on 1.5 (along with a lot of other fixes).
I'm still in the middle of some major overhaul (Commands for a card will be stored in an ArrayList now instead of just one single Command).

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 17 Oct 2009, 23:02
by silly freak
i found it! at least in linux, with apt, you can get a 1.5 JRE by using
Code: Select all
apt-get install sun-java5-jre
however, this will also set the symlinks in /usr/bin, so do the following:
Code: Select all
rm /usr/bin/java
ln -s <your newest java>/jre/bin/java /usr/bin/java
rm /usr/bin/javaws
ln -s <your newest java>/jre/bin/javaws /usr/bin/javaws
rm /usr/bin/java_vm
ln -s <your newest java>/jre/bin/java_vm /usr/bin/java_vm
finally, you can configure the JRE in eclipse by specifying the new JRE's directory, /usr/lib/jvm/java-1.5.0-sun

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 18 Oct 2009, 00:16
by Chris H.
Chris H. wrote:And thanks for adding flashback to Firebolt and Strangling Soot. I hope this means that other targeted flashback spells can now be added to Forge.
`
I found the code for the two above spells in CardFactory, and it appears that for a targeted Flashback spell to work the entire spell including the Flashback code must be included in CardFactory.

I see that there is two SpellAbilities listed. It is interesting, but I have not yet had a chance to check it out. :)

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 18 Oct 2009, 00:19
by Chris H.
I was examining the new deck editor filter check boxes, I like this new addition. I did notice that these improvements have not yet made it to the quest deck editor.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 18 Oct 2009, 01:55
by DennisBergkamp
Chris H. wrote:
Chris H. wrote:And thanks for adding flashback to Firebolt and Strangling Soot. I hope this means that other targeted flashback spells can now be added to Forge.
`
I found the code for the two above spells in CardFactory, and it appears that for a targeted Flashback spell to work the entire spell including the Flashback code must be included in CardFactory.

I see that there is two SpellAbilities listed. It is interesting, but I have not yet had a chance to check it out. :)
Yes, exactly. It's not possible to do this with the current way of adding flashback (which adds an Ability that does something like AllZone.Stack.add(card.getSpellAbility()[0]); , forcing stuff onto the stack like that does not work if a target is required).
New targeted flashback spells can still be added, but it's just not quite as easy. What needs to happen is to create a separate Ability, which is basically identical to the original one, but has a different casting cost and different canPlay() conditions (the flashback SpellAbility can only be played from the grave). The way this is coded, is actually very similar to the buyback cards that are currently in the game, just look at the code of Capsize or Whispers of the Muse.

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 18 Oct 2009, 02:05
by DennisBergkamp
Chris H. wrote:I was examining the new deck editor filter check boxes, I like this new addition. I did notice that these improvements have not yet made it to the quest deck editor.
Yes, this is an awesome addition by Nantuko, I could probably add them into the quest deckeditor too.
However, one thing I noticed today when testing it on my friend's Mac is that the font is very different. It didn't even show half as much text as it does on the PC. In fact, I remember the bottom row showed "... ... B R ... ..." instead of "W U B R G C". Does your version look like that too, Chris? Check screenshot for what it's supposed to look like...

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 18 Oct 2009, 02:33
by Chris H.
DennisBergkamp wrote:Yes, this is an awesome addition by Nantuko, I could probably add them into the quest deckeditor too.
However, one thing I noticed today when testing it on my friend's Mac is that the font is very different. It didn't even show half as much text as it does on the PC. In fact, I remember the bottom row showed "... ... B R ... ..." instead of "W U B R G C". Does your version look like that too, Chris? Check screenshot for what it's supposed to look like...
`
Yep, all Macs and *nix machines share this problem. The awt font code does not use real fonts like Times or Courier. Instead, a logical font is used. Check out this link:

Gui_NewGame.java improvements for Macs

This will show you more info and there is a before and after picture with the mods that I made to the Gui_NewGame.java file. You can download the changed Gui_NewGame.java file and include it in the next update if you would like to. :)

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 18 Oct 2009, 02:50
by DennisBergkamp
Ahh, alright, I'll add this to future versions :)

Check this link for the next version, which should work for 1.5 again:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=1731

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 24 Oct 2009, 03:40
by Resonantg
If I miss downloading an update, is it included in future updates?

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 24 Oct 2009, 07:17
by Sloth
Resonantg wrote:If I miss downloading an update, is it included in future updates?
Answer: Yes. The unofficial updates are in fact updated full versions (unless Dennis forgets to include something again :D ).

Re: MTGForge 10/15 (unofficial BETA) version

PostPosted: 24 Oct 2009, 11:50
by Chris H.
Yep, we are a good group of people, disorganized yes, and things sometimes get lost in the shuffle. Then again, this helps to keep the peeps visiting this site and reading/posting messages and that is a good thing.

Oh, and if people want the most up-to-date quest files they can get them at:

QuestFiles 10-07-2009.zip