New inventory command
Moderator: Gamemasters
- Mr. Cromwell
- Posts: 1876
- Joined: Wed Oct 11, 2006 6:20 pm
- Location: All over the place.
New inventory command
Hey
I've thought about the situation when you have a lot of stuff in your depot. When you want to shift something to the "front", it takes a lot of confusing item moving each time.
So, how about the possibility of having a command which automatically moves the item/stack as the "first" item in the depot?
I've thought about the situation when you have a lot of stuff in your depot. When you want to shift something to the "front", it takes a lot of confusing item moving each time.
So, how about the possibility of having a command which automatically moves the item/stack as the "first" item in the depot?
- Estralis Seborian
- Posts: 12308
- Joined: Wed Nov 10, 2004 9:14 pm
- Location: Sir Postalot
- Contact:
- Achae Eanstray
- Posts: 4300
- Joined: Tue Sep 19, 2006 7:03 am
- Location: A field of dandelions
- Contact:
- Kevin Lightdot
- Posts: 2849
- Joined: Sun Oct 16, 2005 8:17 pm
- Location: Green again
- Mr. Cromwell
- Posts: 1876
- Joined: Wed Oct 11, 2006 6:20 pm
- Location: All over the place.
Ah, well I'm sure that's possible to do, using a loop I suppose, but it'll be irritating to program and make the server go sleepy-byes...Mr. Cromwell wrote:I mean:
You put item into the depot, it goes as last (current situation). You scroll to the item and choose it, selecting "put on top". Then the item gets placed in the front of the depot (first slot). You then either select another item or scroll back into the beginning.
- Estralis Seborian
- Posts: 12308
- Joined: Wed Nov 10, 2004 9:14 pm
- Location: Sir Postalot
- Contact:
I learned in programming class that such things are possible when you code stuff not as a list (item[1]=whatever, item[2]=somethingelse) but as stack. In a stack, an items only knows its neighbors. In such an architecture, a command like this would be very easy to implement. But something tells me the list is the better way for an inventory.
- JonathanSmith
- Posts: 90
- Joined: Fri May 23, 2008 12:26 am
-
Werner von Mintraching
- Posts: 479
- Joined: Mon Dec 11, 2006 1:31 pm
Also mals ehen ob ich das richtig auf die Reihe gekriegt hab.
Es geht um den Inhalt der Truhen und derren Reihenfolge, ob das "manipulierbar" wäre.
Es wurde der Vorschlag gemacht, ob man den Inhalt eines ich nenne es mal Slots ganz nach vorne in der Liste verschieben könnte.
An dem Vorschlag wurde moniert, dass das genauso bescheiden ist wie wenn das Item das hinein gelegt wird am ende erscheint, die Mitte wäre immernoch unsortierbar.
Ich denke, wenn man schon drüber nachdenkt, die Kiste "Sortierbar" zu machen also die Reihenfolge der darin enthaltenen Dinge ändern möchte, dann sollte man einen Gegenstand nehmen können und ihn an den Platz in der Truhe/Tasche dropen können wo man ihn gerne haben möchte.
Ob es machbar ist, da halte ich mich raus, aber wenn schon die Reihenfolge manipulieren, dann schon richtig.
Gruß
Werner
Es geht um den Inhalt der Truhen und derren Reihenfolge, ob das "manipulierbar" wäre.
Es wurde der Vorschlag gemacht, ob man den Inhalt eines ich nenne es mal Slots ganz nach vorne in der Liste verschieben könnte.
An dem Vorschlag wurde moniert, dass das genauso bescheiden ist wie wenn das Item das hinein gelegt wird am ende erscheint, die Mitte wäre immernoch unsortierbar.
Ich denke, wenn man schon drüber nachdenkt, die Kiste "Sortierbar" zu machen also die Reihenfolge der darin enthaltenen Dinge ändern möchte, dann sollte man einen Gegenstand nehmen können und ihn an den Platz in der Truhe/Tasche dropen können wo man ihn gerne haben möchte.
Ob es machbar ist, da halte ich mich raus, aber wenn schon die Reihenfolge manipulieren, dann schon richtig.
Gruß
Werner
- JonathanSmith
- Posts: 90
- Joined: Fri May 23, 2008 12:26 am
Translation:Werner von Mintraching wrote:Also mals ehen ob ich das richtig auf die Reihe gekriegt hab.
...
Gruß
Werner
A suggestion about if something like this is considered, it should be done properly, by being able to choose at which place in the inventory an item can be put at (not just "to the front" or "to the back") but rather being able to squeeze it inbetween every two other items there are.
----
From how I understand the depot works, you can't really do that.
The only way to move an item to the front is to move all other items to the back, which is rather server intensive.
A change in protocol is needed, and better inventory management might be a good idea for something to do. *nudges one of the server-devs*
@ Estralis - With a stack it'd be less hard but needing lots of actions.
You totally pop out the stack into another stack, except the one you want on top which you put into a temporary variable. You then pop each value in the 2nd stack, and push them into the first stack again, finishing with the value in the temp variable.
The only way to move an item to the front is to move all other items to the back, which is rather server intensive.
A change in protocol is needed, and better inventory management might be a good idea for something to do. *nudges one of the server-devs*
@ Estralis - With a stack it'd be less hard but needing lots of actions.
You totally pop out the stack into another stack, except the one you want on top which you put into a temporary variable. You then pop each value in the 2nd stack, and push them into the first stack again, finishing with the value in the temp variable.