Piston retraction ignores max distance value
VS2.3 Vrage3 v2.3.0.2798. I have a large piston and a 4 button button panel to control it. Button 1 sets max distance to 0. Button 2 sets max distance to 5. Button 3 sets max distance to 10. Button 4 sets reverse direction. Piston configuration is: Piston Velocity 5.0, Piston Force 100000000.0, Max Distance Variable controlled by button - default to 0, Min Distance 0, Control Velocity 1, No to detach top.
When I am in positive velocity and am in distance 0:
Press button 1, nothing happens - distance remains 0 meters (expected)
Press button 2, piston extends to 5 meters (expected)
Press button 3, piston extends to 10 meters (expected)
Press button 4, piston goes to -5 velocity (expected)
Press button 2, piston retracts to 0 meters (not expected, expected behavior should be for piston to retract to 5 meters distance) This is a bug.
Press button 4, piston velocity set to 5 and piston automatically extends to 5 meters (not expected, piston should not move, but previous setting of distance to 5 is triggered)
It looks like max distance is being ignored during a retraction type of event. All retractions cause piston to go to 0 distance regardless of current max distance setting.
I have the same bug
Maximum distance is for when you are extending. Minimum distance is for when you are retracting.
It does not appear in your setup that you have changed the minimum distance from 0. Therefore, when velocity is reversed it will retract to the minimum distance, 0. This is expected behaviour and the same as SE1.
Maximum distance is for when you are extending. Minimum distance is for when you are retracting.
It does not appear in your setup that you have changed the minimum distance from 0. Therefore, when velocity is reversed it will retract to the minimum distance, 0. This is expected behaviour and the same as SE1.
Thank you Sandcrawler for the explanation. I have never played SE1, so am not familiar with that behavior. Kind of confusing if you ask me... Keen really just needs a "Set Current Distance" variable to simplify things. I am trying to use a piston as the driving force for a multi-floor elevator. Not a simple task given the variables that need to be modified logically. Especially without being able to programmatically determine current distance vs what new value is selected.
Thanks though!!!
Thank you Sandcrawler for the explanation. I have never played SE1, so am not familiar with that behavior. Kind of confusing if you ask me... Keen really just needs a "Set Current Distance" variable to simplify things. I am trying to use a piston as the driving force for a multi-floor elevator. Not a simple task given the variables that need to be modified logically. Especially without being able to programmatically determine current distance vs what new value is selected.
Thanks though!!!
Replies have been locked on this page!