Replies: 1 comment 1 reply
-
Updated your post for you to fix the code tags. (Edit your post to see how they were fixed - three backticks followed by the language to open, then three backticks to close). However, I'm not sure what's going on in terms of what's wrong, but I could offer the following potential idea - If it's causing a slowdown and the numbers jumping around, there's a chance that something is running too frequently, or the previous iteration hasn't finished it's update before it runs the code again to update the properties. Pseudo explanation:
For whatever reason, the second time the file tried to be opened, there was a delay - causing it to complete after the third iteration of the loop. This is entirely hypothetical though - without knowing what's in the text file, or how often it's updated, or where that data is coming from, it's quite difficult to diagnose. |
Beta Was this translation helpful? Give feedback.
-
Hi
I have written a plugin for Simhub that reads data from a text file and adds the properties to Simhub, but for any properties that are updated via the SetProp method they seem to jump around but only in the Additional Properties tab, it does not translate through to the dash for some reason.
I have used your plugin as a reference on how to add and set the properties and was wondering if you had come across something like this while developing your plugin, the numbers are not random either, they appear to be previous values like they are stored somewhere and then displaying randomly.
It probably wouldnt bother me except there is a definite slow down in the dashboards while these properties are not behaving themselves.
Any help would be appreciated
Thanks
Total amateur when it comes to coding but here it is anyways :)
EDIT: not sure what is going on with the code tags but I couldnt make it work, not much hope for me if I cant even get that right
Main Plugin Code
Code for adding and setting property values
Beta Was this translation helpful? Give feedback.
All reactions