Quick Modding Questions Thread

If an XML datum is given twice, the latter governs; the former is ignored. Is this correct?

I ask because Beyond the Sword\Assets\XML\Civilizations\CIV4LeaderHeadInfos.xml inadvertently gives a few XML data twice. For example, it gives 15 and 5 as values for Willem van Oranje's MEMORY_TRADED_TECH_TO_US.
 
AFAIK if it is an integer (like :strength: of a unit) it is always the later - except the value is 0, than it is ignored.
If it is a list, than the later is added to the formal one. E. g. starting techs of a civ are Fishing and Hunting in the first place, than Fishing and Agriculture in the second, than you will have a list with Fishing, Hunting and Agriculture.
 
  • Like
Reactions: Oaq
With events is it OK to have many triggers calling the same event?

Greetings! I am looking to change how much gold per city Holy Shrine produces, but can't seem to find the place to change it, any hints? Thanks
Isn't that done in the ReligionInfos.XLM using the GlobalReligionCommerces list?

edit I decided I should check with the Modiki and it says GlobalReligionCommerces is the place.
 
Last edited:
How do you change water effects in the game? Whenever I download water texture packs I get an extra file with wave.nifs. How do I enable the wave.nifs to work?
 
I'm considering making multiple modules that each add a set of background music track for a particular era. Is it possible to have more than one module that changes the music of a given era and having them be compatible with each other, i.e. installing both modules results in both their playlists being part of that era's soundtrack?
 
I have a music mod too. In my case there is only one module plus the original EraInfos. My Xp is that lists as these work cumulatively and I am 99.99999% sure that it will work just the way you described ;)
 
You mean having multiple modules with multiple EraInfos will result in the cumulative playlist from all these EraInfos?
 
That's awesome, thanks for the confirmation!
 
Last edited:
You are right. It is Choose Religions that comes from Vanilla. In that case "we in C2C" probably got it from the Revolution mod.

I did a quick search in the mod component section on"limited" and two came up on limited religions One by ModifiedA4 (requires BUG 4.4) and another by Orion Veteran (comes in both standard and WoC versions). Both are Python mods.


Cool, thanks! I will check them out!
 
Hi,
I'd like a copy of @hrochland's Cityset for all Hobbits. The link in the downloads is broken and hrochland does not have an archived copy.
Has anyone have a downloaded copy of this cityset or is anyone aware of a mod that is using it?

thanks
 
Anyone knows how the AI weighs yield/commerce/gpp points of specialists?
I want to add a new kind of specialist that has no yield or commerce values only :gp: but a little worried if the AI would use it or not. Any experiences in this regard?
 
I quickly browsed the code, and GPP are assigned a value by the AI. How much exactly depends on the circumstances, but in most situations it looks like 1GPP is valued less than any yield/commerce point. The value of GPP increases if the AI runs a culture strategy and wants to create Great Artists, or has a shrine to create a Great Prophet for, and in general if it's close to generating a great person. However, since any specialist is usually in competition with the other specialists, or working a tile, I would guess the AI would always end up preferring those options. Maybe once you're in the 20 GPP area it's different.
 
THX!

Another question:
Anyone knows what happens if: A civ has built a Project, the Project enables a building or a unit (through EveryoneSpecialBuilding or EveryoneSpecialUnit). Than this civ is destroyed. Will the others be able to create the building/unit?
 
Back
Top Bottom