[BTS] [RFC DoC] - game crash after new turn

rmontaruli

Prince
Joined
Sep 10, 2002
Messages
441
Location
Italy
Hi guys.
There is a savegame in attach.
The game crashes on new turn.

I tried on a couple of PC.

I found some errors in this file after crash:

[ThemeParseLog.txt]
[Jul 19, 2017 - 22:24:48] Messages while processing 'Resource/Civ4.thm'

Error : Decl - ('Civ4Theme_Common.thm', Ln:401, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_Italic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:402, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size3_BoldItalic' not found
Error : Decl - ('Civ4Theme_Common.thm', Ln:408, Col:13) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Decl - ('Civ4Theme_Window.thm', Ln:3048, Col:9) Assignment source propertyId 'SF_CtrlTheme_Civ4_Control_Font_Size1_Bold' not found
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:887, Col:13) Unexpected '.' in the identifier assignment statement
Error : Syntax - ('Civ4Theme_HUD.thm', Ln:927, Col:13) Unexpected '.' in the identifier assignment statement


I tried to correct those files with errors in any way, but unsuccessfully.

Please, try on your system if the attach game runs well (in case, please save after next turn and send me back the savegame: l'd like to carry on my game).

Otherwise there is a bug to correct, and i ask help to this community.
 

Attachments

I see this game is 1.14 and can confirm the crash. Unfortunately so close to the release to 1.15 I do not want to support 1.14 further, as the crash was likely fixed during the development of 1.15.
 
Is there anything i can do by myself to fix the problem?
i'd just like to finish the game with English, pass that turn and carry on.
 
Is there anything i can do by myself to fix the problem?
i'd just like to finish the game with English, pass that turn and carry on.
I highly suggest you download the new version from here https://github.com/dguenms/Dawn-of-Civilization

It has more features than your version, more stable, a new tech tree, and better mechanics. Although it isn't quite as well balanced, it gets updated every couple of days and your feedback that you post on here can directly influence the path this version takes.

Most new updates are minor tweaks, so you should be fine with downloading a new version every two weeks or so, or you can use TortoiseSVN to automatically only install the newly updated assets, meaning instead of downloading the entire mod every time you want a 2mb update, TortoiseSVN will download the 2mb and leave the rest.
 
Most of the crashes I've fixed have dealt with unit AI problems. There is a chance that you can continue the game if you find the unit that causes it and delete it. I usually try to narrow this down by removing a player from the game completely and see if it still crashes.
 
Go back to the autosave before the one you've posted, and do something to alter the seed. Make a bunch of your units start exploring for a turn or two, or use worldbuilder to plop down a barbarian warrior somewhere where it'll be pretty much immediately killed.
 
I see this game is 1.14 and can confirm the crash. Unfortunately so close to the release to 1.15 I do not want to support 1.14 further, as the crash was likely fixed during the development of 1.15.

How close are you to the release of 1.15? Are you down to finishing touches?
 
Yes. We are feature frozen for some weeks now, I'm mostly dealing with AI, documentation, balance and bug fixes now.
 
hi everybody!
Your suggestion to detect the crashing unit using word builder was more than useful!
I was able to detect the unit (a russian worker), i deleted it and re-create in the same tile.
I was also able to finish my game and achive an UHV with English.

You save my holiday!

Thanks again.

BTW i downloaded the newer version from github and i could see and study the new tech tree.
But the game crashes after the first turn.
I tried with Egypt and Babilonia.
I don't mind: i'm sure it will be playable with the new version.
 
The game works fine for me, can anyone confirm his? Maybe something went wrong with the download instead.

Great that you could solve your original problem though! Sorry that you had to sort it out yourself.
 
The game works fine for me, can anyone confirm his? Maybe something went wrong with the download instead.

I downloaded the full zip from github, and i could unzip it, so nothing wrong with download.
I renamed the old directory, and copy the unzipped one under MODS directory.
I started the mod, opened the 3000BC map, and chose Egypt.
The game started.
Before doing anything i could read the new tree tech, read civilopedia, study new units and features.

I settled the capital and moved militia unit anywhere to explore.
I clicked on new turn, and game crashed.

After a couple of try, i quitted and rename the previous directory, to play another game.

Great that you could solve your original problem though! Sorry that you had to sort it out yourself.
Don't sorry. Your suggestion was right and i could solve the problem.
I could not imagine the cause, but when you said it was a unit to delete, the solution was easy.

So thanks, and i'm going to pay you some coffees.
 
That's really weird, does the problem persist if you try to download again?
 
SOLVED!
I followed your suggest.
I downloaded the fullzip again.
This file has a size of some byte different from the first one. Not more than a couple of thousands.
I unzipped and copied it in MODS folder.
Renamed and start the game.

This time the game does not crash after the end of turn.

So i have the new develop version to test.

But i have a game with Turks to complete before testing this new one.
 
Great!
 
Hi, I may have a similiar or the same problem. Can someone please help me, too?
In this mod and also another mod almost all my games crash sooner or later. I get the turning globe and nothing else happens in between turns...
After reading this post I eliminated some civs through worldbuilder and the turn could comlete and I could play on. So I believe that I also have a crashing unit somewhere.
How to find it? I have no experience with modding or how to search for errors. Is there a fast way to find the crashing unit to delete it?
 
Unfortunately not. I usually add debug statements to the code to help with it, but it's still a tedious process. If you find out, a save with information about the unit that causes the crash/freeze would be very helpful.
 
Yet so many times I have had a crashing turn that I have decided to abandon the whole game and start all over. But this time I say NO to crashing :nono:. Ppl talking that there might be a corrupted unit somewhere amongs the AI troops :confused:. Have zero ability and skill for coding so I would much appreciate any help :thumbsup:. Game crashes to Win after a while ending the turn.

The prize for helping is awesome! After starting literally hundreds of games as Romans during these years of Civ4 (Rhye and DoC) I have never encountered such a good start - and no cheat.

Spoiler :


Epic and Monarch. The Greeks have terrible city placement and infrastructure, but they are brilliant for you. After a turn or two you flip their city resulting a war. This gives you multiple extra-legions and other stuff for free. Greeks have nothing to defend themselves. After this you can basicly do anything you want cause you can :king:. Also Wonders waits for you to build them :)

