n4gix
Resource contributor
- Messages
- 11,674
- Country

Well, I learned something that I never realized before...
...there is a limit to the amount of XML one may have in a single <Update> section!
I just spent a frustrating sixteen hours trying to find what "went wrong" in the logic 'gauge' for my B737-200 project. Script sections that have always worked suddenly stopped working, but curiously it appeared to only be sections towards the bottom.
After examining closely every stinking line of script, testing logical 'blocks of script' individually, I could find no errors at all!
Finally, I noticed this simple XML statement:
The (L:CabinAltitude,number) variable was never being updated!
Moving this single progressively higher up the chain of logic, it finally began to be updated. That was when I finally understood that FSX simply could not process the entire <Update> section of script in a single cycle!
I guess that having just a bit over 16,000 lines of script was busting some sort of boundary. Once I cut out about 5,000 lines of script for the pressurization logic and pasted it into a new, separate gauge, suddenly everything started working properly again...
...there is a limit to the amount of XML one may have in a single <Update> section!
I just spent a frustrating sixteen hours trying to find what "went wrong" in the logic 'gauge' for my B737-200 project. Script sections that have always worked suddenly stopped working, but curiously it appeared to only be sections towards the bottom.
After examining closely every stinking line of script, testing logical 'blocks of script' individually, I could find no errors at all!
Finally, I noticed this simple XML statement:
Code:
(L:B737_PressCabinAlt, number) 100 / (>L:CabinAltitude,number)
Moving this single progressively higher up the chain of logic, it finally began to be updated. That was when I finally understood that FSX simply could not process the entire <Update> section of script in a single cycle!
I guess that having just a bit over 16,000 lines of script was busting some sort of boundary. Once I cut out about 5,000 lines of script for the pressurization logic and pasted it into a new, separate gauge, suddenly everything started working properly again...






