Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: [Minor] Allow gems to stack  (Read 1378 times)

Derakon

  • Bay Watcher
    • View Profile
[Minor] Allow gems to stack
« on: May 17, 2008, 10:49:00 pm »

Normally, the fact that gems don't stack isn't much of a problem.

But I just imported over 250 of them. That's a lot of hauling jobs. Also a bit hard on the hands when selecting them to trade.

And yes, I'm aware that other hauling improvements have been suggested already (I've made a few myself). This would still help.

Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

Capntastic

  • Bay Watcher
  • Greetings, mortals!
    • View Profile
    • A review and literature weblog I never update
Re: [Minor] Allow gems to stack
« Reply #1 on: May 17, 2008, 11:56:00 pm »

The problem with stacks is that not everything that is the same is 'the same'- two coins minted by the same place might be from different years, or whatev'.   So it'd be tricky to abstract it into piles perfectly and efficiently.   It's one of the big hurdles Toady will get around to jumping eventually.   But yes, it would make the game much better.
Logged

Derakon

  • Bay Watcher
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #2 on: May 18, 2008, 12:02:00 am »

Fortunately, cut gems of a given type are all identical, so they can stack quite straightforwardly.
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

SirPenguin

  • Bay Watcher
  • NEVER A DULL MOMENT IN MID-WORLD
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #3 on: May 18, 2008, 12:24:00 am »

I can't imagine it'd have much of a problem if it followed what now happens with Barrels and Bins. It'll just be called a "pile of gems" or whatever, and hold, say, 15 gems. Loo[k]ing at it would show you how many and what gems are in the pile.

As opposed to something like "Gem Pile [15]", which, indeed, would be impossible due to the differences in gems.

Logged

Grek

  • Bay Watcher
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #4 on: May 18, 2008, 01:40:00 am »

I think the suggestion is to allow for items such as Diamond [22] and Opal [3].
Logged

Neonivek

  • Bay Watcher
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #5 on: May 18, 2008, 02:11:00 am »

A lot of things in this game need to stack... I don't see gems as important seeing as you almost never see them in Adventure mode (the mode most in need of stacking)

Well... with exception to I guess Coin hauling for dwarves...

Logged

Areyar

  • Bay Watcher
  • Ecstatic about recieving his own E:4 mug recently
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #6 on: May 18, 2008, 05:49:00 am »

Another item of personal gear (like flasks/quivers/backpacks) for dwarves:
cloth/leather pouch for carrying stacks of currency?

Use cut gems be used as currency too? nuggets of precious metals?

If only stackable items would check for identical items to 'fuse' with when dropped/put in container.


edit: oh yeah: new bookkeeper management job: consolidate stacks.
Sets haulage jobs so that identical stackable items are put in the same containers.

[ May 18, 2008: Message edited by: Areyar ]

Logged
My images bucket for WIPs and such: link

Duke 2.0

  • Bay Watcher
  • [CONQUISTADOR:BIRD]
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #7 on: May 18, 2008, 09:45:00 am »

I think any tile with more than five items in it should automatically get its own abstract container called a pile. The name of the pile would be determined by whatever makes up the majority of whats in the pile. If it's random crap, then it won't have a prefix.
Logged
Buck up friendo, we're all on the level here.
I would bet money Andrew has edited things retroactively, except I can't prove anything because it was edited retroactively.
MIERDO MILLAS DE VIBORAS FURIOSAS PARA ESTRANGULARTE MUERTO

Bricktop

  • Bay Watcher
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #8 on: May 19, 2008, 08:35:00 am »

I think Duke's suggestion is easily the best for sorting out the whole stacking problem.
Logged

Duke 2.0

  • Bay Watcher
  • [CONQUISTADOR:BIRD]
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #9 on: May 19, 2008, 09:05:00 am »

Indeed. The only problem is dwarves hauling piles. This can be solved by giving dwarves a weight limit proportional to their strength and toughness.

Thus a pile of diamonds can be hauled by a peasant, but a pile of rocks? Nah, impossible. This only helps with small light things that are annoying, but doesn't give any way of exploiting heavy things we are annoyed by.

And coupled with the suggestion of having a tile have a weight limit where going over would produce a wall of crap...

Logged
Buck up friendo, we're all on the level here.
I would bet money Andrew has edited things retroactively, except I can't prove anything because it was edited retroactively.
MIERDO MILLAS DE VIBORAS FURIOSAS PARA ESTRANGULARTE MUERTO

Aloysius

  • Bay Watcher
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #10 on: May 19, 2008, 11:31:00 am »

quote:
Originally posted by Derakon:
<STRONG>Fortunately, cut gems of a given type are all identical, so they can stack quite straightforwardly.</STRONG>

I'm not certain, but I suspect that cut gems may have different (although hidden) qualities. When dwarves decorate items, for example, you'll sometimes see a decoration using a "finely-cut" gem.

Logged

Kagus

  • Bay Watcher
  • Olive oil. Don't you?
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #11 on: May 19, 2008, 11:44:00 am »

I believe that is actually related to the decoration, and is thus tied to the gem setter profession.  But I'm really not sure.

Neskiairti

  • Bay Watcher
    • View Profile
    • Trust me, dont look.
Re: [Minor] Allow gems to stack
« Reply #12 on: May 19, 2008, 02:59:00 pm »

the best way to stack things like this.. is to use fake bins.. :P bins stack things well.. so.. when ever a gem is put in one place.. it automatically is assumed to be a bin.. and thus, every other gem can go in that stack.. (up to a certain limit of course) and probably should be a check, so that multiple stacks of gems try to become one stack of gem.. :P
Logged
The New Moo!

Sowelu

  • Bay Watcher
  • I am offishially a penguin.
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #13 on: May 19, 2008, 04:45:00 pm »

You...You do realise that "Stacking" is really difficult, and is eventually planned to work on a wide range of items, right?  I mean, you don't believe that bolts and gems work on fundamentally different code, do you?

I mean, the ability to compress five 1xBolts into one 5xBolts is already a major issue that uses the exact same code that gems would.  It's like the most common feature request by far, or at least it was until everyone noticed that it's well known and won't happen for a while.

I didn't see anyone else pointing it out in this thread, so I just wanted to step in here and say that this has already been discussed way to death.

Logged
Some things were made for one thing, for me / that one thing is the sea~
His servers are going to be powered by goat blood and moonlight.
Oh, a biomass/24 hour solar facility. How green!

Derakon

  • Bay Watcher
    • View Profile
Re: [Minor] Allow gems to stack
« Reply #14 on: May 19, 2008, 06:25:00 pm »

Yeah, I'm aware that restacking is in the works. I just want it to work for gems, too. Gems currently never stack - if you import four rubies, they each show up as a separate item. Whereas if you import 4 bolts, they show up as a stack of bolts[4].

In other words, gems should be stackable, just as bolts, dye, plants, etc. are stackable.

Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels
Pages: [1] 2