So I decided to try out my idea for a new Japanese UB. I edited BuildingInfos.xml and CivilizationInfos.xml to change the Zaibatsu from a Factory replacement to a Pagan Temple replacement, changed its prereqs (Assembly Line to Nationalism+Pantheon civic) and also changed what it does. The Civilopedia reflects my changes accurately, but when I load the game Japan can still build the default Pagan Temples and cannot build default Factories *or* Zaibatsus. What did I miss?
While the entry in BuildingInfos was changed to have the zaibatsu be a replacement for pagan temple with new effects and requirements. The civilopedia shows the right information so I don't know why the game itself does not
Do you have Varietas Delectat installed? VD uses a modular CivInfos.xml which replaces the one in the Assets/XML/Civilizatons. You have to edit the one from VD to include the changes.
I have the Varietas Delectat .fpk file that comes with the default installation of DoC. How do you edit that? I downloaded PakBuild but it doesn't work
Edit: Nevermind; found what you were talking about thanks to your sig. ty
I have modded this in and mostly like it. I don't find +1 from sea tiles to be all that much; the unproductive cities have about the same military production with their new UB as they do with Levy Armies so if anything all it does is prevent Japan's military production from being crippled exactly when it should be getting much better. One problem is that running Pantheon in the Industrial era is terrible for your stability and that you miss out on the Fanaticism bonus which Meiji Japan should have, so I'm going to add +25% military production and see if I can eliminate the "outdated civic" penalty for Pantheon. I'm also not sure how to restrict this to the Home Islands only; latitude restrictions are easy like with Space Elevator but I don't think there's a tag for longitude, is there?
1.: Apparently there is some sort of "Rise of Civilization" modifier that makes techs cheaper for the first few turns after a civ has spawned? Where do I set the extent as well as the duration of it?
2.: If I wanted to make building a Confucian Temple trigger the founding of Taoism instead of researching Calendar similar to Hinduism and Buddhism, how would I go about it?
2. Search in Religion.py for "onBuildingBuilt". There you can find the Buddhism-Hindu Temple example.
(And set the prereqReligion to NONE in ReligionsInfo.xml)
How hard is it to make an event that can switch civics ?
I think you have no choice but to use python, but do I have to learn to code, or is it possible to use some function that already exists ?
Maybe events already include civic changes using XML. Otherwise it is not difficult to code at all, changing a civic is only a single line. The challenging part is associating your Python code with the event XML, but there are good explanations on that in the tutorials section.
Is there a way to save a spreadsheet file so that it has the formatting like a python tuple? I want to turn a spreadsheet of data like this:
-1 -1 -1 -1
-1 -1 -1 -1
into a text file like this:
(("-1","-1","-1","-1"),
("-1","-1","-1","-1"))
I tried saving as a CSV, and I can get the quotes and commas, but I can't get the parentheses to show up correctly.
Thanks, I think that will save a lot of time going forward.
I'm working on a very large custom map, maximum tile coordinates x=321, y=204. I'm getting strange graphical problems. Dark horizontal lines appear at certain y values within the range x=205 to x=321. It's very suspicious that the lines begin at x=205 and extend all the way to x=321 since that means that there is a 204x204 square on the left side of the map that is perfectly unaffected by the graphical problems. When scrolling past these dark lines, there also appears to be a small amount of video lag.
I was reading through the thread's previous discussions on modifying the stability maps. There was talk of using worldbuilder to edit the map, but also talk of compiling the DLL. I wasn't able to glean a general conclusion, and some of the discussion was 3 to 5 years old.
If I want to change the stability maps, can I just use worldbuilder and save it as a new scenario, or has that functionality been abandoned? Also, would I have to compile the DLL to change the stability maps, or can I just edit the python code?
I was reading through the thread's previous discussions on modifying the stability maps. There was talk of using worldbuilder to edit the map, but also talk of compiling the DLL. I wasn't able to glean a general conclusion, and some of the discussion was 3 to 5 years old.
If I want to change the stability maps, can I just use worldbuilder and save it as a new scenario, or has that functionality been abandoned? Also, would I have to compile the DLL to change the stability maps, or can I just edit the python code?
You can use the worldbuilder to edit the stability maps. There is an button that exports the new maps to a text file. The files can be found in the exports folder in the DoC Main folder. You can directly copy-paste the code from these exported files into the correct python files.
So to clarify, posts talking about editing the DLL for tile stability are outdated. The source of truth for it is Areas.py. You can either edit it directly, paste the code into a spreadsheet editor (e.g. Excel) or use world builder to do it. But in the end you always have to paste your changes back into Areas.py.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.