Manual Inventory Sorting


Makes some tweaks to the way inventory sorting works. You can sort your inventory on demand or toggle auto-sort. It's also possible to sort chests, cars and cargo wagons.

Utilities
2 months ago
0.13 - 2.0
32.3K

g Request: `linked-chest` type

2 months ago

Certain mods (ex. Schall's Autolinked Chest) enable the base game hidden prototype linked-chest, allowing multiple chest entities to share an inventory (most useful for situations where you might otherwise use a modded storage larger than 1x1, like train unloading). This mod is not capable of sorting these by default, as they are not listed in the SORTABLE_ENTITIES table. However, I've tested locally, and simply adding ['linked-container'] = {defines.inventory.chest}, works just fine, sorts the linked inventory as expected, and hasn't caused any bugs, so requesting that be added to the mod baseline to support sorting linked-chest entities.

2 months ago

Fair and added in 2.3.0.

2 months ago

<3

2 months ago

Oh, I also added this to the SORTABLE_CONTROLLERS table in order to allow me to sort containers when I'm remotely viewing them via the map (ex on other planets), and it also seems to work as expected:

    [defines.controllers.remote] = true,
2 months ago

That would cause crashes when trying to sort the player inventory. I did also add support for sorting from the map though, it's just under a setting for now, see here.

2 months ago

Ah, excellent, almost certainly better than the hacksaw method I added it with (it did crash once, but only when I accessed a rocket silo to build a new cargo, and I just added some extra inventory nil checks to fix it >.<)

2 months ago

any possibility we can get this feature in 1.1 or has mod changed too much for that?

2 months ago

I suppose i could backport the changes for 1.1, i think all of it should be possible. I'm not totally sure how the mod portal would handle that, but i could also just make a zip if it's an issue.

2 months ago

that would be great. I looked at the file and it looked like you started doing the defines completely different so I couldn't figure out exactly how one would add ones if you needed to.

2 months ago

I did the backport - it's version 11.3.0 because i painted myself into a corner with my versioning scheme... It should just work like a normal update i hope.

a month ago

that's beautiful. thanks for doing the backport

it showed up as a normal update and works perfectly. you are the best!

New response