"I can't do a new release in this state."
How I wish professional game studios would say this when the product isn't ready. Take your time.
I just read this in the new 2UC release notes:
"Removed atrocious Firaxis implementation for diplomacy message log
Was VERY slow and inefficient, looping through every sent message (up to 60) to see how long it's been since a specific message was sent
And it would do this for many types of message the AI can send, and repeat for every other player
And then, at the end of its turn, it would go through all of the messages it's sent to each player, increment the "turns since sent" by 1 (which wouldn't update while dead)
And then go through them all AGAIN to write data from each message to a logfile, despite already logging the message on sending
Replaced this horror show with a simple two-dimensional C array that stores the turn number for each type of message and does [game turn minus turn sent] to figure out how long it's been
The mind boggles as to why this was not done originally, I cannot overstate how badly this was coded
Also, with this terrible code removed and azum4roll's reorganization, reworking the leader dialogue system in the future will be a lot easier"
I renew my compliment to you!