Prever 1.15
 

Attachments

Last edited:
I noted the error and will also investigate when I have time. Any help identifying the unit that is causing this (by trying to delete stacks to see if that fixes the error) would be very useful.
 
My only sollution to this point is to load the last or second-to-last savegame and play the last turns again. Hoping that the problem doesn't occure again. About 1 out of 3 times it works. But this is realy annoying later on in games when a turn lasts for several minutes and I have to replay the last 3-5 rounds 1-3 times...
 
My only sollution to this point is to load the last or second-to-last savegame and play the last turns again. Hoping that the problem doesn't occure again. About 1 out of 3 times it works. But this is realy annoying later on in games when a turn lasts for several minutes and I have to replay the last 3-5 rounds 1-3 times...

That I already know. Usually it helps -> load 2-3 turns earlier, have a golden age, declare war, make new cities...all and all make something significantly different...and it might help. This time 2-3 turns did nothing new so maybe next I load ~5 turns back and do something nasty to my neighbours :smoke:.

EDIT:

Hihihi :lol: The old trick did it even thou I had to play many turns all over again. To all you coders there: the mystery crashing unit/error/thing is still a mystery so if Leoreth or someone else can crack this bad pixel for now/for ever, it would be more than great :thumbsup:

EDIT2:

This is not going well. A few turns onward and yet again a new crashing error. This is a real trial and error :lol:

EDIT3:

Hmm...this might have something to do with research. On both cases I have managed to move forward on turns when I have/have not research tecnologises... (I have many tecs just 1 turn away from discovering)

EDIT4:

In the end the research theory failed. I randomly deleted all scouts I could find on WB and it got me, once again, forward. Let's see how many turns this time :)
 
Last edited:
Top Bottom