Single Player bugs and crashes v36 plus (SVN) - After the 24th of October 2015

Status
Not open for further replies.
Ok, I did try this and it did not correct the problem. I still think the issue is with this line here:
(*g_bestDefenderCache)[checksum.get()] = info;
I don't think it's correctly storing the cached value.

Do you have a save that shows that issue it would help alot.
 
Ok, I did try this and it did not correct the problem. I still think the issue is with this line here:
(*g_bestDefenderCache)[checksum.get()] = info;
I don't think it's correctly storing the cached value.

Do you have a save that shows that issue it would help alot.

Ok i had a bit of time and something is really off there. Even after a few turns i had the first wrong value this must have something to do with all the changes in CvUnit::defenderValue and the functions it calls. Alot changed since Koshling added that cache so it seems it's no longer working. I don't think it would be possible to cache it another way because CvUnit::defenderValue seems to return a different value starting at the second time it is called with the same arguments in the same turn.
 
Do you have a save that shows that issue it would help alot.
This post http://forums.civfanatics.com/showpost.php?p=14221272&postcount=1971 has the save I've been using to evaluate this issue. When loaded, it goes directly to a city where the scoundrels there should be able to assassinate. The mission shows up for them and the first time you hover over the mission it shows a combat help. The second time that help hover is blank and if you try to use the assassination it doesn't work. When running properly in the getBestDefender function it comes up reliably every time.

Ok i had a bit of time and something is really off there. Even after a few turns i had the first wrong value this must have something to do with all the changes in CvUnit::defenderValue and the functions it calls. Alot changed since Koshling added that cache so it seems it's no longer working. I don't think it would be possible to cache it another way because CvUnit::defenderValue seems to return a different value starting at the second time it is called with the same arguments in the same turn.
That's certainly odd. There's no random variables in there, or there shouldn't be, so as to cause a potential varying return. That will certainly need to be more deeply taken a look into as I'm sure you would agree.
 
I want to start a new game, when i load the mod and start my scenario then it shows C2C 9230 screeny, but my SVN is after update at 9247? Bug or normal or problem on my side?
 

Attachments

  • Civ4ScreenShot0004.jpg
    Civ4ScreenShot0004.jpg
    499.7 KB · Views: 134
I want to start a new game, when i load the mod and start my scenario then it shows C2C 9230 screeny, but my SVN is after update at 9247? Bug or normal or problem on my side?

Normal. The number only gets updated when the dll is updated. Many updates don't involve the dll and don't require a recompile so that number gets behind the SVN.
 
9237
Just updated since Mid April (approx 9214).
The game CTDs on the initial loading screen.

Tried again with current SVN 9247.

Did a brand new SVN download and export to a clean file. Defragged etc.

The game still CTD during the initial load screen, before you get to the menu options.

I can see others can run newer versions. So I expect the problem is that I am still using windows XP.

I can still run a version I downloaded about 6 weeks ago. So something has changed since then that seems to affect only XP users. Any help would be appreciated.

EDIT

The problem is with the new cultures added 9218. Removing them allowes me to continue.
 
