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.

(fixed in 1.0.83) [1.0.78] DS missing action value string

Discussion in 'Bug Reports' started by mexmer, Apr 17, 2015.

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

    Messages:
    1,977
    here is some little heated discussion regarding airvent and action values
    http://forum.keenswh.com/threads/programmable-block-update-1-078.7357889/

    from what i tested
    DS doesn't return action value for large number of actions, even Action.Name is missing, only Action.Id is returned on evaluation. while on local game strings are returned correctly by PB script

    this bug dates at least to update 1.0.76 when i started working on script for airvents ... might be present for long time tho', because it doesn't display texts even for <IMyDoor> actions, and doors are here for quite long time.

    screenshot from SP CREATIVE
    [​IMG]

    screenshot from DS
    [​IMG]
    i suspect that string files for DS are incomplete ... i don't see other explanation here. DS runs on server with EN_US locale as default.

    loaded server save locally and run script - all strings present
    [​IMG]
     
  2. mexmer Senior Engineer

    Messages:
    1,977
    for testing purpose i started DS locally on my computer (win7 64bit, english)
    built PB, LCD, Airvent, put code bellow into PB, and here is result
    Code:
    void Main()
            {
            List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>();
            GridTerminalSystem.GetBlocksOfType<IMyAirVent>(blocks);
            GridTerminalSystem.GetBlocksOfType<IMyTextPanel>(blocks);
            var lcd = GridTerminalSystem.GetBlockWithName("LCD Panel") as IMyTextPanel;
            var vent = GridTerminalSystem.GetBlockWithName("Air Vent") as IMyAirVent;
                StringBuilder temp = new StringBuilder();
                vent.GetActionWithName("Depressurize").WriteValue(vent, temp);
                        lcd.ShowTextureOnScreen();
                        lcd.WritePublicText("Depressurize: " + temp);
                        lcd.ShowPublicTextOnScreen();
            }
    [/QUOTE]

    temp is empty - should be either On or Off, therefore text should state "Depressurize: Off" in this case
    [​IMG]
     
  3. mexmer Senior Engineer

    Messages:
    1,977
    Just tested this on few random servers (only in creative, so i can delete my creation afterwards)
    built vent + PB + display, run code, result is same as on my DS ... therefore is not problemy of my DS only.
     
  4. Phand Master Engineer

    Messages:
    9,650
    Hi,

    it probably has not been implemented yet. I will report it as regular bug and let guys implement it. Thank you for letting me know. :)
     
  5. mexmer Senior Engineer

    Messages:
    1,977
    thanks for notice ... what quite puzzles me, that for example SwitchLock returns value - on local/MP, and on DS, while OnOff doesn't on any block on DS, but works on local/MP
    i've put output of action list here
    http://forum.keenswh.com/threads/scripting-on-ds.7358088/
    whatever action has no name (before semicolon it's action ID), also does not return value on WriteValue ... but this issue affects only DS, it works properly on MP/SP
     
  6. Phand Master Engineer

    Messages:
    9,650
    Hi,

    I consulted this with our guys and it looks like a bug (or at least they told me that). So it should be fixed in the future I believe. :)
     
  7. mexmer Senior Engineer

    Messages:
    1,977
    1.0.79 not fixed
     
  8. lordiceman Trainee Engineer

    Messages:
    10
    1.080 still not fixed
     
  9. lordiceman Trainee Engineer

    Messages:
    10
    1.082 still not fixed
     
  10. mexmer Senior Engineer

    Messages:
    1,977
    should be fixed in 1.0.84, which is currently on git .... but no promises.
     
  11. lordiceman Trainee Engineer

    Messages:
    10
    can't wait, only thing that is missing for automated air lock on my mp station
     
Thread Status:
This last post in this thread was made more than 31 days old.