Land Stacking
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Land Stacking
by 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
by 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.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Land Stacking
by DennisBergkamp » 05 Jun 2009, 05:20
I got tokens of the same name to stack now, check it out
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Land Stacking
by 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 ) will have a chance to get a version of forge with that?
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 ) 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
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
-
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
by DennisBergkamp » 05 Jun 2009, 16:17
If all goes well, sometime this weekend... do you have any idea when people (e.g. me ) will have a chance to get a version of forge with that?
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...
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Land Stacking
by Rob Cashwalker » 05 Jun 2009, 17:05
What do you think about any way to put the moxen in the land area, since it seems to have extra space now?DennisBergkamp wrote:If all goes well, sometime this weekend... do you have any idea when people (e.g. me ) will have a chance to get a version of forge with that?
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 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.
-
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
by 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?
How much of a slow down are you noticing with lands + tokens + creatures with equipments stacking into piles of cards?
-
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
by DennisBergkamp » 05 Jun 2009, 19:12
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).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?
Making the Moxen show up on the land panel is a great idea, since we do have a lot of extra space there now
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 creatureWhat 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?
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.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Land Stacking
by MageKing17 » 05 Jun 2009, 20:33
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.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
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Land Stacking
by DennisBergkamp » 05 Jun 2009, 20:36
True that, but it don't look as purty
Then again, I've had a Mycoloth near crash a game once, but that was after cranking out 500 or so tokens
Then again, I've had a Mycoloth near crash a game once, but that was after cranking out 500 or so tokens
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Land Stacking
by Chris H. » 05 Jun 2009, 21:29
Wow, awesome. I checked out the screenshot, that is one buffed Llanowar Elves.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.
-
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
by Huggybaby » 05 Jun 2009, 22:21
It's interesting that the stacks go up and not down.
-
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
by MageKing17 » 06 Jun 2009, 05:55
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?Huggybaby wrote:It's interesting that the stacks go up and not down.
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Land Stacking
by 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.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
25 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 105 guests