It is currently 27 Apr 2024, 11:08
   
Text Size

HQ Cards Picture Support

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: HQ Cards Picture Support

Postby 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!
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

Postby Vasiliy » 03 Dec 2009, 13:59

In r127 I add popUp window in play.
Screeshot:
Image
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

Postby 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. :wink:
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: HQ Cards Picture Support

Postby Vasiliy » 03 Dec 2009, 15:39

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.
I fix this bug in r128. Please update your local copy.
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

Postby Chris H. » 03 Dec 2009, 16:09

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.
Thank you. :D

I can now get back to work. :wink:
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: HQ Cards Picture Support

Postby 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?
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Cards Picture Support

Postby 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

Postby 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.
Attachments
token.jpg
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Cards Picture Support

Postby Vasiliy » 04 Dec 2009, 06:55

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.
Thanks for info. I trying correct this bug.
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

Postby 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

Postby 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
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

Postby 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. :D

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.
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: HQ Cards Picture Support

Postby Vasiliy » 04 Dec 2009, 17:20

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. :D

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.
I try correct this bug tomorrow.
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

Postby 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

Postby 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
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 104 guests


Who is online

In total there are 104 users online :: 0 registered, 0 hidden and 104 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 104 guests

Login Form