A try to get a faster game

rapiduser

Chieftain
Joined
Oct 15, 2006
Messages
72
Hi all,

I love this Mod, but sometimes it is slow.
So try to improve my Skills in Python and try to find things that the game slow down.



In the CityNameManager.py I found out that, if Barbarians conquer a City the List will not be checked. But if Natives and Independents do the List get Checked. So I edit the following Line.

Original

if (iOwner != iBarbarian ):
cityName = tCityMap[iOwner][67-city.getY()][city.getX()]

Edited by me

if (iOwner != iBarbarian and iOwner != iNative and iOwner != iIndependent and iOwner != iIndependent2):
cityName = tCityMap[iOwner][67-city.getY()][city.getX()]

This will not speed up the game a lot but I think if we find more small things to speed uop the game will be better :)

A Question: Is there a log File where i can check what´s going on in the backround of the game?
 
The reason the city names get checked is because indendepents when taking over from an instabilited civ will set the names to basic...it is part of the gameplay.

Towards the log file, I believe you can set a command to show the python errors, and commands, however I do not know it myself.

Also, you are actually now performing more checks that will take longer...at least that is how it reads to me, because the actual time it'll take the python to run through the list and pick out the name won't be much, however checking the civ isn't all these...can't remember from programming what takes longer...
 
The reason the city names get checked is because indendepents when taking over from an instabilited civ will set the names to basic...it is part of the gameplay.

Towards the log file, I believe you can set a command to show the python errors, and commands, however I do not know it myself.

Also, you are actually now performing more checks that will take longer...at least that is how it reads to me, because the actual time it'll take the python to run through the list and pick out the name won't be much, however checking the civ isn't all these...can't remember from programming what takes longer...

But if an independant takes a city there are no checks (I think so).
 
Anything you can do is helpful! Plug away at it.
 
Top Bottom