Cannot move past my current turn

thinkingnut

Warlord
Joined
Sep 18, 2013
Messages
146
Hi Xyth and All,

I'm currently really enjoying the HR mod, but I cannot move past my current turn without the game crashing on me. I've attached the crash report for your reference. Is there any way I can fix this?

Many thanks for your attention.

Yours sincerely

Edit: 2nd game in a row now with this same problem. I tried starting a new game, but around 1350 CE the game is unable to proceed without crashing. I've also attached this crash report for anyone who might be willing and able to help. :)
 

Attachments

Last edited:
First crash is caused by a unit model, second crash is caused by a unit button. Implies a broken unit art definition or missing/corrupt unit art files. Could you please post your saved game(s)?
 
First crash is caused by a unit model, second crash is caused by a unit button. Implies a broken unit art definition or missing/corrupt unit art files. Could you please post your saved game(s)?

Hi Xyth,

Thanks for the speedy reply. I can't seem to find the saved game file for the first game, but for the second game, yes. Let me know if it can be opened, as I've never posted saved game files on here before.

Cheers.

Ps.
I did a little bit of modding myself on your HR mod, so not sure if the file will be able to open for you. If you like, I can also post the xml files I tinkered with in relation to what I changed.
 

Attachments

Last edited:
I can't load it. What files have you changed? Anything to do with units?
 
Right, I've compiled a list of the stuff I have changed. I'm attaching the entire xml file here.

Regarding units, I have changed CIV4UnitArtStyleTypeInfos.xml, CIV4UnitInfos.xml and CIV4ArtDefines_Unit.xml. Please do let me know if I have made a mistake somewhere. Interestingly, the crashes always seem to come around mid-game. Everything works fine in the early game.
 

Attachments

Looks like your UNIT_SERF entry is missing some lines:

Code:
            <UnitMeshGroups>
                <iGroupSize>2</iGroupSize>
                <fMaxSpeed>1.75</fMaxSpeed>
                <fPadTime>1</fPadTime>
                <iMeleeWaveSize>2</iMeleeWaveSize>
                <iRangedWaveSize>0</iRangedWaveSize>
                <UnitMeshGroup>
                    <iRequired>2</iRequired>
                    <EarlyArtDefineTag>ART_DEF_UNIT_SERF</EarlyArtDefineTag>
                </UnitMeshGroup>
            </UnitMeshGroups>

Should be <LateArtDefineTag> and <MiddleArtDefineTag> entries there too. When you reach the Medieval era there's no art defined for the Serf, and that's the most likely cause of the crash.
 
<UnitMeshGroups>
<iGroupSize>2</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>2</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>2</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_SERF</EarlyArtDefineTag>
<LateArtDefineTag>ART_DEF_UNIT_SERF</LateArtDefineTag>
<MiddleArtDefineTag>ART_DEF_UNIT_SERF</MiddleArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>

I see. This is what I have now changed the code to, but the problem still persists when I load the same game. Does it only work if I start a new game?
 

Attachments

Last edited:
You don't usually need to start a new game. If you do, it won't let you load the save. I guess there's another problem with your changes, but I can't tell without having all your modifications installed. I can't see anything else obvious. You'll have to solve this one yourself, sorry. It's not a problem with HR.
 
You don't usually need to start a new game. If you do, it won't let you load the save. I guess there's another problem with your changes, but I can't tell without having all your modifications installed. I can't see anything else obvious. You'll have to solve this one yourself, sorry. It's not a problem with HR.

Yes, I see. Well, thanks for your help, at any rate. I'll keep you updated if I manage to fix it eventually.
 
Morning, Xyth. I was just wondering today: Would it be possible for you to install my modifications and test the saved game file I have uploaded? The extent of these modifications is the inclusion of one more AI to the game. That is all. They are comprised of what I have already given you plus the unit buttons and diplomacy music.

I know this is a big ask, but I really don't want to go back to the base BTS game. Your mod is by far the best and most well-designed mod I've played so far, and I daresay it's a lot better than the current civ 6.

If the answer is yes, I can attach all the files that I have changed. If you don't feel like doing this / don't have the time, I completely understand.
 
Of course, installing my modifications are temporary. I'm not asking you to put it in permanently! Many many thanks!
 
It's not that I don't have time or don't want to help, it's that installing your modifications would mess with my development process. I actually have 4 versions of HR installed at any given time: 1 for Mac testing of current release, 1 for Windows testing of current release, 1 for development of the next version for Mac, and 1 for development of the next version for Windows. To keep everything in sync requires careful management and some scripting. Your changes involve a fair few files, so it's not an easy exercise for me to merge it in, even temporarily.

I can offer some suggestions to help you debug the problem though. The first thing I suggest is to use the Worldbuilder to add each of your units to the map manually. See if any are broken. Once they're on the map, use the world builder to switch through the eras one at a time, see if any problems arise as you do.

The next thing I suggest is to change your new civilization's units to existing units in HR. e.g., Worker instead of Serf. If that fixes the crash, then you know the problem is with the units you've defined. Add them back in one at a time to see which one is the problem. I'm happy to offer further advice once you've narrow things down a bit more.
 
<StyleUnit>
<UnitType>UNIT_COG</UnitType>
<UnitMeshGroup>
<EarlyArtDefineTag>ART_DEF_UNIT_JUNK_CHINESE</EarlyArtDefineTag>
<LateArtDefineTag>ART_DEF_UNIT_JUNK_CHINESE</LateArtDefineTag>
<MiddleArtDefineTag>ART_DEF_UNIT_JUNK_CHINESE</MiddleArtDefineTag>
</UnitMeshGroup>
</StyleUnit>

Hello Xyth, thank you very much for the informative response. I tried exactly what you suggested and I believe I've fixed the problem!!!! The problem turned out to be me mislabeling the Cog unit artwork for my custom civ in the file CIV4UnitArtStyleTypeInfos.xml. I wanted it to have the same unit art as the Junk, but wrote "ART_DEF_UNIT_JUNK_ORIENTAL" instead of "ART_DEF_UNIT_JUNK_CHINESE". No wonder the game kept crashing just as I was about to finish researching Guilds.

Thanks so much for helping me. You've made my day, sir!
 
Not a problem, glad to hear you fixed it!
 
Something to do with Free Specialists. Can you reproduce it when you load a saved game, or did it just happen once?
 
Crash looks similar to one that the Domestic Advisor can cause occasionally. Did you have that open at the time? I haven't been able to solve it yet since I can't reproduce it reliably. In any case, unless you've made some changes involving free specialists, this one is probably isn't related to your modifications.
 
Yes, I was meaning to ask you about the Domestic Advisor sometime. Opening it also occasionally causes my game to crash, but I didn't want to bombard you with too many requests in one go. Now that you mention it, no, it was not open during that particular crash.

And no, I have not made any changes involving free specialists. Thank you for letting me know that it's not a fault I created! :D
 
Back
Top Bottom