LoneTraveller
Sep 27, 2009, 09:50 PM
Hello modding community,
I have problems with the following and would like some help with it :
- How do modders take a map from mod and transfert it to another without having the initial mod's sdk/python attached to it ? Everything I tried ended up with errors stating that the program can't find the files relating to the initial mod. I just want to rip the map and plug it in another mod.
- I have a concept I would like to see realized. I know it requires SDK but haven't found where to look to accomplish it. Here is the general situation : Let's suppose that a civ has multiple cities on it's mainland and a city on another island which are not included in the same territory area. Suppose also that "the other island" contains a key resource (oil, iron, etc).
How would I make it so that only a certain resource of the "other island" is not shared with the "home island" ?
The second part of this concept is to create a cargo ship (ex: oil tanker) that would sail from "other island" to a "home island" port and then unload it's cargo. Unloading would have the effect to give all the cities on "home island" access to the resource for a couple of turns. When those turns are done then "home island" production requiring the resource would freeze until another cargo ship unloads again.
I guess I would define an integer named "iNumTurnsLeftOil" in the object relating to the territory (but I'm uncertain if this is in the CvArea.cpp file). A ship unit would be created with an action attached that when activated would increase the integer by the number of turns defined. An icon somewhere on the GUI would indicate the number of turns left.
Any ideas or advice would be appreciated
Thank you for your time
EDIT: I forgot another problem.
I have added custom great generals to a mod but now the colors of the models change each time I load the mod itself. One time it uses an .dds from the same folder and then some other times it uses a different one (though always the same ones). I has happened to me before but I don't remember how to fix it.
I have problems with the following and would like some help with it :
- How do modders take a map from mod and transfert it to another without having the initial mod's sdk/python attached to it ? Everything I tried ended up with errors stating that the program can't find the files relating to the initial mod. I just want to rip the map and plug it in another mod.
- I have a concept I would like to see realized. I know it requires SDK but haven't found where to look to accomplish it. Here is the general situation : Let's suppose that a civ has multiple cities on it's mainland and a city on another island which are not included in the same territory area. Suppose also that "the other island" contains a key resource (oil, iron, etc).
How would I make it so that only a certain resource of the "other island" is not shared with the "home island" ?
The second part of this concept is to create a cargo ship (ex: oil tanker) that would sail from "other island" to a "home island" port and then unload it's cargo. Unloading would have the effect to give all the cities on "home island" access to the resource for a couple of turns. When those turns are done then "home island" production requiring the resource would freeze until another cargo ship unloads again.
I guess I would define an integer named "iNumTurnsLeftOil" in the object relating to the territory (but I'm uncertain if this is in the CvArea.cpp file). A ship unit would be created with an action attached that when activated would increase the integer by the number of turns defined. An icon somewhere on the GUI would indicate the number of turns left.
Any ideas or advice would be appreciated
Thank you for your time
EDIT: I forgot another problem.
I have added custom great generals to a mod but now the colors of the models change each time I load the mod itself. One time it uses an .dds from the same folder and then some other times it uses a different one (though always the same ones). I has happened to me before but I don't remember how to fix it.