SDK Code Debugging

Thunder_Gr

Emperor
Joined
Dec 8, 2008
Messages
1,362
Location
Universe
I have noticed the bug thread to have start containing lots of SDK code that most people don't understand and are confused.
I thought that it would be nice if there was another thread that we could post SDK code fixes and test code, without cluttering the bug thread with this info.
 
Iceciro said:
Beta is for the forums, alpha is what we're doing now. I have the same crashes in Fall Further too, so I'm not just sitting here hopping up and down because my mod doesn't work, sadly. That'd be easier for me to fix, if the issues were somewhere I screwed up I wouldn't be surprised to learn this is not a Fall Further issue either, but like the first crash, belongs to core part of the DLL and is just affecting Fall * because we do so much more in the same system.

In all seriousness, the fact that Diplomacy windows kill it is the worst part, because you can't get around that. Is there a fix for the diplomacy issue in the DLLs posted above? There's no way to tell Arendrel to stop bothering me every two turns about some lizardmen who are kicking her butt.... so crashes tend to abound.

After applying the fixes in the issues debuged by MootPoint, everything is normal for me. Can you reach a reproduceable crash with that diplomacy issue so that we could look at?
Perhaps MootPoint could also find something there.
I assume you have already checked the MAF thread. The fix helps avoid a lot of crashes, also.
And I assume that your pagefile is already >3GB. If not, you should make it >3GB
 
Yep, 3gb. I'll run through on Singleplayer - I am talking about before the most recent DLL file (as it was not letting us play an MP game, then we all got irritated and I went to go play Empire. :D ) - and see what happens.

I'm pretty sure I've done what the MAF thread said to, but I haven't looked in a long while (and can't find it right now >_<) . These are straight CTDs, though... not Memory Allocation Failures... so I doubt that's the issue anyways.
 
Yep, 3gb. I'll run through on Singleplayer - I am talking about before the most recent DLL file (as it was not letting us play an MP game, then we all got irritated and I went to go play Empire. :D ) - and see what happens.

I have mine at 4 GB min, 4.5 Max..I suggest this setting for the pagefile.
And a free space of 10GB or more helps, also.

It would be better if you used the _fixes, DLL, at least. This way you will avoid the Division by Zero and the Invalid pointer assignments...
 
I just checked, it's actually a 3gb-8gb page file, and I've got somewhere around 160 gigs free on the main drive. >_>
 
Compiling the CvUnit.cpp with "warnings level 4" enabled(to debug my code), I have noticed several occasions(3 or 4) where variables may be used without being initialised(unfortunately, not in my code :(). A few of them is in a "Better AI" section(at least 1 maybe more).

I just wanted to inform you about the fact, so you can look on it. It is not one of the cases the compiler complans witout reason. Just by a quick examination, there is at least one occasion that the variable is expected to get a value from within a loop that runs through an improvements check(IIRC). If there are no improvements, the variable will not be given a value and this cannot be good...

Sorry for the generality about actual accurances, but I had not much time to look at them in more detail.
 
Back
Top Bottom