Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. Hello Guest!
    Welcome to the Bug Report forum, please make sure you search for your problem before posting here. If you post a duplicate (that you post the same issue while other people have already done that before) you will be given a warning point which can eventually lead into account limitations !

    Here you can find a guide on how to post a good bug report thread.
    Space Engineers version --- Medieval Engineers version
  2. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Programmable Block Cannot Control Suspension Wheel Strength

Discussion in 'Bug Reports' started by PickYerPoison, Jul 6, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. PickYerPoison Trainee Engineer

    Messages:
    3
    Reproduction Rate: 7 out of 7 (100%)
    Affected Version: 1.186.5 (Release)

    Reproduction steps:
    1. Load the craft blueprint at this link, (or create/load your own craft, anything with suspension wheels will work): https://www.dropbox.com/s/yav8hh4fo8kv328/Rover%20%28with%20code%29.zip?dl=1
    2a. If you loaded the blueprint craft, turn on the programmable block.
    2b. If you made your own craft, ensure the strength of the suspension wheels is not 100%, then put a programmable block on it with this code:
    Code:
    public Program()
    {
    	// begin update frequency
    	Runtime.UpdateFrequency = UpdateFrequency.Update1;
    }
    
    public void Main(string argument, UpdateType updateSource)
    
    {
    	var wheels = new List<IMyMotorSuspension>();
    	GridTerminalSystem.GetBlocksOfType<IMyMotorSuspension>(wheels);
    	
    	foreach (var wheel in wheels)
    	{
    		wheel.Strength = wheel.Strength;
    	}
    }
    3. Check the suspension on the wheels.

    Observed behavior:
    The suspension strength of the wheels jumps to 100%. (This may additionally cause the rover to hop in the air).

    Expected behavior:
    The suspension strength of the wheels should remain unchanged.

    Notes:
    This happens whenever the suspension strength of the wheels is modified in any way by a script. Any value will set it to 100%, even 0 or its current value.
     
  2. Georgik Apprentice Engineer

    Messages:
    215
    I encountered the same problem with rotors' Displacement property.
    (when using SetValueFloat("Displacement", x), it works well)
     
  3. PickYerPoison Trainee Engineer

    Messages:
    3
    Looks like using SetValueFloat works, alright. That at least gives me a workaround!
     
Thread Status:
This last post in this thread was made more than 31 days old.