I have run into some bug because nothing below a Event:CreateImprovement works therefore i had to redo the trigger for the expansion. the problem is fixed. Then came the incompatibility with Martin's New Capture Cities option. But i figured out that this was caused because the event KillCity and the KillPop were both triggered together what may have happened what i I heard here as the name of a memory leak and they did not work together. since i thought KillCity was already useless (a city only dies when it has 1 pop only), now that i know it has negative effect i removed it.
But now everything is working. I did not made a whole game testing but i tested it in every possible way. So i can say for sure that the code is working bug-free. I will finish the read me, make it a mod and set the zip file. Probably tomorrow i will send Locutus the file for the database and start a new thread.
PS: Dale I had to make city expansion trigger happen almost every time the city grows. So to prevent the city to expand whe you add a pop you will have to create a variable to prevent this to happen. Yet this is a really small modification and should not be a problem.
But now everything is working. I did not made a whole game testing but i tested it in every possible way. So i can say for sure that the code is working bug-free. I will finish the read me, make it a mod and set the zip file. Probably tomorrow i will send Locutus the file for the database and start a new thread.
PS: Dale I had to make city expansion trigger happen almost every time the city grows. So to prevent the city to expand whe you add a pop you will have to create a variable to prevent this to happen. Yet this is a really small modification and should not be a problem.
Comment