[BNW] Morius Modest Mods Musings

Good to know. I guess if i use
Code:
<Trait_Terrains>
   <Row>
    <TraitType>TRAIT_EXAMPLE</TraitType>
    <TerrainType>TERRAIN_COAST</TerrainType>
    <StrategicResourceQuantityModifier>100</StrategicResourceQuantityModifier>
   </Row>
  </Trait_Terrains>
it Will affect Lakes.

I would like the opportunity to repeat my last question: How to make my custom promotions pre-requisits show in it's description on civilopedia?
 
as I recall there are issues in the Civilopedia and UnitPanel lua files where prereq promotions and promotions that require a prereq are only handled properply from the standard image atlases if the promotions are from the atlases normally used for the Shock, Bombardment, etc. lines of promotions.
 
I've created a new promotion for Denmark that did the same thing that FreePillageMoves Promotions did, plus steal gold from cities. But i'm not guessing right how to delete the FreePillageMoves promotion from the VIKING_FURY trait.
Question: How do you delete part of a Civ trait?
 
Code:
<GameData>
	<Trait_FreePromotionUnitCombats>
		<Delete TraitType="TRAIT_VIKING_FURY" />
	</Trait_FreePromotionUnitCombats>
</GameData>
After the "Delete" command you can add anything back in you need for TRAIT_VIKING_FURY in the Trait_FreePromotionUnitCombats table.
 
I'm halfway through my mod, but he is full of files that i created and i'll not use and i can't delete (in ModBuddy). It says: "Object reference not set to an instance of an object" What this means and how can i delete it?
 
Update: Specialists don't yield faith.
Code:
<Trait_SpecialistYieldChanges>
        <Row>
            <TraitType>TRAIT_WONDER_BUILDER</TraitType>
            <SpecialistType>SPECIALIST_ENGINEER</SpecialistType>
            <YieldType>YIELD_SCIENCE</YieldType>
            <Yield>1</Yield>
        </Row>
        <Row>
            <TraitType>TRAIT_WONDER_BUILDER</TraitType>
            <SpecialistType>SPECIALIST_ENGINEER</SpecialistType>
            <YieldType>YIELD_FAITH</YieldType>
            <Yield>1</Yield>
        </Row>
        <Row>
            <TraitType>TRAIT_WONDER_BUILDER</TraitType>
            <SpecialistType>SPECIALIST_ARTIST</SpecialistType>
            <YieldType>YIELD_SCIENCE</YieldType>
            <Yield>1</Yield>
        </Row>
        <Row>
            <TraitType>TRAIT_WONDER_BUILDER</TraitType>
            <SpecialistType>SPECIALIST_ARTIST</SpecialistType>
            <YieldType>YIELD_FAITH</YieldType>
            <Yield>1</Yield>
        </Row>
        </Trait_SpecialistYieldChanges>

Huh, I swaped Faith for Culture to the Engineer, doesn't work either.
 
Last edited:
I'm halfway through my mod, but he is full of files that i created and i'll not use and i can't delete (in ModBuddy). It says: "Object reference not set to an instance of an object" What this means and how can i delete it?
Did you add these files to the project via modbuddy, or did you simply plop them into the mod's project folder via your browser? If the second method, then so far as Modbuddy is concerned these files do not exist.

If you added them to the mod from within modbuddy but then exited modbuddy and deleted the file directly from your browser, this is possibly your problem.

Otherwsie I don't remember encountering your specific problem.
 
I solved this problem, turns out i only needed to close ModBuddy, then open it again. I never mess with the folders "bare handed" (without ModBuddy).

Next question: How i do the enable/disable options? My mod changes civs traits, all of them. The changes are just minor additions to other playstyles, for example, you want to play with England, but don't care or don't have the opportunity to use naval units, you will still have bonus with city states and great person generation (but minor ones). I'm changing all of them in this way. But, for some reason or another, you want to disable my changes on Sweden, for instance, you could do that on the diabled/enabled document. Now, how do i create this document?
 
