New inventory command

Everything about Illarion that fits nowhere else. / Alles über Illarion was inhaltlich in kein anderes Board passt.

Moderator: Gamemasters

Post Reply
User avatar
Mr. Cromwell
Posts: 1876
Joined: Wed Oct 11, 2006 6:20 pm
Location: All over the place.

New inventory command

Post 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?
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post by AlexRose »

This would be awesome.
User avatar
Estralis Seborian
Posts: 12308
Joined: Wed Nov 10, 2004 9:14 pm
Location: Sir Postalot
Contact:

Post by Estralis Seborian »

AlexRose wrote:This would be awesome.
Definatly!
User avatar
Achae Eanstray
Posts: 4300
Joined: Tue Sep 19, 2006 7:03 am
Location: A field of dandelions
Contact:

Post by Achae Eanstray »

Probably impossible to also have similar to shift something to the back?
User avatar
Llama
Posts: 7685
Joined: Sun May 29, 2005 7:02 pm
Location: The VBU is awesome
Contact:

Post by Llama »

Technically possible by moving each other item in the depot, to the depot :P

I think its possible ;)

ADDED: Oh wait, what do you mean? Making the item FIRST in the list , or making it the item shown?
User avatar
Kevin Lightdot
Posts: 2849
Joined: Sun Oct 16, 2005 8:17 pm
Location: Green again

Post 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.
User avatar
Mr. Cromwell
Posts: 1876
Joined: Wed Oct 11, 2006 6:20 pm
Location: All over the place.

Post 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.
User avatar
Llama
Posts: 7685
Joined: Sun May 29, 2005 7:02 pm
Location: The VBU is awesome
Contact:

Post 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...
User avatar
Estralis Seborian
Posts: 12308
Joined: Wed Nov 10, 2004 9:14 pm
Location: Sir Postalot
Contact:

Post 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.
User avatar
JonathanSmith
Posts: 90
Joined: Fri May 23, 2008 12:26 am

Post 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.
Werner von Mintraching
Posts: 479
Joined: Mon Dec 11, 2006 1:31 pm

Post 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
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post 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..
User avatar
JonathanSmith
Posts: 90
Joined: Fri May 23, 2008 12:26 am

Post 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.
User avatar
Faladron
Posts: 1139
Joined: Thu May 05, 2005 3:52 pm
Location: Ich warte auf NIX

Post 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.

----
User avatar
Llama
Posts: 7685
Joined: Sun May 29, 2005 7:02 pm
Location: The VBU is awesome
Contact:

Post 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.
Post Reply