Quick Modding Questions Thread

Anything over 25 MB gets rejected and my zip file is just 48 MB. I was under impression that 146 MB was the magic limit number, has it been changed recently?
Maybe you reached the limit of total files volume uploaded. Post attachments count.
 
Hi all, I'm wondering about the advisor tags on each building/tech/unit, like ADVISOR_SCIENCE on the Library.

Do they actually do anything, or are they just cosmetic?

Is it possible to add new advisor tags? For example if I wanted to reassign Jail and similar buildings to an ADVISOR_ESPIONAGE? I can't find where they're declared.
 
Turns out I was blind, there's a CIV4AdvisorInfos.xml file where they're declared. From initial testing, adding new ones is easy.
 
Can someone tell me why this model is causing CTD? I was working on it with NifScope
 

Attachments

What is the safest and most efficient way to extend the available slots in the GameFont.tga files? I am running out of slots and would like to add more, and it would be fine to either add another row or add a few slots to the right in every row.

GameFontEditor seems to not support this functionality, and just opening the TGA file in e.g. GIMP loads it as a transparent layer where it seems the editing of the underlying pink/white boxes that Civ4 expects is opaque to me. Is there a different tool/plugin to help with this or is the best approach still to export the two TGA layers to BMP and add more slots manually?
 
Is it possible to control Improvement buildability via python code?

What I want to do:
Preserve improvement could be placed on certain features (Natural Wonders) OR certain resources (Elephant, Fur, etc) OR if there is another Preserve improvement on a neighboring tile BUT you cannot build more than (let's say) 8 within a 3 tiles range of a city.

Do we have python code for such behavior?
 
Is it possible to control Improvement buildability via python code?

What I want to do:
Preserve improvement could be placed on certain features (Natural Wonders) OR certain resources (Elephant, Fur, etc) OR if there is another Preserve improvement on a neighboring tile BUT you cannot build more than (let's say) 8 within a 3 tiles range of a city.

Do we have python code for such behavior?
I'm pretty new, but I think canBuild() in CvGameUtils.py is where you'd put this check.

You'd start with `if iBuild == gc.getInfoTypeForString('BUILD_PRESERVE')`. Then `pPlot = CyMap().plot(iX, iY)` to get the plot and `pPlot.getWorkingCity()` (or maybe `gc.getMap().findCity()` and `gc.getMap().calculatePathDistance()`?) to find the city to count from. Return 0 if there's no city in range. Then loop over the city's plots to count the number of preserves around it.

If the city isn't capped out, then you'd finally check that plot's features, bonuses, and its neighbouring plots' improvements.
 
It was asked in CoM thread but (1) I don't know the answer and (2) it's not a mod specific but a more general question:
Hello.
I ask a question already made 100 times.
Playing in 2k resolution I find UI's texts and fonts terribly small. I know there is a file to edit (civ4theme_common) but my attempts were disastrous. Do you have a guide or a pre-edited file?
Thank you
 
Back
Top Bottom