salaminizer
Colorado Internacional
Hi,
First of all, I don't know if it's possible to do what I want with Python, so I went directly to the SDK.
I want to have cities connected either by jump lanes (that I want to get rid of LATER) or by a special building.
I've changed CvCity.cpp:
I've added the buildings to two systems using the World Builder, and one of the system has a resource, which doesn't appear in the other system screen, and that led me to think that my "solution" didn't work.
So I want to know if it could be done with Python (I don't to have it hardcoded at all) and how would I do that, and if not, how would I do that as well
Apparently there's an old mod that would do that but from what I've seen it's abandoned (More Trade Routes) and in the end didn't feature this
Thanks
UPDATE:
I've changed CvCity::updateTradeRoutes() and added the code above to the function. Now both cities have Trade Routes to the other, however, the resource is still not shared. even if I find it and update here, knowing if it's possible to do in Python will be helpful.
First of all, I don't know if it's possible to do what I want with Python, so I went directly to the SDK.
I want to have cities connected either by jump lanes (that I want to get rid of LATER) or by a special building.
I've changed CvCity.cpp:
Code:
bool CvCity::isConnectedTo(CvCity* pCity) const
{
//return plot()->isConnectedTo(pCity);
return plot()->isConnectedTo(pCity) || (getNumRealBuilding((BuildingTypes)GC.getInfoTypeForString("BUILDING_TRANSPORTER")) == pCity->getNumRealBuilding((BuildingTypes)GC.getInfoTypeForString("BUILDING_TRANSPORTER")));
}
I've added the buildings to two systems using the World Builder, and one of the system has a resource, which doesn't appear in the other system screen, and that led me to think that my "solution" didn't work.
So I want to know if it could be done with Python (I don't to have it hardcoded at all) and how would I do that, and if not, how would I do that as well
Apparently there's an old mod that would do that but from what I've seen it's abandoned (More Trade Routes) and in the end didn't feature this
Thanks
UPDATE:
I've changed CvCity::updateTradeRoutes() and added the code above to the function. Now both cities have Trade Routes to the other, however, the resource is still not shared. even if I find it and update here, knowing if it's possible to do in Python will be helpful.