Modmodding Q&A Thread

Apparently you haven't been looking hard enough. ;)

Spoiler :
attachment.php
 

Attachments

  • cogitoergosum.png
    cogitoergosum.png
    349.8 KB · Views: 217
If you're modding 1.13, things are a bit more complicated. Best do a full text search for the tag you're looking for in the Text folder.
 
Apparently you haven't been looking hard enough. ;)

Spoiler :
attachment.php

Aww, you went into Paint just to make a frivolous point to me! :love:

If you're modding 1.13, things are a bit more complicated. Best do a full text search for the tag you're looking for in the Text folder.

Actually, I'm copying things off of DoC. I assume from this that I have to update to a later version, so that's what I'll do.
 
Well even I just run the full text search in Notepad++ when looking for a specific tag.
 
How do I edit UHVs? Because apparently I have to collect 5000 gold in Colombia's 3rd UHV even though the instructions say it should be 3000 gold.
 
Assets/Python/Victory.py.
 
I'm currently trying to import a Polynesian Unit Art Style for Varius Deletict. But I'm having trouble getting the art to appear correctly in-game.
There is no crash to desktop, xml errors or python errors that pop up. The unit shape appears correctly however most of the units are pink and have no animation. The xml is correct as far as I can tell. I just want to know what some common mistakes of importing unit art are.


On another topic, do you prefer any of these buttons over the current ones for inclusion in the mod. I can give a reason why I think they need a new button if you like but most are self explanatory. They have better pixel quality when viewed in-game.
 
I'm currently trying to import a Polynesian Unit Art Style for Varius Deletict. But I'm having trouble getting the art to appear correctly in-game.
There is no crash to desktop, xml errors or python errors that pop up. The unit shape appears correctly however most of the units are pink and have no animation. The xml is correct as far as I can tell. I just want to know what some common mistakes of importing unit art are.

Pink units means that the nif file can't "find" the dds file which does the coloring. The usually means that the dds file is missing/in the wrong folder/renamed.
(If you open the nif file with NifSkope, you can find which dds files the nif file uses)

Animation are done with the kfm files. I think the kfm file you refer to in UnitArtInfos is missing. Or you path you entered is wrong.
Sometimes, the units use the kfm file of a vanilla unit. In that case, you should copy the path of that unit.
 
On another topic, do you prefer any of these buttons over the current ones for inclusion in the mod. I can give a reason why I think they need a new button if you like but most are self explanatory. They have better pixel quality when viewed in-game.
They all look good, the game would benefit a lot from them.
 
Is it a good idea to carry over wholesale the personalities of leaders in DoC to BTS? Did you alter them, to make them play their historical roles better?
 
Most AI personalities of new DoC leaders are copies or near copies of existing leaders (the XML makes note of this in comments). I have modified a couple of them in a few cases, like making the Roman leaders more aggressive and several leaders less willing to vassalize. The introduction of the slave trade diplomatic interaction also made the leader XML strictly incompatible (you need to remove references to slave thread in the contact intervals etc.).

Since DoC leaders mostly do not bring that much new to the table I think it's better not to use them.
 
They all look good, the game would benefit a lot from them.

Are you sure you like them all?
The Great Generals currently have a red background but I changed that to green to match all the other great people; and you like that?
The corsair currently has quite a cool unique button but I changed it to match all the other ships.
The tibetan University I could never understand what the button was supposed to represent so I changed it to something that looked like a building.
You like the Statesman Specialist? I think it looks quite odd. (just better than the current one)
 
I'll check against what is currently in the game later :D
 
I am now working on the new civics roster of my modmod, and will thus rename (not only the ingame description but also what they are called in the files, so e.g. CIVIC_AGRARIANISM is renamed to CIVIC_SERFDOM) the following civics:

Agrarianism
Environmentalism
Fanaticism
Industrialism
Public Welfare
Scholasticism
Secularism
Theocracy

I know that I will have to edit at least these files (in addition to CivicInfos and the scenarios themselves of course):

CIV4LeaderHeadInfos.xml
Consts.py
Stability.py

Are there any other files I have overlooked?

Stability.py handles pretty much everything stability related, yes? So when I completely revamp Theocracy and turn it into Oligarchy, which shouldn't affect religion in any way and should indeed be pretty much neutral to stability, just deleting all pieces of code that include iCivicTheocracy in Stability.py would be enough?

Edit: Central Planning! Communism! Russian UHV! Dynamic names! I knew I was forgetting something! DynamicCivs.py for the names, I got that, but I think I might have discovered an inconsistency: In that file it makes it seem as if any civ is considered communist if it runs Central Planning while not also running Vassalage, Absolutism or Theocracy, but in Victory.py the code for the Russian third UHV says:

Code:
		if isPossible(iRussia, 2):
			if countPlayersWithAttitudeAndCivic(iPlayer, AttitudeTypes.ATTITUDE_FRIENDLY, (3, iCivicCentralPlanning)) >= 5:
				win(iRussia, 2)

Which makes it seem as if the only condition that is checked here is Central Planning, disregarding other civic categories. Am I overlooking something or did you?
 
Which makes it seem as if the only condition that is checked here is Central Planning, disregarding other civic categories. Am I overlooking something or did you?
What is wrong about that?
 
What is wrong about that?

Do we have to repeat the whole Saudi Arabia is not communist conversation? Even disregarding that, if the definition of communist is different for dynamic names than it is for the Russian UHV that is just inconsistent.
 
The diplo music for Sobieski says 'Sobieski_Middle.' Where did you get it from? Seems like there might be an early and late version as well.
 
History Rewritten I think. And I have no idea.
 
Really? What do their leaders use?
 
Back
Top Bottom