phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
I've gotten a limited religions component working and fully functional for RevDCM. Had to completely abandon the way others have tried doing it, as things are completely different in the SDK then Python and I've never been satisfied with the functionality of other modcomps that implemented this feature; so it was quite a bit of work. Good experience though, lots of interweaving functions I had to track down using the debugger, but in a fairly straightforward not banging your head against the wall way.
Only problem left with this feature is that the religion icons on the tech list -top center of the screen in the main interface, that pops up when you need to pick a tech- still appear on religions that can't be founded. In the SDK I've only found the a reference in CvDLLButtonPopup that looked good, but adding logic there didn't fix it (though I'm fairly certain based on the code there that this will fix the same issue with icons on recommended techs, just haven't checked yet). I browsed through CvMainInterface, and did a cursory search looking for references of FoundReligion, but nothing immediately stood out. I'm hoping one of you interface gurus on the BUG team can point me toward the right location, as I really don't want to have to scour all the python files related to the interface with a fine tooth comb; but will if I must. So please let me know if you have an idea where this is handled.
Only problem left with this feature is that the religion icons on the tech list -top center of the screen in the main interface, that pops up when you need to pick a tech- still appear on religions that can't be founded. In the SDK I've only found the a reference in CvDLLButtonPopup that looked good, but adding logic there didn't fix it (though I'm fairly certain based on the code there that this will fix the same issue with icons on recommended techs, just haven't checked yet). I browsed through CvMainInterface, and did a cursory search looking for references of FoundReligion, but nothing immediately stood out. I'm hoping one of you interface gurus on the BUG team can point me toward the right location, as I really don't want to have to scour all the python files related to the interface with a fine tooth comb; but will if I must. So please let me know if you have an idea where this is handled.