loki79uk / FS22_UniversalAutoload

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

[Enhancement] Autoload pallets One at a time option #155

Open k4talin opened 1 year ago

k4talin commented 1 year ago

Please add this to the mod. It should be not hard. Very useful option when u want to pick up a specific number of pallets out from a large stockpile. I don't know why everyone went to this road: Autoload ALL. Feels so bad. It is so bad to click and load the pallets one by one? Is not still like 100 times faster than loading with a forklift? Are players so lazy this days? :)))) Please Sir give us option to enable one by one pallet loading or maybe if u tell me which lines needs to be modified into .lua file to make it easy for you.

loki79uk commented 1 year ago

You can always cancel loading part way through if you want to.

The very first version I made before release had individual loading and it was pretty dull to keep pressing load 50 times in a row. It will probably also break the bale collection mode.

I could add a key combination to load one pallet at a time, then you could bind that instead, but I won't have time to do anything FS related for at least the next two weeks as I have a lot of stuff going on IRL.

k4talin commented 1 year ago

ty

loki79uk commented 1 year ago

Hi, I'm finally back to normal now after a few weeks away, but now have a lot of other priorites than a single collection mode. I won't close the bug, but it is not very high on my to do list for now.

k4talin commented 1 year ago

Sorry brother i know is not a bug.. I realised after it should be on request. If u can move this there will be fine.. IDK how to do it. But please take a look. It takes 15mins for you max. Achimobil modified his Specialization for me and he gave me modification for personal use. You can do same if u want. just gimme lanes to replece and i will do if implementing a GUI option will take so much time. I am sure many will like this implement they are just not vocal. It helps a lot when sorting stuff which is mixed together and/or picking up exact number of pallets u want to move. Ty again for your time to answer.

loki79uk commented 1 year ago

Hi, if you want to edit yourself, then replace line 1068 with this:

local tempObjectList = UniversalAutoload.createSortedObjectsToLoad(self, spec.availableObjects)
spec.sortedObjectsToLoad = {}
if #tempObjectList > 0 then
    table.insert(spec.sortedObjectsToLoad, tempObjectList[1])
end

image

You will also need to disable autostrap in your local settings file, otherwise it will fasten the tension belts after every pallet that you load: image

Please test and see if anything else is broken now - I tested quickly with pallets, but I'm not sure how this would affect bale collection mode, log mode, console commands, etc.

k4talin commented 1 year ago

HI. THx for fast reply. I will test right now. The line u say to be replaced is 1049 instead of 1068 on the latest version downloaded from github, so i will replace 1049. I will show you. My latest UAL I did it. It is working. There is one problem. UAL still doing Autostrat after each load which is anoying. I did put: disableAutoStrap="true" Autostrap

But it seems the mod is ignoring this settings for some reason.

k4talin commented 1 year ago

Anything else is working . I did test bales and few different types of pallets and bags. If you can figure out a way to disable autostrap it would be awesome . THX again SIR

loki79uk commented 1 year ago

Anything else is working . I did test bales and few different types of pallets and bags. If you can figure out a way to disable autostrap it would be awesome . THX again SIR

The autostrap looks like because you have edited the template file inside the mod, you need to edit the actual live copy inside your user folder: %HOMEPATH%\Documents\My Games\FarmingSimulator2022\modSettings

k4talin commented 1 year ago

Omg i didn't knew about that folder i never checked that folder's content. You were right. Damn u r so smart. How did you figured out i was modifying the mod setting file? Anyway i did it right now. No more belts HAHA. God bless u SIR.

loki79uk commented 1 year ago

Have you found any issues/conflicts with this workaround?

k4talin commented 1 year ago

Never Sir. Works like a charm. I even use autobelts on since it is about same time in between loading each pallet anyway. You should implement this option. Why not? Your autoload will be the only one to have this feature. Already 3 friends asked me for the modified version . God bless you 

Sent from Yahoo Mail for iPhone