Good morning, Tom. Thank you for your answer. I have to puntualize that I'm using XMLTOOLS for P3D v4.
What I have done, schematically is as follows:
Update section 1
joystick button assignation 1
joystick button assignation 2
..............
joystick button assignation 12
/Update section 1
Update section 2
key assignation 1
key assignation 2
/Update section 2
Update section 3
key assignation 3
key assignation 4
..............
key assignation 11
/Update section 3
Update section 4
key assignation 12
key assignation 13
key assignation 14
/Update section 4
With this code, assignations 11, 12, 13 and 14 do not work. But if I change the order and I put Update section 4 before Update section 3, then assignations 12, 13 and 14 do work
but assignations 8, 9, 10 and 11 do not work. This tells me the code of 12, 13 and 14 is correct. As an example, this is the code for assignation 13:
Code:
'u' (>C:XMLKEYS:KeyName,string)
'(L:nav source pilot, enum) 0 == (L:nav source pilot,enum) 2 == 0 1 (L:nav prv pilot, enum) rng && || if{ (>K:VOR1_OBI_INC) }
(L:nav source pilot, enum) 1 == (L:nav source pilot,enum) 2 == 2 3 (L:nav prv pilot, enum) rng && || if{ (>K:VOR2_OBI_INC) }' (>C:XMLKEYS:KeyString,string)
(>C:XMLKEYS:KeyCaptureOn,bool)
Regarding the size of the code, I have to say that all the code is in a file which is 17.3 Kb long.
It's like if the system had not enought time to reach the last 4 assignments. But I have tried to run the update sections in different moments of time with a trigger variable and still
it does not work.
Just to illustrate it, if I do the following
moment1 --->Update section 1
moment2 --->Update section 2
moment3 --->Update section 4
moment4 --->Update section 3
I have the assignments in sections 1, 2 and 4 working but assignments in update section 3 don't work, regardless of the order in which the sections are written. I have also changed
update frequency to 2 with the same results. If I do this:
moment1 --->Update section 2
moment2 --->Update section 3
moment3 --->Update section 4
moment4 --->Update section 1
Then I have all the key assignments working but the last four joystick button assignments don't work (again, regardless of the order of the update sections in the code). I have tried even dividing the code into two different files or gauges with the same (bad) results.
I have tried with code shortening in all assignations and it does not make any change.
In sum, XMLKEYS for P3D v4 acts like if it had a limitation in assignments and once this limitation is reached, it does not accept more key/joystick assignations.
Sorry for this long post, but I think it is necessary to solve what could be an important flaw in XMLKEYS. Regards.