EmperorFool
Deity
I'm glad that worked. Part of the reason for the "magic" is that I'm learning Python as I work on BUG combined with Civ4's "interesting" handling of Python and initialization. As I find better ways to have BUG work, I add them in.
The other problem is that most mods out there are written to work with CvCustomEventManager. This really isn't the best way to write it, but it was at the time. It requires a lot of "cruft" that just isn't needed by Civ4 or BUG.
The last difficulty is that I write documentation for coders, and it's very hard to write documentation that is to be used by people who range from beginners to experts. When I read docs, I want short reference guides as I know how to look up the things I don't understand. Someone who doesn't know programming won't know the difference between a module- and class-level function or why you'd want one over the other.
I wonder, will providing several working examples be enough for others to rewrite mods they want to merge with BUG? If I were doing the merges, I'd want to do as little work as possible (see Reminder Mod). But I've added features to BUG to make it easier to write new mods that work in BUG.
This is why I am very happy to get your feedback. I wish more modders would speak up about what helps and what was too complicated.
The other problem is that most mods out there are written to work with CvCustomEventManager. This really isn't the best way to write it, but it was at the time. It requires a lot of "cruft" that just isn't needed by Civ4 or BUG.
The last difficulty is that I write documentation for coders, and it's very hard to write documentation that is to be used by people who range from beginners to experts. When I read docs, I want short reference guides as I know how to look up the things I don't understand. Someone who doesn't know programming won't know the difference between a module- and class-level function or why you'd want one over the other.
I wonder, will providing several working examples be enough for others to rewrite mods they want to merge with BUG? If I were doing the merges, I'd want to do as little work as possible (see Reminder Mod). But I've added features to BUG to make it easier to write new mods that work in BUG.
This is why I am very happy to get your feedback. I wish more modders would speak up about what helps and what was too complicated.