*Author

Scaredgirl

  • Guest
I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg18983#msg18983
« on: January 21, 2010, 11:26:03 pm »
If I understand correctly, Elements cards are "built" from smaller pieces as the game goes along. Correct me if I'm wrong about that one.

So my question is: is there a way of capturing those images without doing a screenshot? Like getting the "original" image?

I'm asking because I'm planning on redoing all the cards on this forum and in wiki. We need to make them perfect without all that extra stuff like shadows and ugly borders.

Ultimate goal would be to have PNG images with rounded transparent corners so that they would look great against any background.

Offline Essence

  • Legendary Member
  • ******
  • Posts: 4340
  • Country: us
  • Reputation Power: 57
  • Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.
  • Voice of the Oracle -- Jezzie's Pimp -- Often Gone
  • Awards: 2nd Trials - Master of Water1st Trials - Master of WaterFG Deck-Designer - The OutcastsShard Madness! Competition WinnerEpic 3 Card Design Competition WinnerElder Recruiter
Re: I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg18988#msg18988
« Reply #1 on: January 21, 2010, 11:39:52 pm »
Back in my 'I wanna be haxxor' days, I found a program that can extract images, sounds, animation frames, etc. from an SWF file.  I found it by Googling "SWF Decompiler", I think.  That would get you the individual elements you need.
If something happens and you think it deserves my attention, feel free to PM me. Other than that, I'm probably here if you want to shoot the breeze.

FrozenFlame

  • Guest
Re: I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg18989#msg18989
« Reply #2 on: January 21, 2010, 11:44:03 pm »
I'm no expert of any type and even less when it comes to flash applications, i'm quite sure though, that the .pngs, .jpgs, whatever be, already exist, and flash loads them.

Maybe decompiling a .swf allows to get some of the images but catching the .swf at any time probably gets the login part, not the animations you're actually seeing it when you save it in your computer, which brings us to the problem "images not loaded".

So i guess you would have to ask zanzarino to send you the image files.

Note: Again i could be wrong. Don't put your hands on fire for what i said ;x I "iz" a learner ;D

redjag

  • Guest
Re: I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg19121#msg19121
« Reply #3 on: January 22, 2010, 08:21:45 pm »
Yes you can get them by decompiling the SWF.  Since you have communication with Zanz and Chris why not just get the source images from one of them, which are even higher quality than those compiled in the SWF?

Scaredgirl

  • Guest
Re: I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg19231#msg19231
« Reply #4 on: January 23, 2010, 12:28:15 pm »
Yes you can get them by decompiling the SWF.  Since you have communication with Zanz and Chris why not just get the source images from one of them, which are even higher quality than those compiled in the SWF?
If I'm not mistaken, the full card images do not exists in the flash file. My understanding is that flash builds the cards in layers, like background + texts + icons. So if I decompile it, all I get is pieces of the cards. This is why I'm asking if there is a way to get the full images somehow.

I could be wrong about that though.

I'll try to get the images but if it fails I guess I'll ask Zanz. I just try to bother him as little as possible so that he can concentrate on coding the game. If there is a way for us to do it without him, I would prefer that.

Offline Essence

  • Legendary Member
  • ******
  • Posts: 4340
  • Country: us
  • Reputation Power: 57
  • Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.
  • Voice of the Oracle -- Jezzie's Pimp -- Often Gone
  • Awards: 2nd Trials - Master of Water1st Trials - Master of WaterFG Deck-Designer - The OutcastsShard Madness! Competition WinnerEpic 3 Card Design Competition WinnerElder Recruiter
Re: I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg19382#msg19382
« Reply #5 on: January 24, 2010, 01:58:32 am »
So I went and got an SWF decompiler, and opened up the SWF -- and you're right, SG, the game doesn't have complete images for any cards.  It builds them in layers on-the-fly just like you think it does.

So, yeah, probably the best you're gonna get is to ask chriskang (when does he get back, anyway?) or Zanz to build you the images you need. :(


If something happens and you think it deserves my attention, feel free to PM me. Other than that, I'm probably here if you want to shoot the breeze.

Offline Glitch

  • Legendary Member
  • ******
  • Posts: 3730
  • Reputation Power: 65
  • Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.Glitch walks among the Immortals, legends and guardians of all time.
  • Awards: 1st Trials - Master of LifeElements Short Story Competition WinnerPoetry in the Spirit of Elements
Re: I need a coder who can tell me how I can get perfect non-screenshot card ima https://elementscommunity.org/forum/index.php?topic=2347.msg20380#msg20380
« Reply #6 on: January 27, 2010, 02:28:39 am »
If I understand correctly, Elements cards are "built" from smaller pieces as the game goes along. Correct me if I'm wrong about that one.

So my question is: is there a way of capturing those images without doing a screenshot? Like getting the "original" image?

I'm asking because I'm planning on redoing all the cards on this forum and in wiki. We need to make them perfect without all that extra stuff like shadows and ugly borders.

Ultimate goal would be to have PNG images with rounded transparent corners so that they would look great against any background.
Hmm, thinking about how I would do it, there are several ways you could solve your problem.  Comment out all code unrelated to playing the cards.  I'd have to look at the programming, but there's probably a function in the code where it builds a certain card.  All cards probably have some sort of calling number and identifier.  If you knew what you were doing, and had the .swf, you could have it play 1 card on a blank background at a time.

Solution 2:  All images should be stored in the library somewhere.  Just go through that and take them out image by image.


Course, I'm just a newb programmer right now, I have no idea how elegant the game is...

Offline Essence

  • Legendary Member
  • ******
  • Posts: 4340
  • Country: us
  • Reputation Power: 57
  • Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.Essence is truly a Titan, worthy of respect and acknowledgement.
  • Voice of the Oracle -- Jezzie's Pimp -- Often Gone
  • Awards: 2nd Trials - Master of Water1st Trials - Master of WaterFG Deck-Designer - The OutcastsShard Madness! Competition WinnerEpic 3 Card Design Competition WinnerElder Recruiter
Re: I need a coder who can tell me how I can get perfect non-screenshot card images https://elementscommunity.org/forum/index.php?topic=2347.msg20398#msg20398
« Reply #7 on: January 27, 2010, 04:41:21 am »
Just look at ChrisKang's "FG.xls" (search for it), and you can get the numeric identifiers for each of the cards that was out in 1.14.  We won't know the new ones until CK gets back and starts working again.  Speaking of which, does anyone have a clue when that might be?
If something happens and you think it deserves my attention, feel free to PM me. Other than that, I'm probably here if you want to shoot the breeze.

 

blarg: