Python Version

LPlate2

Warlord
Joined
Dec 27, 2018
Messages
299
Hi,

Quick question. Can I use the latest version of python 3.x for modding Civ 4? I used to use python 2.6.

Any recommendations as to what python editor I should use and where to download it?

thanks
 
The exe is hardcoded to use python 2.4, meaning that's the version you should use for modding as well.

I use notepad++ as editor. It gets the job done fairly nicely regarding syntax highlight, but it's not an IDE. It would be nice if somebody could point out a proper python IDE. Everything I tried so far have done such a poor job that notepad++ ended up being more productive.
 
Last edited:
Civ 4 for Windows uses Python 2.4. Civ 4 for Mac uses Python 2.3. Neither can be upgraded to more recent versions.
 
Thanks, 2.4 it is.

I wonder how I used to manage with python 2.6 and if this was the cause of some of my more annoying bug hunts.
 
The only Python IDE I know is PyCharm, but it isn't free unless you can get a student license or similar.
 
Pycharm (has community edition) doesn't support python 2.4 but only 2.7 and 3.x
Also it is difficult to set up BtS python environment correctly. It's not a monolithic project, but modules and overrides are scattered everywhere. It's even worse after Modular Loading Control mod has been introduced. An IDE simply doesn't understand our modular loading definition xmls and organize the project for us.
Simple text editors like Notepad++ wins by having not so many features that are actually useless.
 
Back
Top Bottom