Page 4 of 6

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 03:18
by DennisBergkamp
Alright, I think I got it working. I did the following steps:

1. Copied the entire res folder (minus the pics folder) of my local version to a new location. Then in the new location:
2. Overwrote my QuestData file with yours.
3. Edited cards.txt, and renamed AEther Membrane => Aether Membrane, I did the same in uncommon.txt in the quest folder.
4. Copied easy.txt, medium.txt and hard.txt from an old release (October 17th I believe) into the quest folder.
(I also added "Aether Membrane" in the combat code check in addition to "AEther Membrane", so it should actually work too, in this version. )

And it works! I gotta say, your 451 wins and 0 losses is pretty damn awesome (much better than my usual Quest stats) - RESPECT =D>
Anyway, here's a RARed version, just install this to a new folder, and let me know if it works for you as well...
Note, this version will be newer than the previous (12/14) version, and it will have a few extra cards + bug fixes, but also some untested stuff (poison counters, ... ).

EDIT: I guess Chris beat me to it :)

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 03:28
by DennisBergkamp
Chris' solution is a better one actually, since the next version will have AEther Membrane again, and also the new quest difficulty files.

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 03:33
by Chris H.
DennisBergkamp wrote:Note, this version will be newer than the previous (12/14) version, and it will have a few extra cards + bug fixes, but also some untested stuff (poison counters, ... ).

