fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    issue with variables changing in blocks

    Bug Reports
    2
    3
    800
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dscoles last edited by

      Consider this an FYI... I am not expecting that you can find this issue with the small amount of information that I can provide. And, I am not sure how to reproduce this.

      I have a LOT of blocks containing variables that are no longer the same name as I assigned to the blocks. In other words, I assigned one variable and now I see that a different variable is being used as the assignee.

      I am certain that these blocks were not assigned the variables, because in a number of instances the variables that are now getting assigned (in Modify Variable blocks) are setting-only variables for by algorithm. In other words, in specific cases, these are variables that I set up and clicked the INPUT checkbox for them. I use them ONLY for my indicator settings. I do not ever try to change them programatically. Plus, a large number of variables have changed. [I know that they should have been set up as Constants, but I did not know about constants at the time I created them.] BTW, "MODIFY VARIABLE" blocks are not the only places that the variables have changed out from under the original settings.

      There are four things that I have done over the past week or so that may contribute to this issue.
      One is that I have deleted a lot of variables.
      The second is that I have moved a lot of variables in the list.
      The third is that I have created projects for validating specific logic and then copied in the blocks to my primary project after getting them to run like I want.
      The fourth is that I have imported XML for this project from another project.

      There is one other thing that may contribute...

      You have stated that you like to keep things simple and small (my interpretation of your statements.) THIS EA is not simple OR small. It contains 85 variables, 6 constants and 211 blocks.

      I can send you an XML of this if you would like, but I cannot imagine that will help in determining how these variables changed.

      Some time after I have the EA functioning, I could make a copy and play around with it to see if I can reproduce the issue. It is tough because the only way to find the changed variables is to look at each of the blocks... quite time consuming of course.

      All the Best,

      Dwight

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        There is no need to try to reproduce the problem, I think I know it's roots. Such thing can happen if you copy/paste blocks from one project to another. The problem is that variables are assigned by some ID number, something like 1, 2, 3... Their names are secondary properties. When you copy/paste blocks with variables, only their ID numbers are copied. How to solve this... in the Variables panel - rename all the variables that have wrong names. And for now, better don't copy variables between projects.

        Why is that... well, this was my initial decision to make it that way. I just wanted everyone to be able to give human-like names for variables, like "This is my variable", but obviously this was bad decision. At the time I think that there was no way to copy/paste blocks between projects, so everything was fine.

        Now I actually reprogrammed the whole thing and variables are assigned by their names. But this is too big update that I am preparing from 1 yeas, so I can't just put it there. I'm almost done, by the way 🙂

        1 Reply Last reply Reply Quote 0
        • D
          dscoles last edited by

          Thank you. I look forward to your new version. (Nothing wrong with the current FXDREEMA though! It ROCKS!)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          B
          A
          T
          R
          T
          N

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors