[.952][Bug] Buildings, that provide a bonus to Mana, Research or Material per Essence, don't give the correct amount [fixed]

If you build a Temple of Essence or similar improvement in a city with Essence of 2 or higher, the Mana bonus granted will be as if there is only 1 Essence. So a Temple of Essence will grant only 1 Mana, an Alchemist will grant 2 Mana and 2 Research (1+1 per Essence) and so on.

Steps to reproduce: Build a Temple of Essence, Alchemist or similar building in a city with at least 2 Essence. Before the building is finished, check the amount of Mana and/or Research you generate overall and in the city. Do it again afterwards. Note, that the tooltip in the city details shows the correct amount you should get, but the amount actually generated is only increased by the minimum amount as stated above.

I haven't yet been able to verify if the same thing happens with the Material bonus granted by the Alchemy Lab, because the game is usually over before it is finished. 

2,633 views 13 replies
Reply #1 Top

I haven't noticed this, I will have to check it out.

Reply #2 Top

Slight update: the Material bonus from Alchmey Lab works correctly, but this time the Tooltip is wrong.

Reply #3 Top

Update: Bug is still in 0.951. However, I noticed a difference in the way the bug behaved when I build an Alchemist. Previously, I would have gotten only 2 Mana and Research, if the city had 2 Essence or more. Now, I got 3 Mana and Research, in a city with 4 Essence (2 base and +2 from Oracle and Scrying Pool). Temple of Essence, however, still only provides 1 Mana in a 2+ Essence city.

Reply #4 Top

The code for Alchemist is this:

 

<GameModifier>
<ModType>Resource</ModType>
<Attribute>Mana</Attribute>
<PerTurn>1</PerTurn>
<Provides>+1 Mana (+1 per Essence)</Provides>
<UpgradeComparisonID>1</UpgradeComparisonID>
<Calculate InternalName="Value" ValueOwner="OwnerCity">
<Expression><![CDATA[[TileYieldEssence] + 1]]></Expression>
</Calculate>
</GameModifier>

 

While the code for Temple of Essence is this:

<GameModifier>
<ModType>Resource</ModType>
<Attribute>Mana</Attribute>
<PerTurn>1</PerTurn>
<Provides>+1 Mana per Essence</Provides>
<UpgradeComparisonID>2</UpgradeComparisonID>
<UpgradeComparisonText>Mana per Essence</UpgradeComparisonText>
<Calculate InternalName="Value" ValueOwner="OwnerCity">
<Expression><![CDATA[[TileYieldEssence]]]></Expression>
</Calculate>
</GameModifier>

 

This is strange because they both do the same thing but the code is different. Let me check it out in game.

Reply #5 Top

I looked at the Alchemist, and it is functioning correctly according to the code. The code says this:

 

<GameModifier>
<ModType>Resource</ModType>
<Attribute>Mana</Attribute>
<PerTurn>1</PerTurn>
<Provides>+1 Mana (+1 per Essence)</Provides>
<UpgradeComparisonID>1</UpgradeComparisonID>
<Calculate InternalName="Value" ValueOwner="OwnerCity">
<Expression><![CDATA[[TileYieldEssence] + 1]]></Expression>
</Calculate>
</GameModifier>


I have 4 essence in my city, I built an Alchemist and am getting an extra 5 mana per turn, that is correct.


The problem you might be seeing is that if you have let's say 3 essence in your city and you build an alchemist and get 4 mana per turn, then you get the Oracle and you now have 4 essence but the Alchemist does not update to the 4 essence and sticks at the 3 therefore you are still getting only 4 when you should be getting 5. This might be the issue as I see this problem happening with spells. 


Natures bounty is supposed to give 1 grain per essence, which it does but if your city then gets more essence, it does not update and instead will give you the amount of grain per essence when you cast the spell. To get the new amount, you have to dispel and then recast. If you destroy the alchemist and rebuild it, you might get the correct number.


The same problem might be happening with any building\spell related to essence.

Reply #6 Top

Just checked temple of essence and it gave me 4 mana per turn (the correct amount), so what I said above is probably accurate.

Reply #7 Top

I just checked if the temple of essence would automatically adjust for new essence gained and it seemed to work correctly so I don't think it is broken.

Reply #8 Top

Quoting BlackRainZ, reply 7
Just checked temple of essence and it gave me 4 mana per turn (the correct amount), so what I said above is probably accurate.
End of BlackRainZ's quote

