embryodead
Caliph
Yeah! What exactly did you do? (It would probably be harder for me to find it in the next RFC Marathon update.)
I moved all get/set functions to StoredData (well, tested with Stability so far) + what I've explained in the last post, i.e. no instantiation. All modules use "from StoredData import sd" (it's not initialized in Event Handler).
EDIT: to make it clear, scriptDict is member of StoredData created on __init__ but since there's just one instance of StoredData (sd) it's accessible across all modules. In other words, modules import one same instance, not a class. sd.load() and sd.save() do the pickling.
You mentioned a sort of "modders RFC edition" in a post awhile ago? What do you say about we join up and make RFC Marathon the next generation of RFC? That would mean minimal changes to actual gameplay (except balancing the different levels of play) but added support for modding and customization. (I believe this is already what you're doing, but I'm yet to actually look at your work.)
What I'm looking to do myself is to start going through Rhye's Python code and see what improvements could be done for performance. And also divide key features into easily accessible methods, instead of the 100s of lines of code that needs to be processed as is now. Unless you're already doing this I could share with you the fruits of my own labor. And then I'd be able to use RFC Marathon for my own future modding.(The final version of PyScenario would be a add-on to RFC Marathon, obviously.)
Frankly, RFCMarathon was just a request, what I've been doing is that Middle Eastern mod which is done but with 36 civs and some extra stuff it's a bit slow hence the attempts to improve turn times. We can work on general RFC improvements though, for sure. The two main things that help are the CAR mod and this de-pickling I guess. I also disabled a few more python callbacks in the SDK. With modding-friendly setup it's a matter of un-hardcoding hundreds of functions and values scattered over different SDK files though I guess it's a topic for RFC modmod forum.