I'm making some unique promotions, but it seems there is a limit of promotions a mod can have (35?) Is this true?
 
IIRC the game engine can only handle 255 promotions - although that may have been fixed/removed in a patch by Firaxis - honestly can no longer remember.
 
I had deactivated a bunch of promotions and the problem disapeared. If i recall correctly, your DLL removes this limit.
 
I don't remember ever running into problems from having more than 255 promotions registered in table <UnitPromotions>, but if you have more than 255 strategic view icons the game begins to barf up unit icons on every tile on the map, as I recall.

Looking at the database from the last time I ran modded Civ5 I've got 236 promotions listed in the table, and I'm as sure as I can be that I was able to run the same set of mods along with my Scipio's Rome mod just fine. Scipio's Rome has a boatload of promotions in it. But, as William mentions, it's literally been years since I ran heavily-modded Civ5 -- for the past couple of years most of my gameplay has been civ6.
 
That's odd, because the game do not load all my custom promotions. I know they work and show, because i deactivated a bunch to see if the other bunch work and the answer is yes. But not all together.
 
I've done the Mod, but i still have the problem with the number of promotions. Only a few are showing up
 

Attachments

  • AllTraits.png
    AllTraits.png
    3.2 MB · Views: 189
Great persons flavors have something to do with the AI willingness to use them? I noticed that, when a great person has a flavor, it is always marked as just 1. Opposed to other units flavors, wich are bigger. I also noticed that no improvement has flavors. I was thinking: If i add flavors to great persons improvements, would the AI do more of them?
Code:
<Row>
            <UnitType>UNIT_ENGINEER</UnitType>
            <FlavorType>FLAVOR_PRODUCTION</FlavorType>
            <Flavor>1</Flavor>
        </Row>
 
Unit flavours affect which unit to train in a city, not how to use them on the battle field. The GP flavours are almost certainly unused as a) what GP to pick when a free GP is available is hard-coded for the AI in the DLL and b) what to do with a GP (eg construct an academy or "bulb" a GS) is also hard-coded for the AI in the DLL

Flavours are also at the end of the decision making chain, strategies come into effect first (see https://forums.civfanatics.com/threads/hijacking-flavours.546174/)
 
I've done the Mod, but i still have the problem with the number of promotions. Only a few are showing up
What is in Database.log ?

I just loaded the last version of Scipio that I made with the other mods I was running. This results in 303 promotions registered in table UnitPromotions, and as far as I can tell they are all working properly and showing properly in the Civilopedia page.

---------

Also, what exactly do you mean by "showing up" ? The image you posted is not related to Unit Promotions. It's leader stuff.

A promotion can be registered in the database but not showing in the Civilopedia or not showing in the Civilopedia where one would expect. It all depends on what you specify for 'PediaType'. I have generally used
Code:
<PediaType>PEDIA_SHARED</PediaType>
unless I am specifically creating a promotion that ought to only go with for example ranged units.
 
whoward69 That was really helpfull! What do you mean by strategies, if may i ask? Because if strategies are about leaders flavors, there's nothing a can do if i don't want to change civs AI playstyles, am i right?

LeeS LeeS, yes, i've put them in the Database.log. If i'm correct, if i not put on the Database, the code simply don't show in the game, and that's not true, when i deactivate Promotion "A", Promotion "B" shows up. Roughly 21 promotions work at the same time in my mod :(
I've published it here https://forums.civfanatics.com/threads/morius-wider-traits.637704/
and here https://steamcommunity.com/sharedfiles/filedetails/?id=1547271480
if you would be so kind to examine it yourself. All promotions are in the folder NewPromotions, and their links with the according civs are in the civs folders, by the folder "name of the civ" promo, "name of the civ" promotion or "name of the civ" Newpromotion.

I would appreciate (and kind of honored) if you took your time on this!
 
Top Bottom