So, I'm glad to report that your suggestion is working.sdrubble wrote:@Eric,Well this is auspicious news. In other words I can just stick my 'NEW CODE' block above in place of the former single line for the turret......the original is an array with strings. And every sting can be replaced by the new, corresponding dictionary for the new style definitions. You can even mix new and old style definitions to obtain an arrays filled with strings an dictionaries.
That's the quickest solution I can see. I'll trust you that it will indeed work (that's the main quest), although the code will indeed look UGLY (well, Frankenstein also did BOTH, so that's not a real issue).
I'll test this first with this turret which is almost 'ready', and later propagate to the other turrets. In any case I'll come back with whatever results ...
While I'm doing this one or two blocks of code at a time - recode, comment, check, flight test & repeat - about half of the turrets are now properly working as new dict entries in the array, alongside with the still remaining one-liner elements. The latter will all disappear shortly.
And indeed, I can only agree with you... editing XML on a text editor is a PITA. At the moment, 1000+ lines and growing. And I certainly won't use your Python script - as it would chew and spit the comments, without which I'd be totally lost. Ten turrets mean, since I'm keeping the general subentity layout of the original, thirty blocks of code just for the turrets. Really fun work, man...
While of course, the end flying result is becoming increasingly awesome with each test round !
Cheers