It works the first time but consecutive attempts it does not see the chasis on the lift. Both player placed ones and monument addons placed ones, same issue. Any ideas?
Lift not detecting the car chasisNot An Issue
Oddly enough, it wont detect any car now, even fully built ones that worked on it before
Do you mean the UI to craft a chassis shows even when there is already a chassis or car on the lift? If so, does the UI go away when you close the lift UI, and always return when you open the lift UI again?
I just tested with player deployed lifts and wasn't able to reproduce this. In terms of the code, the plugin checks for a property of the car lift called carOccupant, which vanilla Rust sets while the lift has a grab on a car. I'm not aware of any reasons why that property would be unset if you are able to edit the car. Is the module edit panel visible?
Seems like I restarted server and it cleared up. It was a really weird bug. Yes the lift UI worked up and down but it was like there was no car on the lift. It wasn't detecting it and it wasn't snapping in. So far it is working consistently. I'll report again if it resurfaces
I see. The craft chassis options appearing was just a symptom of the real problem, which was that lifts were not detecting cars, for which the more concerning result is that players cannot edit cars at all. The plugin was doing the right thing by displaying the menu at that time, so while there may be an issue on your server, it doesn't sound like there is an issue with the plugin.
The issue is that it seems like crafting a chasis on the lift is what triggers the problem. If a player randomly finds a car, adds the parts, and uses a lift, the problem never arises. This same player was able to repeat the issue again this morning. When he first joined, it was working again as usual on his prebuilt cars. He could access the vehicle modules to replace them. He removed the car and tried to craft a new chasis. It just bounces on the lift a few times and the lift does not recognize it. Now the lift also doesn't recognize the original prebuilt car either. It seems the daily server restart cleared up the issue temporarly but he was able to reproduce the problem.
Merged post
Only other vehicle plugins Im using are the ones also by you, vehicle deployed locks & monument addons to spawn lifts @gas stations
My guess is that the lift bugged out when the last car was removed from it, not when the chassis was added to it, but it's difficult to say without more testing.
I spent some more time trying to reproduce the issue, by placing other cars on the lift and removing them, spawning a chassis, adding parts, driving it off, adding another chassis, and destroying the chassis, but everything was working fine. Let me know if you figure out a way to consistently reproduce the issue.
The only issue I'm aware of which sounds similar, is that it's possible in vanilla for a lift to have a grab on a car that is not nearby, preventing the lift from grabbing another car. However, then that issue occurs, opening the lift shows a UI which says that the vehicle is not in an editable state, and no chassis UI appears.
Thanks for the feedback, I'll do vigirous testing, including a cloned server with yanked plugins, and report back if I can find more concrete reproduction of the issue. Top notch dev 💪
Locked automatically