It is currently 27 Apr 2024, 08:18
   
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 » 05 Dec 2009, 22:35

i don't think it is, but it's not by me. i'm a the moment quite busy with school and lazy with forge.
___

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 zerker2000 » 05 Dec 2009, 22:58

Pardon, I am in the exact same situation(e.g. a show in two hours for school drama :)). I just remembered you made properties, so I assumed you knew more about forge file handling than most of us.
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

Re: HQ Cards Picture Support

Postby silly freak » 05 Dec 2009, 23:11

reasonable, but it was more like search and replace - okay, not only; before that time, forge used filenames (strings) to the fullest, which i changed to file objects. but i noticed nothing like a recursive search.
___

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 » 06 Dec 2009, 11:50

in r152:
Fix bug: Now tokens download to dir ../pics/tokens
All tokens URL now has in card-pictures-token.txt (LQ version)
or ../pics_link/card-pictures_token.txt (HQ version)
Now has new tokens URL format. Before name tokens need add prefix [T]. Example:
Old version: c_20_20_marit_lage.jpg http://www.magickartenmarkt.de/img/card ... _token.jpg
New version: [T]c_20_20_marit_lage.jpg http://www.magickartenmarkt.de/img/card ... _token.jpg
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 » 06 Dec 2009, 21:59

where can i download the new r???
learyt
 
Posts: 15
Joined: 24 Nov 2009, 21:55
Has thanked: 0 time
Been thanked: 0 time

Re: HQ Cards Picture Support

Postby DennisBergkamp » 06 Dec 2009, 22:56

Through the SVN at http://code.google.com/p/cardforge/. You'll need some kind of SVN client though.
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 Chris H. » 06 Dec 2009, 23:45

DennisBergkamp wrote:Through the SVN at http://code.google.com/p/cardforge/. You'll need some kind of SVN client though.
`
The SVN client will give him only the source code. He will also need something which can be used to build a java jar file. We tend to use Eclipse for this process. :)
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 Jorbes » 09 Dec 2009, 15:36

Vasiliy wrote:
Marek14 wrote:
silly freak wrote:Vasiliy's algorithm also sounds like a good idea, but it needs to address cards with multiple versions as well. Would it just copy the first relevant picture it finds?
Yes, copy first picture.
Just collect all, put them in a list and pick one at random.
=]
Jorbes
DEVELOPER
 
Posts: 333
Joined: 10 Oct 2008, 10:46
Has thanked: 0 time
Been thanked: 2 times

Re: HQ Cards Picture Support

Postby mtgrares » 10 Dec 2009, 20:27

Nice to see you around Jorbes. Your online playtable is very good, I hope it gets more popular than MWS. :D
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: HQ Cards Picture Support

Postby Vasiliy » 21 Dec 2009, 13:17

Ir r217 I add select server for HQ pictures.
Now you can download HQ pictures from mtgpics.chutography.com or
pics.slightlymagic.net
Screenshot:
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. » 21 Dec 2009, 15:42

Vasiliy wrote:Ir r217 I add select server for HQ pictures.
Now you can download HQ pictures from mtgpics.chutography.com or
pics.slightlymagic.net
`
Thank you. This is a nice update. :D
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 » 21 Dec 2009, 17:12

It is indeed! Thanks Vasiliy :)
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 » 22 Dec 2009, 16:06

In r222 I add two buttons in Deck Editor: "Change picture", "Remove picture"

Screenshot:
Image

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 Rob Cashwalker » 22 Dec 2009, 16:21

Does this just change the path from which the picture will be loaded from or does it copy it into the res/pics folder? (overwriting existing one)

Dennis - do you think you can start adapting the basic land picture variation code to work for all types of cards?
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: HQ Cards Picture Support

Postby DennisBergkamp » 22 Dec 2009, 16:28

Vasiliy wrote:Hello.

Marek14:
I can add to project next algoritm :
1. User select folder, where he has all HQ picture.
2. Forge analysing all picture in folder and all subfolder.
3. If it found HQ cards, it copy these card to pics catalog in Forge.

In this algoritm i can add support only such cards name format. Example: Bad Moon.full.jpg, Ballista Squad.full.jpg and so forth.
Algoritm found this card, copy in pics folder and rename it to Forge Cards format.
Example: Bad Moon.full.jpg -> bad_moon.jpg
Ballista Squad.full.jpg -> ballista_squad.jpg

If you want, then i start writing this algoritm.
Cool, yes this sounds great! A lot of people already have their HQ pics downloaded :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
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 78 guests


Who is online

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

Login Form