@Harrier,
Try restarting a second time after 1st try fails. If that fails Remove your User settings file and replace it with an empty one. We had an Option change iirc sometime around that timeframe. That is why I put up a New Updated Patch in the Crime Patch thread (Post #58).

Also find the cache file in USER/Roaming/local (I think, if I am remembering XP right) and delete it's contents.

Besides aren't you using the SVN now?

JosEPh
 
Do you have a save that shows that issue it would help alot.

Tried again with current SVN 9247.

Did a brand new SVN download and export to a clean file. Defragged etc.

The game still CTD during the initial load screen, before you get to the menu options.

I can see others can run newer versions. So I expect the problem is that I am still using windows XP.

I can still run a version I downloaded about 6 weeks ago. So something has changed since then that seems to affect only XP users. Any help would be appreciated.
That really sucks because I have no idea what could be causing your problem. Try switching to the debug dll and see how it goes?
 
I have similair problem but I am on win10 not XP
I actually don't have crash but a video memory corruption (loook like 2d artifacts).
It seems some data structure is overlapping the video memory. It let me to go into game, and corrupted were only pixels which should be transparent, or something.

The problem is random, but if I guess properly it has something with some way of caching (it appear more frequently after I change files in Assets, note the files are just normal proper xml ones, so those should not be a cause per itself). The problem started appearing when I disabled Viewports. It seems disabled viewports left some clutter, so the aren't fully disabled (because before I enabled Viewports never got problem like that). Since the problem is random these all educated guesses.

And of course memory corruption is common source of crashing in programming.
Hmmm ... Maybe it is related with bug that you can't start newgame once you started one?
 
Can not get a save - as I can not start or continue a game.

BUT I think I may know the possible solution to my problem, but can not test it - because of the problem.

Some modder's are adding to the SVN, without checking for conflicts and are not trying to correct (syncronize ) them.

If I do a complete new install to the latest SVN (which does not load to the menu screen with XP - As mentioned before).

If I then try to revert back to an older version, which used to work (i.e. svn 9209). I get a lot of conflict error message - that I can not resolve as I do not know what it is.

If I try to (copy_export). It then fails. (can not find a missing file - that I guess should not be there).

I have spent over a week, on an off trying to solve this problem, so for now have given up.

I can still play the game - but a version that is about 8 weeks old.

Luckly, I do not delete old versions, until new ones work.
 
Can not get a save - as I can not start or continue a game.

BUT I think I may know the possible solution to my problem, but can not test it - because of the problem.

Some modder's are adding to the SVN, without checking for conflicts and are not trying to correct (syncronize ) them.

If I do a complete new install to the latest SVN (which does not load to the menu screen with XP - As mentioned before).

If I then try to revert back to an older version, which used to work (i.e. svn 9209). I get a lot of conflict error message - that I can not resolve as I do not know what it is.

If I try to (copy_export). It then fails. (can not find a missing file - that I guess should not be there).

I have spent over a week, on an off trying to solve this problem, so for now have given up.

I can still play the game - but a version that is about 8 weeks old.

Luckly, I do not delete old versions, until new ones work.

Since SVN 9209 we have had several Save Game breaking commits. And with it you have to remove your Old User Settings folder completely. It will no longer work with the current SVN. That is why I supplied my Updated User setting Folder for the Last Patch Update I posted in the crime Patch Thread (post # 58). So players would have a new User settings folder with some Options already set. (These of course can be changed when you Start a new game to your favorite options.) But you don't need to go this route unless the next way fails.

If you can not even Start a new game then it's definitely your old user settings folder and/or maybe even your cache file. Also Use the Empty User Settings folder that comes with the SVN when you do a New Export. Not a Copy then Export. There should be No Copy involved with an Export. You do know how to do an Export right?

Export thru Tortoise the latest SVN version to a Folder Outside of the Game directory. Name that Folder Caveman2Cosmos. Once the Export is done, then delete your current C2C folder in your BtS/Mods folder and then copy/paste this New Caveman2Cosmos into the folder.

Do you have a shortcut setup for Directly accessing Caveman2Cosmos without having to start BtS and then go advanced to Load a Mod? If so try it. If it fails from conflict errors then you still have a cache problem that is holding Old data that is now no good.

If you do Not then after you have done as I've outlined above go thru BtS , Advanced, Load Mod select C2C from the Mod list and start a Play Now game. If you can do this, and it starts, just play 1 turn then exit that game. Go Back to Load a Mod, and Load Caveman2Cosmos and then select Custom game and set up your New game. See if it will load. It should as the Play now will clear out any hold over old settings/data from your cache.

Again I'll repeat my self, You can not continue to use your Saved User Settings folder from past SVN versions.

Hope this is somewhat clear and that it helps.

JosEPh
 
Since SVN 9209 we have had several Save Game breaking commits. And with it you have to remove your Old User Settings folder completely.

I know this - when I download a new version, I do not use old setting. I do a clean load with no options then select "play now" or what ever it is called. To check it loads.

But I can not even get to the menu screen to choose an option. It CTDs on the initial loading screen (displays XML (uncached) if I remember correctly.)

If you can not even Start a new game then it's definitely your old user settings folder and/or maybe even your cache file. Also Use the Empty User Settings folder that comes with the SVN when you do a New Export. Not a Copy then Export. There should be No Copy involved with an Export. You do know how to do an Export right?

I rename the previous Caveman2Cosmos folder (add the current date on the end). I then create a new one and use Export (not copy). User Settings are empty. I do not change anything until it loads.

Do you have a shortcut setup for Directly accessing Caveman2Cosmos without having to start BtS and then go advanced to Load a Mod? If so try it. If it fails from conflict errors then you still have a cache problem that is holding Old data that is now no good.

Yes I use a short cut.

However I can not find the cache files. !
The info you posted before does not seem to apply to XP. Unless I am missing something. So that may be the problem. Any info on where they are ?

If you do Not then after you have done as I've outlined above go thru BtS , Advanced, Load Mod select C2C from the Mod list and start a Play Now game. If you can do this, and it starts, just play 1 turn then exit that game. Go Back to Load a Mod, and Load Caveman2Cosmos and then select Custom game and set up your New game. See if it will load. It should as the Play now will clear out any hold over old settings/data from your cache.

JosEPh

I will try this and see if that works. Be a few days though, as busy RL at the moment.

Just to re-iterate, tried SVN 9247 and CTD on the initial loading screen (no menu). An older version works, but I do not have the SVN for that. Trying to revert back to it gives conflicts.

Thanks for your input JosEPh.
 
Have you identified the exact SVN revision that causes the problem? In a case like this it may be very helpful to figure that out first.

Still trying to do that. A bit difficult as still trying to learn all the SVN choices.

"Do I revert, Update, etc."

As I am still trying to understand the SVN options - I am making mistakes.

Example: With an old version that I could load, if I update it (to a new SVN version) and can know longer load it. Then try to revert back to the older version, it does not always work (conflict errors) etc.

When I think I have found the problem, try to revert back to the previous working version. But now that no longer works. {Do not know why}.

At the moment SVN 2907, I know works. Later ones did, but not always.

So Still a lot of testing to do. But not just now. Need some free time.:)
 
It is impossible to recruit Feline Superior, because it require Big cat trainer. And Big cat trainer obsoletes long before Feline Superior.
 
It is impossible to recruit Feline Superior, because it require Big cat trainer. And Big cat trainer obsoletes long before Feline Superior.

I think this building was fixed recently.
 
Status
Not open for further replies.
Back
Top Bottom