Similar MSFS 2020 issue: : nope, in 2020 works ok!
Bug description: it looks like UPDATE_ONCE never runs, sample code, in 2020 works,
code assign a random value to the Zvar,
driving the visibility of the node,
in 2024 Zvar is always zero
(forcing the var to other values shows expected result, see screenshot
sample project attached
(actually the main goal is to randomly display people with modelAttachements, so I setup the object like so)
six points around each table, people should have 70% probability to show, in 2020 they are ok (ish, a bit shy, I would expect more crowded table with 70%)
but in 2024 restaurant is out of business
btw also looking for a way to randomly swap them in their seats (without having to merge all the models in a single one with multiple nodes if possible)
Our theory at the moment is that it’s an issue with the rand seed initialization.
It would be identical for every objects and therefore the first rand would always return the same value.
We have a fix candidate and we need to do some more testing. This would be fixed in SU3 at best, though.
This is very unfortunate, is there anything you can do ? It’s a clear regression from SU1 and it will affect a lot of released products.
While this is not an issue as long SU2 is in Beta (we can always tell users to exit the Beta), it will be a big problem with SU2 will came out and everybody will be forced to update.
Forcing us to change completely the whole structure of released products that worked perfectly fine until SU1, and forcing us to do it again with SU3.
Yes, it surely breaks GSX, we use ModelAttachements in many objects.
What’s weird is that not all of them seem to be affected, but it’s not clear why, and it’s a long process even testing each one to see which ones are affected, considering we have hundreds of them.