Sparth
C2C Team Member
- Joined
- Oct 6, 2013
- Messages
- 2,314
Revision 8496 CTD at end turn
Try to use this file:
http://forums.civfanatics.com/showpost.php?p=13341417&postcount=1
Revision 8496 CTD at end turn
Try to use this file:
http://forums.civfanatics.com/showpost.php?p=13341417&postcount=1
I noticed that when you start a new game and build your first city, your total science in the main screen is for example +11, but the city itself only produces 10
(if you have 2
from working tiles). Where is the last 1
coming from?
"Bandit Rider/Footpad" can split & merge. They have a crime property modifier and can thus wreak havoc in a city if split down. they are expensive, +5unit cost, but I still think it's an exploit.
Areunit cost really taken into account? I had several Ambushers in my last game while my unit maintenance cost remained at 0.
Fixed a similar issue recently - whomever was programming those optional air missions overlooked a major factor - apparently this must apply to another mission, not just the one I found and fixed. sighI get frequent CTDs during AI's turn which apparently have to do with air combat and in particular "pDefender" being "NULL" in CvGameCoreDLL.dll!CvUnit::airCombatDamage
> CvGameCoreDLL.dll!CvUnit:lotExternal() Line 18463 C++
CvGameCoreDLL.dll!CvUnit::airCombatDamage(const CvUnit * pDefender) Line 16052 C++
CvGameCoreDLL.dll!CvUnitAI::AI_defensiveAirStrike() Line 28292 C++
CvGameCoreDLL.dll!CvUnitAI::AI_defenseAirMove() Line 11262 C++
CvGameCoreDLL.dll!CvUnitAI::AI_update() Line 419 C++
CvGameCoreDLL.dll!CvSelectionGroupAI::AI_update() Line 316 C++
CvGameCoreDLL.dll!CvPlayerAI::AI_unitUpdate() Line 1931 C++
I "solve" it by enforcing peace in World Builder.
I use latest SVN build: 8496
View attachment 393753
EDIT: Actually same crash occasionally happens when you automate your airplanes; so not just during AI's turn.
Ambushers aren't supposed to get a crime modifier... hurph.
Early prehistoric EoT CTD; non repeatable but happened twice at different turns before this report.
Edit: Almost all the prehistoric wonders have text errors now.
and the CTD always happened when barb attacked my tribal guardian before any animations.
Fixed a similar issue recently - whomever was programming those optional air missions overlooked a major factor - apparently this must apply to another mission, not just the one I found and fixed. sigh
Are you tried single-style fix xml?
-Tribal warfare, junta, divine cult, mercenaries, etc. gives an amount of free units.
-I think empire population size affects the amount of free units as well.
-Ambusher does not have extra unit cost only +1as any other units in the game has.
Ambushers should have, they have an <iExtraCost>1</iExtraCost> and it shows on their Pedia page.
I'm thus surprised if it works differently for Bandit Riders (who indeed have an <iExtraCost>5</iExtraCost>).
Ah... then the UnitCombat they share should be set to not be able to split or merge. Scoundrel if I recall.They don't, I was talking about Bandit Rider/Footpad.
I'm only discussing on the forums at the moment. My direct involvement in modding is currently on indefinite hold while I am involved in some other things for a bit. I really need this break. But I was saying I did recently make a fix like this... my last commit I think. So following that example and looking at your crash it should be a simple one to resolve if Alberts or someone wants to pitch in on that one.Thanks for looking into this.
So, will this particular one be fixed some time? Do you require additional information?
I thought as a quick fix you can just do something like: "if (pDefender != NULL) {only then do the rest}"?