o_O Are you absolutely sure about this? I build the Scrying Pool and the Oracle before I went after the Temple of Essence and the others, so it couldn't have been the "Enchantments don't update, if Essence is increased" bug.

In one case during the previous version, I had build the Temple in a city with 3 Essence. This was with Magnar and the city was still Level 2, so no Oracle yet. The Temple, when finished, provided me only 1 Mana even though the Tooltip said it was 3. It's the same case in my current game, too.

Mana per Essence, Research per Essence and Materials per Essence are all bugged in my game. Unrest-reduction per Essence, however, is not. This doesn't make any sense. I'm beginning to wonder if something else is causing this bug. <_<

Reply #9 Top

Quoting BlackRainZ, reply 8
I just checked if the temple of essence would automatically adjust for new essence gained and it seemed to work correctly so I don't think it is broken.
End of BlackRainZ's quote

Okay, I just finished another test with Pariden. I made a new game, researched up to Arcane Mastery, so I could build the Temple of Essence. Everything seemed as it should be, after construction was finished. The City Details said 2 Mana are being produced and the Tooltip concurred. The Mana Tooltip in the Resource-Bar said the same. So far so good. As soon as I hit Next Turn, however, everything went down the drain. The City Details and the Tooltip for the Resource-Bar said, that the city wasn't producing any Mana. Only the Tooltip in the City Details said, that Mana production was still at +2, but only the 2 Mana from the Sovereign were actually being granted each turn. In other words, it was the same as in all my Beta 4 games. As soon as I build the Scrying Pool, the Mana production went to +1 in the City Details (Tooltip said +3) and the Resource-Bar.

This is really frustrating. I'm beginning to wonder, if I am the only one, who experiences this bug. :(

Reply #10 Top

Did you try hitting end turn again and then seeing if it corrected themselves>> 

 

I checked it in game, and it does work. Alchemist and temple of essence worked correctly and the code seems fine.

Reply #11 Top

Quoting Gaunathor, reply 10
This is really frustrating. I'm beginning to wonder, if I am the only one, who experiences this bug.
End of Gaunathor's quote

If I experienced it, I never noticed it, checked my essence based buildings a few times after seeing this thread and they work fine...
(Didn't follow your explanation on how to bug it though)

Sincerely
~ Kongdej

Reply #12 Top

Has anyone checked to see if loading a save of the game is the problem. We used to have a bug where the spells would revert back to 0 shard bonus on a loaded save. Perhaps something like that is happening to essence?

Reply #13 Top

Quoting BlackRainZ, reply 11
Did you try hitting end turn again and then seeing if it corrected themselves>>
End of BlackRainZ's quote

I did. In the turn Temple of Essence was finished, I received 4 Mana (2 from the Sov and 2 from the Temple). From the next turn on, I received only the 2 from the Sov. Plus, the City Details and the Resource-Bar showed no longer any Mana-income from the city. The Tooltip in the City Details, however, still showed 2 Mana being produced. After building the Scrying Pool, I was getting continuesly 1 Mana per turn from the city.

Quoting BlackRainZ, reply 11
I checked it in game, and it does work. Alchemist and temple of essence worked correctly and the code seems fine.
End of BlackRainZ's quote

Agreed, the code looks fine. There is no reason why it shouldn't work.

Quoting seanw3, reply 13
Has anyone checked to see if loading a save of the game is the problem. We used to have a bug where the spells would revert back to 0 shard bonus on a loaded save. Perhaps something like that is happening to essence?
End of seanw3's quote

I wasn't loading a save during my last two test games, so I doubt that was it. Maybe something is wrong with the tile yield? I mean, I'm only getting the amount I should get on the turn construction is finished. After that, I get nothing for the base amount of Essence. I only get the amount for the bonus Essence from the Scrying Pool and Oracle in my games.

Let me explain it this way:

The city is build on a tile with 2 Essence.
On the turn the Temple of Essence is finished, I get 2 Mana from the city.
Next turn and any after that, I get 0 Mana from the city, but the Tooltip still says, that 2 Mana are being produced.
I build a Scrying Pool.
After construction is finished, I get 1 Mana from the city and the Tooltip says, that 3 Mana are now being produced.
If the city is a Conclave and I choose Oracle on Level 3, I get 2 Mana from the city, while the Tooltip says its 4.

This is what happened in every game I played, no matter what Faction I chose.

 

Update: I just made another test with 0.952. It was the same behavior, so I'm guessing, that my assumption may be correct. I updated the thread-title to reflect this.