@DELVAR ether needs fixing or renamed to @DELOBJ #139


  • New
  • Defect
Open
Assigned to _ForgeUser8773666
  • ancienttom created this issue Jul 19, 2014

    What steps will reproduce the problem?
    1.Using the @DELVAR command.
    2.
    3.

    What is the expected output? What do you see instead?
    I expect that '@DELVAR s $Obj.PosX' only removes the variable, PosX from the object and that $Obj.Position would be left untouched.
    Instead, $Obj.Position is deleted also. If this command removes the entire object, this could be a good thing but then it should be renamed @DELOBJ and it's description rewritten to say what it actually does.

    What version of the product are you using?
    VT version 1.2.7 - MC version 1.6.4

  • ancienttom added the tags New Defect Jul 19, 2014
  • ancienttom posted a comment Jul 20, 2014

    Update:
    While troubleshooting a bug that popped up in a script that I previously had working, I found that an integer $Obj.Count that was set up in a sub-script was wiped out upon return to the parent script where it was to be used to set the count on a loop. I then found a '@DELVAR s' that I had placed in another sub-script while working on another totally unrelated game function that I didn't remove because of this problem. Just think of how difficult it would have been to find this misbehaving command if it was stuck in a different script file.

    This demonstrates how dangerous the state of this command is as long as it's named @DELVAR instead of @DELOBJ.


    Edited Jul 20, 2014
  • ancienttom posted a comment Jul 21, 2014

    Update:

    Heres a rub. I just now tried to use @DELVAR to remove all variables on an object with only one command to delete the first string variable. Guess what. It only deleted that one variable and left the other two that I was expecting to be deleted alone. So, ??????????

    I know this issue is real because I have used this command more than once and the same problem occurred each time. This is the first time that it actually did what it was supposed to when I was counting on it's malfunction to do a mass deletion.


    Edited Jul 21, 2014
  • _ForgeUser10221685 posted a comment Jul 23, 2014

    yeah happens very randomly on my server too. Breaks lots of things for me though.


    Edited Jul 30, 2014
  • ancienttom posted a comment Jul 23, 2014

    @laacis2: Go

    I really need this command for reseting variables that run in a loop but I can't use it until this bug is fixed. I also need @DELOBJ, if that one could be created, to use instead of the noisy '/vt delobj' that I have to use now. It wipes out my console list every time it runs.


    Edited Jul 30, 2014

To post a comment, please login or register a new account.