-
Notifications
You must be signed in to change notification settings - Fork 26
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
Long Planks not loading correctly #184
Comments
It sounds like they are not being measured correctly at the start of the game? All the new pallet types are found and cached once. Maybe I need to do some validation, but I don't know why it would not work sometimes. Might not be that, but can you check your log for the size when it is working vs when it is not. Should be like:
|
Yeah, I'll check the log the next time it happens. I'm kinda upset I restarted to make sure that fixes it , otherwise I'd be able to grab it for you. You may be on the right track, though. I seem to remember it happening at the end of one session and at the start or another, while restarting it this time fixed it. Not 100% on that, as I wasn't documenting it at that point. So if its happening when the pallet sizes are cached, it could be intermittently getting the wrong measurement. I'm gonna restart the save a few times and see if it happens again. |
Assuming it is something like this, then I could just store all the known base game sizes in an XML, but if we can reliably measure them then it is better. Maybe I could take the average of 5 measurements, and wait for a small std deviation. I also just realised that some pallets change size as they empty (e.g. bags of seeds), so I probably need to check if they are full or not too. |
Hmm. 5 restarts later and the problem isn't coming back. If you don't mind keeping this open for a day or two, I'll keep playing as usual and see if it comes back so I can see what does it. |
No problem, keep open as long as needed. I'll assume it is a problem anyway and think of some solutions for validation. |
I've got a similar issue (but with planks rather than long planks) in my currently running game. For the planks, the "area" it's detecting is much smaller than the actual pallet (screenshot attached) Below is the only bit in my log for boards and UAL I can see (UAL is working absolutely fine for long planks and wooden beams)
|
This makes it really clear what is happening, but I don't know why. Is there any chance that one of those pallets could be moving somehow at the start of a savegame? I will definitly try some kind of multiple measurement/average approach. In the output the first values are sizes defined in the xml:
and the second are measured:
Most of the time the measured values give better results, since the xml values are usually quite generous and rounded up. which causes stacking issues, especially with the height. But clearly sometimes the measurement is going wrong, so I need a more robust validation. |
I've not had the issue with loading since, about the only thing I can think of is that there was (quite likely) a part used short planks pallet sitting in a production loading point when the game was loaded - I'll see if I can reproduce that again at some point |
One thing that may be happening is the orientation or velocity of the pallet. I saw the issue when I had a jumble of long planks, at all different angles and rotations, and I believe one or more of them moved while I was loading. I have no idea if this helps, but it may be something about the orientation or velocity of the object skewing the measurements when it tries to load it. |
I definitley need to add some conditions that before measuring the pallets are 100% full and not moving. |
I've noticed an issue where long planks specifically aren't loading onto trailers correctly on some play sessions. They seem to bunch up in the front left corner of the trailer. The issue presents in either stack or layer mode, and doesn't seem to change the place where they bunch up or the orientation. The pallets normally will stack perpendicular to the long edge of the trailer, and half hang off the side.
I saw it at first on one of the modded Ponge trailers, but I've tested with both the base game Krone box trailer and PWO 24 and got the same results. Quitting to the main menu and reloading the save fixes it, but I've seen this a few times in my last couple play sessions. Once it starts happening, the only thing that seems to resolve it is reloading the save/client.
Editing the load area size doesn't fix, so it doesn't seem to be an issue with clipping anything on the trailer. I shrunk the loading box down so none of the edges of the box would be close to any part of the trailer like side walls or foldable edges, but they kept bunching up and not loading right.
It seems like longer play sessions have a higher chance of the issue happening, but I'm not certain. I didn't document it at first because I thought it might just be a 'still in dev' thing, but when it happened a second time I decided to start playing around with it to gather info on it. If it comes back again I'll grab a picture of it, but I hope this helps.
The text was updated successfully, but these errors were encountered: