[/QUOTE]
You don't need to use DLL to add Text Keys, plenty of the Lair Exploration features are already using TXT_KEYs which aren't referenced from anywhere else.
Not sure what you are saying about needing the list of strings to be honest.
Yes, I've noticed that TXT_KEYs can be added willy-nilly. But I need add one TXT_KEY_MODULAR_PYTHON in one module, and then add a TXT_KEY_MODULAR_PYTHON in another module, and of course there needs to be one, or a few, in base Fall Further as well.
I'd only be able to get at one of those strings, I need access to them all. In order of mod priority, so I can tell which mods are supposed to overwrite the other ones.
I suppose some sort of naming convention could be used, if there is a way to access all keys. I could get all TXT_KEYs, filter away any that don't start with TXT_KEY_MODULAR_PYTHON, take the ending digits as a priority and consider the middle part the name of the module.
Previous attempts to implement modular approaches to python have all been semi-modular, they had a single file which you had to place re-directs in or something along those lines. And each of them has been a fairly significant performance hit even when not used.
You do realize that you are not-using one of those attempts, right?
Anyway, yes if some file needs to be merged when installing mods, it's not modular.
Performance could be an issue, but I'm hoping to make up for some of that by avoiding the mass of if-elif-elif... statements. Or even worse, mutually exclusive if-s. No way to find out other than trying.
Spells and events are the most python heavy areas in general, but what modders find themselves wanting to use python for the most often is actually the numerous callbacks in EventManager (note, Events are done in RandomEventManager), or tweaks to screens, most notably CvMainInterface. If the approach doesn't offer access to changing or overriding those files as well, you still can't claim to have made python completely modular.
I'm looking at callbacks in the event manager. The whole point of events is nearly to make things modular in the first place.