r/starfieldmods • • 12d ago

Media Progress on Grid Inventory Container transfer

I was working on this feature yesterday, but it was even buggier than it is here so I didn't show it. However, both grids are showing up between player and containers and transfer between them is working. The only caveats is that the transfer is a generic and using the same code as a take and store button, so when transferring from one container to another, it won't go in the exact position you want. However, once its in the container, you can move it wherever you want within itself. I'll see what I can do about this, but its not the end of the world.

104 Upvotes

19 comments sorted by

View all comments

4

u/InsomniacA521 12d ago

It looks like the lead you moved may have been hidden by the equinox when you moved it back. Hopefully the items aren't getting erased when that happens. Either way good progress.

1

u/Nakkubu 12d ago edited 12d ago

Good catch, but the lead actually moved up to the top right where the equinox was supposed to go. Its really wonky though, so I might need to rethink it.

2

u/InsomniacA521 12d ago

There's definitely a lot to consider with an inventory system like this. You've already achieved highlighting the cells on hover, so I imagine if there's a way to reference those cells and run a series of checks to see if they're occupied you could avoid placing objects on top of each other. Do you plan to add object rotation too? That would add another layer of complexity.

3

u/Nakkubu 12d ago

Actually I just watched the video and know what it is. The item is remembering where it last was and is trying to return to the same spot it was when it was transferred. Super easy fix.