folioblade
Chieftain
- Joined
- Feb 15, 2025
- Messages
- 4
I'm trying to modify the expedition bonuses. I took the Expedition affinity bonos mod as an example and did some things. Unfortunately it didn't work.
I reduced the scope of the problem, and only updated the weights(ChanceWeight) in <PlotBonus_ResourceChanceWeights> from 1 to 0. At the moment the mini edit looks like this:
Log entries that can indicate the problem:
The entry in Database.log appears when I perform an expedition. It does not appear at the mods loading screen
Entries in lua.log also appear during the game.
Lua.log
If I edit the source files CIVBEPlotBonuses.xml, and set the weights to 0, then from my observations, the expedition rewards are actually changed (e.g. no affinity points as award, only alien unit).
Editing the files seems to work fine with all expeditions, except for progenitor ruins.
If I change the weights of the progenitor ruins, the notification window does not appear and no rewards are accrued (empty useless expedition ), but this is some other problem.
I reduced the scope of the problem, and only updated the weights(ChanceWeight) in <PlotBonus_ResourceChanceWeights> from 1 to 0. At the moment the mini edit looks like this:
XML:
<GameData>
<PlotBonus_ResourceChanceWeights>
<Update>
<Where PlotBonusType="PLOT_BONUS_BIG_AFFINITY_PROGRESS" ResourceType="RESOURCE_ALIEN_SKELETON"/>
<Set ChanceWeight="0"/>
</Update>
<Update>
<Where PlotBonusType="PLOT_BONUS_BIG_AFFINITY_PROGRESS" ResourceType="RESOURCE_ALIEN_SKELETON_OCEAN"/>
<Set ChanceWeight="0"/>
</Update>
</PlotBonus_ResourceChanceWeights>
</GameData>
The entry in Database.log appears when I perform an expedition. It does not appear at the mods loading screen
Code:
[99975.406] no such column: Type
[99975.406] In Query - select * from Affinity_Levels where Type = ? LIMIT 1
Lua.log
Code:
[99975.312] Big Affinity Progress plot bonus for player 0
[99975.328] Culture plot bonus for player 0
[99975.453] PlotBonusPopup: PlotBonusPopup, Blur On
[99975.562] PlotBonusPopup: PlotBonusPopup, Blur Off
[99975.578] PlotBonusPopup: PlotBonusPopup, Blur On
[99976.531] PlotBonusPopup: PlotBonusPopup, Blur Off
If I edit the source files CIVBEPlotBonuses.xml, and set the weights to 0, then from my observations, the expedition rewards are actually changed (e.g. no affinity points as award, only alien unit).
Editing the files seems to work fine with all expeditions, except for progenitor ruins.
If I change the weights of the progenitor ruins, the notification window does not appear and no rewards are accrued (empty useless expedition ), but this is some other problem.
Last edited: