FfH2 0.21 Bug Thread

The following phrase will never trigger:

pPlayer2.getBuildingClassMaking(gc.getInfoTypeForString('BUILDINGCLASS_ALTAR_OF_THE_LUONNOTAR_DIVINE')) > 0

This is because this building is never in the BuildingClassMaking state. that state is only entered if the Build order is entered for the city, not on instant creation via unit (CvUnit::construct).

Rank:

The concept of Rank isn't used consistently. An Elven war only starts if the requesting player is of higher rank, whereas an Infernal/Doviello/high Armageddon count Evil player war only starts if the requesting player is of lower rank. Even worse, said calculation isn't consistent - the first pass checks for a higher-ranked other player (CyGame().getPlayerRank(iPlayer2) > CyGame().getPlayerRank(iPlayer)); the second check looks for a lower-ranked other player(CyGame().getPlayerRank(iPlayer) > CyGame().getPlayerRank(iEnemy)). I would assume that one or the other is correct.
 
Code:
        if eTeam.isHasTech(gc.getInfoTypeForString('TECH_PHILOSOPHY')):
                if pPlayer.getAlignment() < 0:
                        bValid = true
                        for iTeam in range(gc.getMAX_PLAYERS()):
                                eTeam = gc.getTeam(iTeam)
                                if eTeam.isAlive():
                                        if eTeam.isHasTech(gc.getInfoTypeForString('TECH_CORRUPTION_OF_SPIRIT')):
                                                bValid = false
                        if bValid == true:
                                iTech = gc.getInfoTypeForString('TECH_INFERNAL_PACT')

This code means so long as corruption of spirit is unknown, any evil civ with philosophy will research infernal pact.

Except, they can't research infernal pact without AV state religion, which means that they don't research anything. Watching Flauros with the Alt-Z cheat mode engaged for a few turns verified this. He's simply researching nothing. (While the Elohim are turns away from Order) Changing the INFERNAL_PACT to CORRUPTION_OF_SPIRIT and he starts researching Way of the Wicked as intended.

From what I can tell this is because cannotResearch stops researching the 2nd tech of the religion lines without that state religion, so even though chooseTech will follow along a line toward that goal, it gets simply denied by cannotResearch and instead researches nothing.

Wow , good stuff ! This explains why evil civs are now at the bottom of the list on the long run and why AV is not founded.
 
Well, I can do you one better Go Boks. I have a G15, and a display on it that runs my Procsessor and RAM usage pretty much all the time, which I do keep up(though, BTW, CIV4 has G15 support, and displays the announcements log, but I never use it). I never noticed a drop or increase before the crash, but I'll try and keep a closer watch on it... with my full 2 G of memory, I rarely have a problem, and can run even FfH maxed out without issues, and under 1G of usage.

Cheers!

I might be telling you something you already know, but it should be a steady increase as you play the game. The mem usage should keep ticking up slowly until you run out. Unfortunately, having a strong system won't help much (it will delay the crash, but that is about it) as it is a software issue.

It may not be a memory leak either, it just sounds like it as the crashes seem to be somewhat dependant on how long you have been playing the game (i.e. you can reload and be fine for a while before it crashes again).

Are you running any memory/cycle hungry apps in the background, such as an mp3 player?


I had founded AV, but as a Good civ, I did not have the option of researching to get Hyborem.

Yes, I guess what you mention is possible, but not very likely considering the state of Jonas' civ - all cities destroyed but one.

And, if that was true, wouldn't you have seen the message Hyborem was born BEFORE Jonas was eliminated rather than the other way around?

How could he use the Great Prophet to bring in Hyborem if he was wiped out?

Oh well, who knows what happened?

Thanks for your response.

I meant the only AI civ with AV. If he was, he is the only one who could have summoned Hyborem.

Having only one city left will not effect the GPP generation. If that city has a lot of buildings that give GPP and a good backlog, being on the brink of destruction won't prevent that GP from being born.

Hyborem was founded on the same turn as Jonas died, correct? The order of messages is probably a turn sequence issue (i.e. Jonas summons Hyborem on his turn, another civ kills him on their turn generating the Jonas death message, then Hyborem summoned message only pops up on Hyborem's first turn).


OK, playing as Elohim with Basium as my partner.

From time to time, I get the message "you have declared war on *****."

Well, I did not declare war.

Is Basium doing this, and how can I get him to stop already. It often comes at very inopportune times.

Thanks.

That is the point of Basium - he is meant to do this. He is a powerful ally, but will keep declaring war on Hyborem first, than other evil civs. The good news is you can use this to your advantage. If you aren't strong enough to be involved in the wars, you probably shouldn't summon him.

I summoned him once. Hyborem was pretty weak, mainly because of a bad starting location and the Calabim choking him out. Basium kept declaring war on Hyborem, and Hyborem kept coming to me begging for peace. I would take my pound of flesh and Basium would redeclare every 10 turns. It became a good income stream until I finally was strong enough to kill Hyborem (the unit as opposed to the leader).
 
Code:
        if eTeam.isHasTech(gc.getInfoTypeForString('TECH_PHILOSOPHY')):
                if pPlayer.getAlignment() < 0:
                        bValid = true
                        for iTeam in range(gc.getMAX_PLAYERS()):
                                eTeam = gc.getTeam(iTeam)
                                if eTeam.isAlive():
                                        if eTeam.isHasTech(gc.getInfoTypeForString('TECH_CORRUPTION_OF_SPIRIT')):
                                                bValid = false
                        if bValid == true:
                                iTech = gc.getInfoTypeForString('TECH_INFERNAL_PACT')

This code means so long as corruption of spirit is unknown, any evil civ with philosophy will research infernal pact.

Except, they can't research infernal pact without AV state religion, which means that they don't research anything. Watching Flauros with the Alt-Z cheat mode engaged for a few turns verified this. He's simply researching nothing. (While the Elohim are turns away from Order) Changing the INFERNAL_PACT to CORRUPTION_OF_SPIRIT and he starts researching Way of the Wicked as intended.

From what I can tell this is because cannotResearch stops researching the 2nd tech of the religion lines without that state religion, so even though chooseTech will follow along a line toward that goal, it gets simply denied by cannotResearch and instead researches nothing.

Saien could you put the modified file(s) online (until there's a patch) ?
 
10/10 game :goodjob:
Bugs
Lastly, patch C or B (I passed directly from A to C), seems to cause an Out of Sync in multiplayer upon load.
It seems that i get this OOS message all the time with multiplayer (direct connection over broadband internet) which makes it unplayable in that mode. never tried it in "a" patch though. don't have this issue with vanilla and warlords. any suggestions would be great as i'm dying to play this game with my mates
 
suggestions are:
1) reload as seldom as possible
2) downgrade to patch B
 
Its in the Assets\python\entrypoints\CvGameInterface.py

The Order function is directly below it and you can see how that one is coded correctly, with the Order tech in both tech fields there.

Anyone can edit that one line pretty easily, all you need is Notepad++ or some other advanced text editor.
Good Luck!

Cheers!
 
Im still having problems with the computer restarting randomly.

There is no increase in Memory use (atleast nothing near the 90&#37; mark)

So I am at a loss.... any ideas?
 
In my current game (patch C), my Archmage cast Tsunami against a stack of ships belonging to another civ I was at war with. He was standing on land belonging to a civ I had open borders with.
The spell worked and then I got a message that I had declared war on the civ whose lands I had been standing in.
Seems like a bug. Either it should not initiate a war ( I did the civ no harm) or it should ask one of the "are you sure you want to do this - it will start a war?" messages.
I pretty sure I've seen something like this logged before, but I thought it had been fixed.
Can post saves if it will help.
 
This code means so long as corruption of spirit is unknown, any evil civ with philosophy will research infernal pact.

Except, they can't research infernal pact without AV state religion, which means that they don't research anything. Watching Flauros with the Alt-Z cheat mode engaged for a few turns verified this. He's simply researching nothing. (While the Elohim are turns away from Order) Changing the INFERNAL_PACT to CORRUPTION_OF_SPIRIT and he starts researching Way of the Wicked as intended.

From what I can tell this is because cannotResearch stops researching the 2nd tech of the religion lines without that state religion, so even though chooseTech will follow along a line toward that goal, it gets simply denied by cannotResearch and instead researches nothing.
Does this affect Ulvin at all, considering he is evil and atheist?

- Niilo
 
The caster's having Channeling III adds 10 points to the base damage twice - once in spellDestroyUndead; the other time in FFHDoDamage.
 
Im still having problems with the computer restarting randomly.

There is no increase in Memory use (atleast nothing near the 90&#37; mark)

So I am at a loss.... any ideas?

I can't speak about your computer, but on mine, the most common cause of crash was my (these days pretty low-end) video card memory running out of its RAM (not the main computer's RAM, which is pretty large). Reducing the graphics settings and playing the game in a window (instead of full-screen) helped me tremendously.
 
Playing as Einon Logon/Elohim I am unable to build Druids.

I have researched Commune with Nature and built a Grove, but no Druids available on the build menu.

The Civlopedia does NOT say they cannot be built.
 
I am in yr 900 of my epic game. Counter 100 came about 150 turns ago.

I am a little surprised that Hell and the Fire have not spread to Lanun territory.

Lanun is Neutral with Fellowship of Leaves religion (although I founded it, I am using the Order).

I think I read Ancient Forests cannot burn, but he has regular forests and jungles in his territory too. No evidence of hell/fire within his borders.

I can recall playing a game as the elves when I was Neutral with FOL and I had hell/fire spreading within my borders.

Why not for Lanun?
 
In my current game (patch C), my Archmage cast Tsunami against a stack of ships belonging to another civ I was at war with. He was standing on land belonging to a civ I had open borders with.
The spell worked and then I got a message that I had declared war on the civ whose lands I had been standing in.
Seems like a bug. Either it should not initiate a war ( I did the civ no harm) or it should ask one of the "are you sure you want to do this - it will start a war?" messages.

I'd consider this a feature - Tsunami has an 11&#37; chance of wrecking the plot. (a message, though, would be nice)
However, there is no check if the caster has Hidden Nationality. This is likely a defect.
 
Back
Top Bottom