I'm stuck on the finishing line with a project because I can't get the canUpgradeAnywhere callback to CvGameUtils to register, at all. I basically put a print statement in the method to see when it will fire - never as it turns out. And I can't find anything to enable in PythonCallbackDefines.xml either.
Searching these forums for the past hour only rendered me this. According to these folks the callback isn't even made from the SDK but is rather hard-coded into the executable. But my question is merely: how does it work?
What I need to do, in order to finish this project, is to allow some units of some player to upgrade units outside of cultural borders. Now, I'm not even sure if this is doable, because how would those units have access to the required special resources?
So the whole callback isn't making much sense anyway. 
Searching these forums for the past hour only rendered me this. According to these folks the callback isn't even made from the SDK but is rather hard-coded into the executable. But my question is merely: how does it work?
What I need to do, in order to finish this project, is to allow some units of some player to upgrade units outside of cultural borders. Now, I'm not even sure if this is doable, because how would those units have access to the required special resources?

