Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
k4talin opened this issue Feb 1, 2023 · 11 comments
Open

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

k4talin opened this issue Feb 1, 2023 · 11 comments

Comments

@k4talin
Copy link

k4talin commented Feb 1, 2023

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
Copy link
Owner

loki79uk commented Feb 5, 2023

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
Copy link
Author

k4talin commented Feb 7, 2023

ty

@loki79uk
Copy link
Owner

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
Copy link
Author

k4talin commented Mar 2, 2023

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
Copy link
Owner

loki79uk commented Mar 2, 2023

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
Copy link
Author

k4talin commented Mar 2, 2023

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
Copy link
Author

k4talin commented Mar 2, 2023

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
Copy link
Owner

loki79uk commented Mar 2, 2023

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
Copy link
Author

k4talin commented Mar 2, 2023

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
Copy link
Owner

Have you found any issues/conflicts with this workaround?

@k4talin
Copy link
Author

k4talin commented Mar 20, 2023 via email

@loki79uk loki79uk changed the title Autoload pallets One at a time option [Enhancement] Autoload pallets One at a time option Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants