Proper way to do what I tried at revisions 10878 and 10879: Sorting Religion/Corporation by TGA and LeaderHead/Civilization infos by Type name, using simpler functions. I've forgot to update the global InfoTypeString map after sorting.
confirms removal of debug dll - if you need it, compile it from the MakeDLLDebug.bat file in the tools folder
fixes a crash bug that was the result of a civ losing all of its revealed tile designations due to the correct functioning of a wonder. Reprogrammed the wonder to call to a new function that eliminates 'revealed tile designations' ONLY if the tile is not currently in visibility range. Also protected the code from the possibility that this could still end up letting a unit be on an unrevealed tile or an area with no revealed tiles, and thus producing a divide by 0 error. That 0 can no longer be less than 1 for the purposes of these calculation spots.
Fix crash when civics calculations don't consider civ without a capital.
Remove defunct VS 2008 project and solution. Get VS2019 already!
New dll release build.
Added dll assert build.
The 2008 project wasn't updated to use the new makefile and no one mentioned it, this indicates no one uses it.
Dunno why debug dll was removed, non dll modders are meant to check their changes against it, and building it each time will make that even less likely than it probably already is. Renamed to .assert though as that is the actual built it uses (optimized, with asserts enabled).
@Thunderbrd have a quick check of my fix when you can please!
Branch: Redid splitting CvInfos, using svn copy first to preserve file ancestry. Then I moved the codes as-is, to make it easier to compare the diffs.
Previous CvBuildingInfo stuff is moved into CvInfoCity. I divided the classes into base (CvInfos), terrain-, game-, player-, city-, and unit-related containers.
Test compile fails at the linking stage due to unresolved or repeating *ArtInfo symbols.
10903 (Branch only)
Branch: Fixed two pieces of CvInfos code that I didn't move properly.
10904
Merged revision 10903 from branches/newXMLLoadUtility: Divided CvInfos code into 6 parts.
10905
Redo svn action by copying from earlier revision of trunk to keep history clean.
10906
Redo svn action again by copying from revision 10860 of trunk to keep history clean.
10907
Clean some white space in CvInfos; Remove the Empty Tag template
Implemented AI_scoreBuildingsFromListThreshold to return ordered list of adviser selected buildings along with their scores, from a pre-selected list of candidates. This is WIP, it is partially refactored for clarity, and not yet functionally changed (it should behave exactly like the unrefactored version). I also added comments throughout to describe the behavior.
Refactored the other AI_bestBuilding* functions to all feed into this new more generic method.
Removed FreeTradeRegionBuilding and all related code. It was unused 6 years ago and remains unused to this day. Goodbye!
Added a note about save breaking changes markup to the txt file, and marked my changes. I DIDN'T BREAK SAVES. This is just a note for when we DO break them for other changes we should make at the same time.
Significantly optimized the production popups. They take 10% or so of the time they used to. However this was partially achieved by changing the behavior: only a small selection of possible buildings and units is shown (the 5 strongest units, and the 5 best buildings as rated by the AI advisers, the best worker, work-boat and settler). This is WIP and not yet finalized, also open to suggestions.
Optimized the string hash in Globals.
Added a cache for total city base commerce rates of the player, flushed at turn start. This is an expensive calculation and used only for AI estimations. As such it doesn't need to be perfect at all times.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.