*Author

Offline PlanplanTopic starter

  • Jr. Member
  • **
  • Posts: 130
  • Country: fr
  • Reputation Power: 8
  • Planplan is a Spark waiting for a buff.
Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41008#msg41008
« on: March 19, 2010, 03:18:30 pm »
I'm working on a small deck image generator, based on the cards codes implemented in Elements 1.20.

You could try it yourself HERE (http://helltgivre.free.fr/elements/) (http://helltgivre.free.fr/elements/ (http://helltgivre.free.fr/elements/)) (might be a bit slow on my free server).

I think pictures talk more, here an example of what I can generate (it's not a screenshot) :
(http://helltgivre.free.fr/elements/?mark=4ss&deck=5faz65rpz96qqz76qqz66u36u6717z271bz274b77d77gz27amz27do7gv7k27n37n5z37q5z37t9z380d)

I have some idea, but if you have suggestions...

ADDED :
 - Added a sort function to have the cards in the same order as in the game.
 - The URL is now shorter, and I added a simple and very naive compression to make them even shorter in case multiple same cards.
http://helltgivre.free.fr/elements/?mark=entropy&deck=z94saz94saz94saz34sa (http://helltgivre.free.fr/elements/?mark=4sj&deck=z94saz94saz94saz34sa)
instead of
http://helltgivre.free.fr/elements/?mark=entropy&deck=4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa (http://helltgivre.free.fr/elements/?mark=4sj&deck=4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa4sa)

EDIT :
All cards are now online !

Others : http://helltgivre.free.fr/elements/?mark=4sj&deck=4sa4t34t44t54t64t74t96qq6rj6rk6rl6rm6rn6rp (http://helltgivre.free.fr/elements/?mark=4sj&deck=4sa4t34t44t54t64t74t96qq6rj6rk6rl6rm6rn6rp)
Entropy : http://helltgivre.free.fr/elements/?mark=4sj&deck=4vc4vd4ve4vf4vg4vh4vi4vj4vk4vl4vm4vn4vo5006ts6tt6tu6tv6u06u16u26u36u46u56u66u76u86ug (http://helltgivre.free.fr/elements/?mark=4sj&deck=4vc4vd4ve4vf4vg4vh4vi4vj4vk4vl4vm4vn4vo5006ts6tt6tu6tv6u06u16u26u36u46u56u66u76u86ug)
Death : http://helltgivre.free.fr/elements/?mark=4sk&deck=52g52h52i52j52k52l52m52n52o52p52q52r52s52t53471071171271371471571671771871971a71b71c71d71k (http://helltgivre.free.fr/elements/?mark=4sk&deck=52g52h52i52j52k52l52m52n52o52p52q52r52s52t53471071171271371471571671771871971a71b71c71d71k)
Gravity : http://helltgivre.free.fr/elements/?mark=4sl&deck=55k55l55m55n55o55p55q55r55s55t55u55v56874474574674774874974a74b74c74d74e74f74o (http://helltgivre.free.fr/elements/?mark=4sl&deck=55k55l55m55n55o55p55q55r55s55t55u55v56874474574674774874974a74b74c74d74e74f74o)
Earth : http://helltgivre.free.fr/elements/?mark=4sm&deck=58o58p58q58r58s58t58u58v59059159259359459559c77877977a77b77c77d77e77f77g77h77i77j77k77l77s (http://helltgivre.free.fr/elements/?mark=4sm&deck=58o58p58q58r58s58t58u58v59059159259359459559c77877977a77b77c77d77e77f77g77h77i77j77k77l77s)
Life : http://helltgivre.free.fr/elements/?mark=4sn&deck=5bs5bt5bu5bv5c05c15c25c35c45c55c65c75cg7ac7ad7ae7af7ag7ah7ai7aj7ak7al7am7an7b0 (http://helltgivre.free.fr/elements/?mark=4sn&deck=5bs5bt5bu5bv5c05c15c25c35c45c55c65c75cg7ac7ad7ae7af7ag7ah7ai7aj7ak7al7am7an7b0)
Fire : http://helltgivre.free.fr/elements/?mark=4so&deck=5f05f15f25f35f45f55f65f75f85f95fa5fb5fc5fk7dg7dh7di7dj7dk7dl7dm7dn7do7dp7dq7dr7ds7e4 (http://helltgivre.free.fr/elements/?mark=4so&deck=5f05f15f25f35f45f55f65f75f85f95fa5fb5fc5fk7dg7dh7di7dj7dk7dl7dm7dn7do7dp7dq7dr7ds7e4)
Water : http://helltgivre.free.fr/elements/?mark=4sp&deck=5i45i55i65i75i85i95ia5ib5ic5id5ie5if5ig5io7gk7gl7gm7gn7go7gp7gq7gr7gs7gt7gu7gv7h07h8 (http://helltgivre.free.fr/elements/?mark=4sp&deck=5i45i55i65i75i85i95ia5ib5ic5id5ie5if5ig5io7gk7gl7gm7gn7go7gp7gq7gr7gs7gt7gu7gv7h07h8)
Light : http://helltgivre.free.fr/elements/?mark=4sq&deck=5l85l95la5lb5lc5ld5le5lf5lg5lh5li5lj5lk5ls7jo7jp7jq7jr7js7jt7ju7jv7k07k17k27k37k47kc (http://helltgivre.free.fr/elements/?mark=4sq&deck=5l85l95la5lb5lc5ld5le5lf5lg5lh5li5lj5lk5ls7jo7jp7jq7jr7js7jt7ju7jv7k07k17k27k37k47kc)
Air : http://helltgivre.free.fr/elements/?mark=4sr&deck=5oc5od5oe5of5og5oh5oi5oj5ok5ol5om5on5p07ms7mt7mu7mv7n07n17n27n37n47n57n67n77ng (http://helltgivre.free.fr/elements/?mark=4sr&deck=5oc5od5oe5of5og5oh5oi5oj5ok5ol5om5on5p07ms7mt7mu7mv7n07n17n27n37n47n57n67n77ng)
Time : http://helltgivre.free.fr/elements/?mark=4ss&deck=5rg5rh5ri5rj5rk5rl5rm5rn5ro5rp5rq5rr5rs5s47q07q17q27q37q47q57q67q77q87q97qa7qb7qc7qk (http://helltgivre.free.fr/elements/?mark=4ss&deck=5rg5rh5ri5rj5rk5rl5rm5rn5ro5rp5rq5rr5rs5s47q07q17q27q37q47q57q67q77q87q97qa7qb7qc7qk)
Darkness : http://helltgivre.free.fr/elements/?mark=4st&deck=5uk5ul5um5un5uo5up5uq5ur5us5ut5uu5v87t47t57t67t77t87t97ta7tb7tc7td7te7to (http://helltgivre.free.fr/elements/?mark=4st&deck=5uk5ul5um5un5uo5up5uq5ur5us5ut5uu5v87t47t57t67t77t87t97ta7tb7tc7td7te7to)
Aether : http://helltgivre.free.fr/elements/?mark=4su&deck=61o61p61q61r61s61t61u61v62062162262c80880980a80b80c80d80e80f80g80h80i80s (http://helltgivre.free.fr/elements/?mark=4su&deck=61o61p61q61r61s61t61u61v62062162262c80880980a80b80c80d80e80f80g80h80i80s)

Scaredgirl

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41018#msg41018
« Reply #1 on: March 19, 2010, 03:27:57 pm »
What.. the.. fu..?

It's absolutely awesome!

CB!

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41035#msg41035
« Reply #2 on: March 19, 2010, 03:54:08 pm »
Dude, this is frickin' brilliant...

Offline jmizzle7

  • Legendary Member
  • ******
  • Posts: 3058
  • Reputation Power: 34
  • jmizzle7 is a Ghost, obsessed with their Elemental pursuits.jmizzle7 is a Ghost, obsessed with their Elemental pursuits.jmizzle7 is a Ghost, obsessed with their Elemental pursuits.jmizzle7 is a Ghost, obsessed with their Elemental pursuits.jmizzle7 is a Ghost, obsessed with their Elemental pursuits.jmizzle7 is a Ghost, obsessed with their Elemental pursuits.
  • I'm kind of a big deal. People know me.
  • Awards: Weekly Tournament WinnerSS Competition #1 1stCard Design Competition Winner
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41043#msg41043
« Reply #3 on: March 19, 2010, 04:05:24 pm »
I'm going to say what everybody else is thinking. How did you do that?!?!

jakubas

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41048#msg41048
« Reply #4 on: March 19, 2010, 04:11:55 pm »
Wow nice work! TEACH US TEACH USSSSSSS

ftbhrygvn

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41083#msg41083
« Reply #5 on: March 19, 2010, 06:15:13 pm »
Not hard using PHP image-generating functions. I was going to made something like this but I abandoned the idea 'cuz my schoolwork is so heavy

Astaroth

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41092#msg41092
« Reply #6 on: March 19, 2010, 06:27:09 pm »
Whoa... pretty neat. I can see it greatly helping those who don't have simple screenshot software.

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: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41124#msg41124
« Reply #7 on: March 19, 2010, 07:10:53 pm »
Why am I the only one who has +Karmaed this guy?
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.

Belthazar666

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41127#msg41127
« Reply #8 on: March 19, 2010, 07:19:46 pm »
That's pretty awesome.

Scaredgirl

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41139#msg41139
« Reply #9 on: March 19, 2010, 07:57:42 pm »
Not hard using PHP image-generating functions. I was going to made something like this but I abandoned the idea 'cuz my schoolwork is so heavy
Yeah it's pretty basic stuff if you know that kind of coding, but what impressed me was how polished it is.

I was going to start a thread asking a deck image builder that was:

A) Simple
B) Produces an identical image of what we seen in game

Planplan achieved just that.

I'm willing to bet that 9 out of 10 coders would have failed in one of those, most likely in both. Keeping things simple and attention in detail are not easy.

Delreich

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41232#msg41232
« Reply #10 on: March 19, 2010, 11:24:10 pm »
I was going to start a thread asking a deck image builder that was:

B) Produces an identical image of what we seen in game
Except this one doesn't quite manage that in its current form. All that's missing is a bit of sorting though, so that should be easy enough to fix.


Edit: Would it be a lot of work to make it crop the image if no mark is given? So a 30 card deck for example would look something like this:

This would be very useful for a [deck (http://elementscommunity.org/forum/index.php/topic,4147.0.html)] code, if we were to make that happen, and you don't mind sharing your code (at least to SG / the forum).
May need to make it accept spaces as well... shouldn't be difficult either.

Tea is good

  • Guest
Re: Elements deck image generator https://elementscommunity.org/forum/index.php?topic=4173.msg41266#msg41266
« Reply #11 on: March 20, 2010, 12:29:11 am »
Wait, someone explain what he is doing?

 

blarg: