Page 1 of 1
New inventory command
Posted: Tue Aug 12, 2008 6:03 pm
by Mr. Cromwell
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?
Posted: Tue Aug 12, 2008 6:04 pm
by AlexRose
This would be awesome.
Posted: Tue Aug 12, 2008 6:07 pm
by Estralis Seborian
AlexRose wrote:This would be awesome.
Definatly!
Posted: Tue Aug 12, 2008 6:17 pm
by Achae Eanstray
Probably impossible to also have similar to shift something to the back?
Posted: Tue Aug 12, 2008 6:20 pm
by Llama
Technically possible by moving each other item in the depot, to the depot
I think its possible
ADDED: Oh wait, what do you mean? Making the item FIRST in the list , or making it the item shown?
Posted: Tue Aug 12, 2008 8:05 pm
by Kevin Lightdot
I think he means putting an item in the first space of your depot, so that when it opens it's the first thing you see and you don't have to scroll about.
Posted: Tue Aug 12, 2008 9:04 pm
by Mr. Cromwell
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.
Posted: Wed Aug 13, 2008 12:06 am
by Llama
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.
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...
Posted: Wed Aug 13, 2008 12:16 am
by Estralis Seborian
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.
Posted: Wed Aug 13, 2008 12:08 pm
by JonathanSmith
Moving an item form position x to <first> in a list/array is one of the easiest operations in softwaredevelopment and even in the worst underlying implementation nothing which should slow down the server more than another common operation.
I can help with some lines of code, if needed.
Posted: Wed Aug 13, 2008 12:36 pm
by Werner von Mintraching
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
Posted: Wed Aug 13, 2008 12:51 pm
by AlexRose
Achae Eanstray wrote:Probably impossible to also have similar to shift something to the back?
Um.. to shift to the back of the depot you just move it to anywhere else in the depot..
Posted: Wed Aug 13, 2008 12:59 pm
by JonathanSmith
@werner
Es geht eigentlich nur darum, dass es eine super Sache wäre, wenn man ein Item in der Truhe auch an den Anfang verschieben könnte.
Dazu wurde ein "Lege ein Ding ganz nach Vorne in die Kiste" Kommando vorgeschlagen.
Posted: Wed Aug 13, 2008 1:14 pm
by Faladron
Werner von Mintraching wrote:Also mals ehen ob ich das richtig auf die Reihe gekriegt hab.
...
Gruß
Werner
Translation:
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.
----
Posted: Wed Aug 13, 2008 4:11 pm
by Llama
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.