Suggestion: Stackable Objects

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Suggestion: Stackable Objects

Postby Yolan » Tue Jun 23, 2009 6:59 am

How about making some smaller objects stackable up to ten? For example, apples, leeches, seeds, etc. The little number that is shown for crafting recipes could be similarly used to display how many of these things you have in that square.
User avatar
Yolan
 
Posts: 1097
Joined: Wed Jun 03, 2009 3:26 pm
Location: Japan

Re: Suggestion: Stackable Objects

Postby sami1337 » Tue Jun 23, 2009 12:15 pm

I have to agree. But you either have to limit stack size to something reasonable or add a weight system.
The ones who see things differently.

You can praise them, disagree with them, quote them, disbelieve them, glorify or vilify them. About the only thing you can't do is ignore them.
And while some may see them as the crazy ones, we see genius.
User avatar
sami1337
 
Posts: 1125
Joined: Tue May 26, 2009 1:52 pm

Re: Suggestion: Stackable Objects

Postby loftar » Tue Jun 23, 2009 12:56 pm

That is, for various reasons, not very likely to happen.

Game mechanics and similar issues (of which there are a few, to be sure) aside, the problem lies mainly with defining what would constitute item identity. To begin with, items in Haven have no primary type*, and therefore no obvious identity for grouping. However, even assuming that there were, it would still be non-obvious how to properly define type identity -- for instance; can bloated leeches stack with non-bloated leeches; can wheat seeds stack with flax seeds; and, assuming that we add food decay, can apples stack with rotten apples?

Even if it were possible to define such things in any useful manner, what, then, happens when objects spontaneously change identity characteristics? For instance, if one apple in a stack of five rots, should that apple be ejected from the stack; or should there be an item "on top" of the stack, so that the stack appears rotten only when the rotten apple is on top; or should it be completely hidden?

Therefore, I don't think that it's possible to define any useful characteristics for generic item stacks. It could be argued that Really Simple(TM) items, like pieces of linen cloth or straw, could stack, but that may not be too obvious either. Particularly so if we decide to change them later on; for instance, to add coloring capabilities to linen cloth or maybe rotting straw or something else (and what, then, would happen to existing stacks?). Instead, we plan on adding certain special-purpose inventory items, such as seed-bags (or quivers, which already exist, if in an imperfect implementation).

* If you've ever programmed in Common Lisp, you can probably relate to that; CL objects can be queried with various well-defined type predicates to check whether they conform to that type, but they can belong to several distinct such types, and the TYPE-OF function is quite unreliable and mostly informative. So, also, do items in Haven work; they can be queried if they belong to one class of items or another, but there is no reliable way to query them for "which" (singular) type they are. The analogy is not perfect, though; Common Lisp objects usually have a primary type returned by TYPE-OF, and the unreliability of TYPE-OF mostly depends on the fact that the primary type is implementation-dependent, while in Haven, there really is no primary type.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Suggestion: Stackable Objects

Postby kimya » Tue Jun 23, 2009 2:14 pm

true. but some illogical things would be corrected. like one axe using as much space as seeds. same with yarn, butter, aso.
but the special items like the seeds-bags will do.

/edit
an idea i just had. what if stacked items would behave like an extra inventory? like, you put two seeds (no matter what kind of seeds) on top of each other, they are stacked (with a small symbol for stacked). when you right click them, a new window opens with the stacked objects. you can then treat them as if they were in a backpack. eat them, throw them away, aso. that way you could just stack all kinds of seeds, rotten, eaten and fresh apples aso.

hmm just an idea. though im not sure if i even like it, hehe
Last edited by kimya on Tue Jun 23, 2009 2:19 pm, edited 1 time in total.
kimya
 
Posts: 845
Joined: Mon Jun 01, 2009 1:35 am

Re: Suggestion: Stackable Objects

Postby sami1337 » Tue Jun 23, 2009 2:19 pm

stone axe if fine if you'd ask me. It's a small axe to start with.
The ones who see things differently.

You can praise them, disagree with them, quote them, disbelieve them, glorify or vilify them. About the only thing you can't do is ignore them.
And while some may see them as the crazy ones, we see genius.
User avatar
sami1337
 
Posts: 1125
Joined: Tue May 26, 2009 1:52 pm

Re: Suggestion: Stackable Objects

Postby kimya » Tue Jun 23, 2009 2:22 pm

sami1337 wrote:stone axe if fine if you'd ask me. It's a small axe to start with.


nah its too small. you could plant half an acre with that amount of seeds ;)
kimya
 
Posts: 845
Joined: Mon Jun 01, 2009 1:35 am

Re: Suggestion: Stackable Objects

Postby theTrav » Wed Jun 24, 2009 1:35 am

yeah, you can cut down fully grown Fir trees with a stone axe, I doubt it's a simple tomahawk, perhaps it should be made as large as a board and two handed?

As for the stackable objects... I believe a certain amount of it is intended to convey 'bulk'. You can't really have a stack of 10 apples only taking up one inventory slot, 10 apples takes up quite a bit of space.

The seeds probably represent a few hand fulls of seed, which while not taking up as much space, probably need to be held in some sort of container that would take up a bit of space. It's probably not 100% realistic, but I think it's close enough.


I guess I'm not opposed to the idea of stackables, I just don't see a lot of need for it at this point in the game, it would just be allowing players to carry more stuff.


also:
loftar wrote:If you've ever programmed in Common Lisp

The server is coded in lisp? Wow, may the curved-braces be with you!
User avatar
theTrav
 
Posts: 3464
Joined: Fri May 29, 2009 11:25 pm

Re: Suggestion: Stackable Objects

Postby loftar » Wed Jun 24, 2009 4:41 am

theTrav wrote:The server is coded in lisp? Wow, may the curved-braces be with you!

No, it isn't (though I have been thinking of rewriting it in Lisp from one time to another) -- I just used it as a comparative example. The server is written in C.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am


Return to Critique & Ideas

Who is online

Users browsing this forum: No registered users and 11 guests