EDIT: I guess Chris beat me to it :)
`
I would guess that this is the newest SVN version. There are several nice things to check out in this version.

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 03:36
by freestorageaccount
Thanks Chris and Dennis! Now deck editing works and the streak can continue until the law of large numbers kicks in (with an entire new win mechanism, too!). I owe you big time for letting me enjoy homemade Magic. =D>

EDIT: I may have mentioned this before, but the counts for the colours on the bottom line of the deck editor screen behave somewhat unpredictably for multicoloured cards. The following, however, is new: If you use the ability of Transluminant, lose before end of turn, then start the next game of the match (I'm not sure if this bug occurs between matches), the token pops up in the new game! :lol:

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 04:08
by DennisBergkamp
You're welcome, good luck on reaching a 1,000 - 0 record :mrgreen: I think we should code some kind of rewards into reaching a thousand wins (or heck, 500 wins), by the way.

Wow, the Transluminant thing's a crazy bug... I think I know how to fix it though.

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 05:11
by freestorageaccount
I seem to be getting many 'Computer is thinking' messages and the following type of error in the 12/14 version:
Code: Select all
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
   http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
   mtgerror@yahoo.com


Java heap space


Version:
Forge -- official beta: 09/11/25, SVN revision: 199

Detailed error trace:
java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferByte.<init>(Unknown Source)
   at java.awt.image.ComponentSampleModel.createDataBuffer(Unknown Source)
   at java.awt.image.Raster.createWritableRaster(Unknown Source)
   at javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)
   at javax.imageio.ImageReader.getDestination(Unknown Source)
   at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
   at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
   at javax.imageio.ImageIO.read(Unknown Source)
   at javax.imageio.ImageIO.read(Unknown Source)
   at forge.ImageCache.getImage(ImageCache.java:77)
   at forge.GuiDisplayUtil.getCardPanel(GuiDisplayUtil.java:42)
   at forge.GuiDisplayUtil.getCardPanel(GuiDisplayUtil.java:36)
   at forge.GuiDisplay3$18.update(GuiDisplay3.java:644)
   at java.util.Observable.notifyObservers(Unknown Source)
   at java.util.Observable.notifyObservers(Unknown Source)
   at forge.MyObservable.updateObservers(MyObservable.java:10)
   at forge.DefaultPlayerZone.update(DefaultPlayerZone.java:111)
   at forge.DefaultPlayerZone.add(DefaultPlayerZone.java:41)
   at forge.GameAction.drawCard(GameAction.java:710)
   at forge.Input_Draw.showMessage(Input_Draw.java:58)
   at forge.GuiInput.setInput(GuiInput.java:24)
   at forge.GuiInput.update(GuiInput.java:18)
   at java.util.Observable.notifyObservers(Unknown Source)
   at java.util.Observable.notifyObservers(Unknown Source)
   at forge.MyObservable.updateObservers(MyObservable.java:10)
   at forge.Phase.nextPhase(Phase.java:144)
   at forge.Phase.nextPhase(Phase.java:148)
   at forge.Phase.nextPhase(Phase.java:148)
   at forge.Phase.nextPhase(Phase.java:148)
   at forge.GuiDisplay3$25.actionPerformed(GuiDisplay3.java:813)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
Does this have to do with my relatively large card pool or some other bug?

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 05:15
by DennisBergkamp
I think it's because of HQ pictures.
Running this in your command prompt should help things:

java -Xms64m -Xmx512m

This tells your java to allow for using more memory, the HQ pictures take up a lot more.

EDIT: Speaking of HQ pics, it seems the HQ pics site is down :(

EDIT2: actually, you might have to change the max heap size settings in your Java control panel settings. Just set the starting size to 64MB and the max size to 512MB.

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 07:01
by nantuko84
Code: Select all
I think it's because of HQ pictures.
you can find somewhere here that MagicWars had similar issue with java heap when started using better quality pictures.
According to people suggestions, I've updated caching to cache only limit amount of cards:
now MagicWars doesn't cache images for cards that are shown on mouse over at all
and caches only 30 cropped images that are displayed on battlefield that only impacts image loading time for new cards: so if there are 30 different cards on battlefield (that is very rare case), then cache will be reseted with 31st image cached - not ideal solution (another approache: replace first image case by 31st), but it's really not frequent case and it's much better than out of memory exception

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 14:38
by Resonantg
Darn, the fix didn't work. Oh well. I'll wait for the next release. I'm probably doing something wrong, and I don't play quest enough to care that deeply at this time. :)

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 17:07
by DennisBergkamp
nantuko84 wrote:
Code: Select all
I think it's because of HQ pictures.
you can find somewhere here that MagicWars had similar issue with java heap when started using better quality pictures.
According to people suggestions, I've updated caching to cache only limit amount of cards:
now MagicWars doesn't cache images for cards that are shown on mouse over at all
and caches only 30 cropped images that are displayed on battlefield that only impacts image loading time for new cards: so if there are 30 different cards on battlefield (that is very rare case), then cache will be reseted with 31st image cached - not ideal solution (another approache: replace first image case by 31st), but it's really not frequent case and it's much better than out of memory exception
Yeah, that would be another option... I really don't know how the caching works currently (I seem to remember seeing something like "if (image not in cache) { put image in cache; }"), maybe I'll have a look at your MagicWars code, and do the same for Forge.

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 21 Dec 2009, 20:21
by DennisBergkamp
Ok, so I've looked into the cache a little bit, and I kind of understand it now. While checking it out, I made a small fix where changing card size in the menu will actually also work now AFTER a game has been played :)

But I don't know much about caching algorithms... how about checking at the end of each turn whether an image is currently shown on the screen, if not, kick it out of cache?

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 22 Dec 2009, 00:00
by learyt
when i try to download the HQ pictures i get the following messege:

An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


You must be connected to the Internet. Error downloading card:
Card name: obsidian_giant.jpg
URL: http://mtgpics.chutography.com/P2/Obsid ... t.full.jpg


Version:
Forge -- official beta: 09/11/25, SVN revision: 199

Detailed error trace:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://mtgpics.chutography.com/P2/Obsid ... t.full.jpg
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at forge.Gui_DownloadPictures.run(Gui_DownloadPictures.java:206)
at java.lang.Thread.run(Unknown Source)



PD: i woul really like to see [-o< [-o< LAND GRANT Image1G SORCERY on THE FORGE i dont now how to put the info of the card in that cool format so i leave you the pic

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 22 Dec 2009, 03:16
by Huggybaby
Direct download links for HQ Pics are here: viewtopic.php?f=26&t=1921

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 22 Dec 2009, 04:39
by DennisBergkamp
Yes it seems that server is down. The next version will have a mirror (something Vasiliy added).
In the meantime, you could try to just direct download them... but the problem is, you would have to do a LOT of manual renaming.

Re: Forge 12/14 (unofficial BETA) version

PostPosted: 22 Dec 2009, 07:04
by Huggybaby
Why is renaming necessary?