It is currently 26 Apr 2024, 20:29
   
Text Size

Land Stacking

Post MTG Forge Related Programming Questions Here

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

Land Stacking

Postby mtgrares » 04 Jun 2009, 18:38

Dennis, where is the land stacking code? I wanted to look at it to see if I could understand it. Thanks.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Land Stacking

Postby DennisBergkamp » 04 Jun 2009, 19:18

It's in GUIDisplayUtil, in "private static void setupPanel(JPanel p, ArrayList<Card> list, boolean stack)". I have changed a few things in my version, so it also stacks some of the non-basic lands.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Land Stacking

Postby DennisBergkamp » 05 Jun 2009, 05:20

I got tokens of the same name to stack now, check it out :mrgreen:
Attachments
stackedTokens.jpg
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Land Stacking

Postby zerker2000 » 05 Jun 2009, 06:11

NICE!!! (You won't believe how annoying it is to have to spend five minutes scrolling after spawning 25 tokens with Kiji/Pestermite )

EDIT: Yay I got links to work :) (I was having problems using the [url] tag before, and ended up just posting urls relying on autoparse)

... do you have any idea when people (e.g. me :oops:) will have a chance to get a version of forge with that? :-"
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: Land Stacking

Postby Huggybaby » 05 Jun 2009, 13:19

That stacking looks good, keep it up!
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Land Stacking

Postby DennisBergkamp » 05 Jun 2009, 16:17

... do you have any idea when people (e.g. me :oops:) will have a chance to get a version of forge with that? :-"
If all goes well, sometime this weekend :)

EDIT: By the way, I've changed a bunch of other things.
The order from left to right of nonland permanents will look like this now:

Planeswalkers === Equipped Creatures (stacking with their currently equipped equipment) === non-token Creatures === token Creatures (in stacks of 4 if they have the same name) === Moxen (they will also stack if it's the same type of Mox) === non-creature Artifacts (includes equipment that's not equipping anything) === Global Enchantments

What do you guys think? I could even change things around some more...
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Land Stacking

Postby Rob Cashwalker » 05 Jun 2009, 17:05

DennisBergkamp wrote:
... do you have any idea when people (e.g. me :oops:) will have a chance to get a version of forge with that? :-"
If all goes well, sometime this weekend :)

EDIT: By the way, I've changed a bunch of other things.
The order from left to right of nonland permanents will look like this now:

Planeswalkers === Equipped Creatures (stacking with their currently equipped equipment) === non-token Creatures === token Creatures (in stacks of 4 if they have the same name) === Moxen (they will also stack if it's the same type of Mox) === non-creature Artifacts (includes equipment that's not equipping anything) === Global Enchantments

What do you guys think? I could even change things around some more...
What do you think about any way to put the moxen in the land area, since it seems to have extra space now?
What do you think about forcing two rows (which only used to occur if there were near-infinite tokens)? Putting Global Enchantments and Artifacts on the second row?
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: Land Stacking

Postby Chris H. » 05 Jun 2009, 17:15

What happens if we try to equip a creature with more than three equipments?

How much of a slow down are you noticing with lands + tokens + creatures with equipments stacking into piles of cards? :)
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: Land Stacking

Postby DennisBergkamp » 05 Jun 2009, 19:12

What do you think about any way to put the moxen in the land area, since it seems to have extra space now?
What do you think about forcing two rows (which only used to occur if there were near-infinite tokens)? Putting Global Enchantments and Artifacts on the second row?
I'm not sure about forcing two rows, since on lower res monitors it looks very funky, even with medium sized cards (only half the card is shown if I'm not mistaken).
Making the Moxen show up on the land panel is a great idea, since we do have a lot of extra space there now :)

What happens if we try to equip a creature with more than three equipments?

How much of a slow down are you noticing with lands + tokens + creatures with equipments stacking into piles of cards? :)
Normally stacks are made as a max of 4, but with an equipped creature I set it up so there's no limit... I've tried it with like 5 - 6 pieces of equipment, and things are fine (check screenshot - a Llanowar Elves is equipped with 5 Bonesplitter). Not sure what happens though when you put 20+ on a creature :)

As far as performance goes, I'm happy to say I haven't really noticed anything drastic. Maybe I'll test it again with 50+ tokens.
Attachments
equipment.jpg
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Land Stacking

Postby MageKing17 » 05 Jun 2009, 20:33

DennisBergkamp wrote:As far as performance goes, I'm happy to say I haven't really noticed anything drastic. Maybe I'll test it again with 50+ tokens
Since your UI doesn't do 3D rendering, you'll probably be lucky enough not to have massive slowdowns from a single Mycoloth. Sadly, the same cannot be said for us. ;)
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: Land Stacking

Postby DennisBergkamp » 05 Jun 2009, 20:36

True that, but it don't look as purty :mrgreen:
Then again, I've had a Mycoloth near crash a game once, but that was after cranking out 500 or so tokens :o
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Land Stacking

Postby Chris H. » 05 Jun 2009, 21:29

DennisBergkamp wrote:Normally stacks are made as a max of 4, but with an equipped creature I set it up so there's no limit... I've tried it with like 5 - 6 pieces of equipment, and things are fine (check screenshot - a Llanowar Elves is equipped with 5 Bonesplitter). Not sure what happens though when you put 20+ on a creature :)

As far as performance goes, I'm happy to say I haven't really noticed anything drastic. Maybe I'll test it again with 50+ tokens.
Wow, awesome. I checked out the screenshot, that is one buffed Llanowar Elves. 8)
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: Land Stacking

Postby Huggybaby » 05 Jun 2009, 22:21

It's interesting that the stacks go up and not down.
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Land Stacking

Postby MageKing17 » 06 Jun 2009, 05:55

Huggybaby wrote:It's interesting that the stacks go up and not down.
I'm not sure what you mean. Do you normally put attachments behind and below the cards they're attached to? Wouldn't that make it hard to read the name?
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: Land Stacking

Postby Huggybaby » 07 Jun 2009, 00:29

Of course, you're right. I don't know what I was thinking, for some reason it just seemed strange when I first looked at it. :oops:
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 98 guests


Who is online

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

Login Form