Single Player bugs and crashes v39 plus (SVN) - After the 20th of July 2019

SVN revision: 10753
Hotkeys don't work. Precisely: Enter to end turn and cycling between units, A, S, D inside a city, all of F keys, ESC.
Suggestion: Also clear the cache folder (delete all contents). If you have win 10 it is located here: C:\Users\*username*\AppData\Local\My Games\Beyond the Sword\cache
 
I updated to 10753 from around 10724 and now when I go to my cities, nothing shows up in my build window. I also don't get combat odds when I mouse over a target.
That's because you didn't delete your userSettings, this is not something that is often required, but there are certain SVN updates that requires this once in a while. The PPIO merge was one of those once in a whiles.

The information about this was posted in the SVN changelog, but I get that not everyone read everything there.
@Toffer90 goofed up something
I'll look into it.
 
No, hadn't done that. Thanks, that fixed the city build issue. The combat odds still aren't displaying.
Are you trying to attack with a unit that has 'Stay the Hand' on?
 
Upload save - for me they appear normally.
Here is my latest quick test. When I mouse over terrain tiles they don't display either.

I did not attach the save because while getting ready to send this post I discovered what is happening. I have the game running in windows mode on my second monitor with extended desktop on. As I moved my mouse onto the first monitor to make the post, I noticed I was getting terrain information popping up in the game on my second monitor. When I move the game back to the first monitor everything displays correctly in the game. It appears the graphics of the game will display on the second monitor, but the tile information, combat odds, etc... remain locked to the first monitor display.
 
Here is my latest quick test. When I mouse over terrain tiles they don't display either.

I did not attach the save because while getting ready to send this post I discovered what is happening. I have the game running in windows mode on my second monitor with extended desktop on. As I moved my mouse onto the first monitor to make the post, I noticed I was getting terrain information popping up in the game on my second monitor. When I move the game back to the first monitor everything displays correctly in the game. It appears the graphics of the game will display on the second monitor, but the tile information, combat odds, etc... remain locked to the first monitor display.
Huh I guess ancient game is incompatible with dual monitor setup :p
 
Huh I guess ancient game is incompatible with dual monitor setup :p
I've not had any trouble with it but I'm running in windows mode maybe that's got something to do with it. Still, it all seems to come up on the one screen.
 
I've not had any trouble with it but I'm running in windows mode maybe that's got something to do with it. Still, it all seems to come up on the one screen.
He runs game in windows mode too.
Maybe he should switch game to primary desktop or something?
 
@Toffer90 buildings with raw vicinity tag don't appear on resource pedia, where that resource is required for building.
For example Carrion requires any unimproved land animal in vicinity, but land animal resources don't display Carrion as enabled locally.

Spoiler :

Civ4BeyondSword 2019-07-25 21-12-50-30.png
Civ4BeyondSword 2019-07-25 21-13-18-69.png



Also I need to improve raw vicinity texts, so they explicitly state no need for improvement.
 
@Toffer90 buildings with raw vicinity tag don't appear on resource pedia, where that resource is required for building.
For example Carrion requires any unimproved land animal in vicinity, but land animal resources don't display Carrion as enabled locally.
I know about it. When new tags are added to the game it usually takes some time before anyone makes the pedia display their values one way or another.
Huh I guess ancient game is incompatible with dual monitor setup :p
I'll look into if it's possible to check which monitor the windowed game is displayed on, there may be something I can do about it, but I can't guarantee it.

I have a dual monitor setup so I can easily debug the problems related to it, fixing said bugs may be harder though.
 
@Toffer90 I got this python error on autorun.
Code:
Traceback (most recent call last):
  File "BugEventManager", line 308, in _handleDefaultEvent
  File "MoreCiv4lerts", line 73, in onBeginActivePlayerTurn
  File "MoreCiv4lerts", line 142, in CheckForAlerts
NameError: global name 'iColor' is not defined
 
k just making sure. It's certainly something to look into.

About the huge turn time delay, we had a similar issue with a game soon before release and it seemed to be a sudden surge in production that was the blame. It may - it should - smooth out after a few rounds. It's a big question mark what causes it but you may want to go to a previous autosave and see if you can avoid hitting the sudden delay.
7th turn: 26min. Previous 2: 24-25

When you say 'a few rounds', approximately how many do you mean?

I don't think it's a coincidence that the increase in EoTs coincided with an SVN update. A previous autosave is so likely to have the same problem that I think I'll pass if I may (plus I really hate to 'change history' by continuing saves other than the latest).

If the delay makes me want to stop playing, I may go back through recent SVN versions (10529-10728) to binary search for the commit responsible.
 
This is probably caused by the huge number of units in that game at least it looks that way from the size of the save.
You are probably seeing the hotspots in some UnitAi functions or functions which are called by those and if there's no obvious programming error there's not much you can do.
It would need some balance changes to make having that manny units less likely to happen.

upload_2019-7-25_22-46-9.png


isPlotTrainable does this:
upload_2019-7-25_22-51-47.png


That is where the time is mostly going. Units have I'm guessing ~0 prereq building on average, but it checks every single one, and the data is stored as a bool array.
 

Attachments

  • upload_2019-7-25_22-37-13.png
    upload_2019-7-25_22-37-13.png
    257.5 KB · Views: 24
View attachment 530591 I can't queue anything on the city screen. Does anyone else have this problem? The SVN is updated to Revision 10756.
Did you delete User Settings?
On SVN 10722 PPIO got merged, and this means you have to delete that folder.
 
If the delay makes me want to stop playing, I may go back through recent SVN versions (10529-10728) to binary search for the commit responsible.
My profile results can help you a lot to narrow it down if you do decide to. However will more time I can exactly point at the problems. I am profiling your game specifically at the moment, you can see the top results above..

I can't queue anything on the city screen. Does anyone else have this problem? The SVN is updated to Revision 10756.
Other person who had this problem fixed it by doing a clean get: delete the Caveman2Cosmos folder (or rename if you want to keep it for safe keeping), then reinstall it from SVN/released zip file.
EDIT: or raxos suggestion which is quicker...
 
Back
Top Bottom