HQ Cards Picture Support
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: HQ Cards Picture Support
by silly freak » 03 Dec 2009, 13:11
i sense a problem with proper URL format. these paths would be relative URLs, but relative to what? we'd have to change the file format to include a "base URL" that would point to the proper directory. on the other hand, this would also help to strip out redundant parts from the external URLs
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: HQ Cards Picture Support
by Vasiliy » 03 Dec 2009, 13:59
In r127 I add popUp window in play.
Screeshot:
Screeshot:
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Chris H. » 03 Dec 2009, 15:13
I updated my local copy to r126. I placed my lo-res non-token pics in the forge/pics folder and I placed my lo-res token pics in the forge/pics/tokens folder.
Forge r126 will hang in the deck editor or the battlefield window. I have to force quit forge. I only have access to a slow speed modem dial up and it will take me a very long time to download over 400 megs of pics.
It might be nice if we could at some point make this high-res or low-res an option rather than being high-res only.
Forge r126 will hang in the deck editor or the battlefield window. I have to force quit forge. I only have access to a slow speed modem dial up and it will take me a very long time to download over 400 megs of pics.
It might be nice if we could at some point make this high-res or low-res an option rather than being high-res only.
-
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: HQ Cards Picture Support
by Vasiliy » 03 Dec 2009, 15:39
I fix this bug in r128. Please update your local copy.Chris H. wrote:I updated my local copy to r126. I placed my lo-res non-token pics in the forge/pics folder and I placed my lo-res token pics in the forge/pics/tokens folder.
Forge r126 will hang in the deck editor or the battlefield window.
If you use low-res picture, then popUp window is not open.
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Chris H. » 03 Dec 2009, 16:09
Thank you.Vasiliy wrote:I fix this bug in r128. Please update your local copy.
If you use low-res picture, then popUp window is not open.
I can now get back to work.
-
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: HQ Cards Picture Support
by DennisBergkamp » 03 Dec 2009, 18:26
Great stuff, I like how it works in game now as well
By the way, is there some list of set abbreviations?
By the way, is there some list of set abbreviations?
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Vasiliy » 03 Dec 2009, 18:35
In attachement all set abbreviations and all links to HQ picture.
- Attachments
-
- Hq picture links and sets abbriviature.rar
- (1.61 MiB) Downloaded 326 times
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by DennisBergkamp » 03 Dec 2009, 21:17
Thanks!
Currently, there are some problems though with resizing (and displaying) high-res tokens in game (check screenshot).
This is because the methods getPictureHQ, getPictureHQwidth, getPictureHQheight and IsPictureHQExists in GuiDisplayUtil.java all look in (IMAGE_BASE) /pics/. Tokens are in /pics/tokens.
Currently, there are some problems though with resizing (and displaying) high-res tokens in game (check screenshot).
This is because the methods getPictureHQ, getPictureHQwidth, getPictureHQheight and IsPictureHQExists in GuiDisplayUtil.java all look in (IMAGE_BASE) /pics/. Tokens are in /pics/tokens.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Vasiliy » 04 Dec 2009, 06:55
Thanks for info. I trying correct this bug.DennisBergkamp wrote:Thanks!
Currently, there are some problems though with resizing (and displaying) high-res tokens in game (check screenshot).
This is because the methods getPictureHQ, getPictureHQwidth, getPictureHQheight and IsPictureHQExists in GuiDisplayUtil.java all look in (IMAGE_BASE) /pics/. Tokens are in /pics/tokens.
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Vasiliy » 04 Dec 2009, 09:30
In r133 I fix bug with HQ tokens.
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Vasiliy » 04 Dec 2009, 12:53
In r137 I add support download LQ picture.
Now you can download LQ or HQ picture!!!
HQ URL links use from pics_link directory, LQ URL links use from card-
pictures.txt
Now you can download LQ or HQ picture!!!
HQ URL links use from pics_link directory, LQ URL links use from card-
pictures.txt
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by Chris H. » 04 Dec 2009, 15:54
`Vasiliy wrote:In r137 I add support download LQ picture.
Now you can download LQ or HQ picture!!!
HQ URL links use from pics_link directory, LQ URL links use from card-
pictures.txt
Thank you. I like this feature.
With the new r137 version I have noticed that the "Download Card LQ Pictures" menu command places the tokens that are included in the card-pictures.txt file into the /Forge/pics/ folder and not /Forge/pics/tokens/ folder.
The game will only display LQ tokens that are placed into the /Forge/pics/tokens/ folder. People that use the LQ pics will have to place a second copy of these LQ tokens into the tokens folder.
-
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: HQ Cards Picture Support
by Vasiliy » 04 Dec 2009, 17:20
I try correct this bug tomorrow.Chris H. wrote:`Vasiliy wrote:In r137 I add support download LQ picture.
Now you can download LQ or HQ picture!!!
HQ URL links use from pics_link directory, LQ URL links use from card-
pictures.txt
Thank you. I like this feature.
With the new r137 version I have noticed that the "Download Card LQ Pictures" menu command places the tokens that are included in the card-pictures.txt file into the /Forge/pics/ folder and not /Forge/pics/tokens/ folder.
The game will only display LQ tokens that are placed into the /Forge/pics/tokens/ folder. People that use the LQ pics will have to place a second copy of these LQ tokens into the tokens folder.
Sorry for my english. I speak english very bad.
- Vasiliy
- Programmer
- Posts: 47
- Joined: 15 Nov 2009, 12:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by learyt » 05 Dec 2009, 17:25
i don't get it can someone upload the hq pics to megaupload with the folders and all. i can't get the forge to download them
- learyt
- Posts: 15
- Joined: 24 Nov 2009, 21:55
- Has thanked: 0 time
- Been thanked: 0 time
Re: HQ Cards Picture Support
by zerker2000 » 05 Dec 2009, 21:20
Question/request to silly freak: is the picture locating code currently recursive?(If not why, this would greatly simplify all token/set directory problems.)
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
51 posts
• Page 2 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 104 guests