loki79uk / FS22_UniversalAutoload

Mod for FS22. Please download latest release below.
121 stars 35 forks source link

[Enhancement] Add ability to autoload 2 short palletes on top of one long #172

Open alzhur opened 1 year ago

alzhur commented 1 year ago

Like 2 pallets of planks on top of one pallet of long planks or wooden beams (Silverrun map). Currently only one pallet of planks is autoloaded on top of long pallet, with "align on center". Screenshot: https://ibb.co/FVxk4QJ

loki79uk commented 1 year ago

This is an unfortunate artefact of the loading design pattern that I have used. Each space is only defined at trailer surface, and items are stacked on top. This works great for items that are equally sized, but as you can see smaller items are not efficiently stacked on top. It is just too much work to address for me at this stage. Maybe later I will think about a recursive algorithm to attempt to pack smaller items on top of other items, but I think that the added complexity is just too great.

You could try using the horizontal first stacking mode - this will create a layer of similar items and then stack more layers above, but the truth is that with many different sized objects, the packing is never perfect.

alzhur commented 1 year ago

You could try using the horizontal first stacking mode.

Where to find this feature? Maybe it's not present yet in 1.3.1.0 from modhub?

And another strange-looking artefact from my experience: incomplete pallet in bottom layer, with full pallet stacked on top of it, both loaded in one go, without moving trailer or spawning more pallets (if I remember this right). Maybe give some priority to loading full pallets first?

loki79uk commented 1 year ago

Where to find this feature? Maybe it's not present yet in 1.3.1.0 from modhub?

You need to go into the settings and add a keybinding for "Toggle horizontal loading", then it will activate the option. I left it unbound because it can also be set permanently per trailer in the local settings file if you prefer. Either way, the actual selected configuration will be stored in the save game.

alzhur commented 1 year ago

Thanks, horizontal mode resolves this problem, at least in some cases. https://ibb.co/3TdJbnx But causes some other: not enough space to load prefab walls pallet into that trailer (in vertical mode - 1 pallet loaded ok).