Python Used as Modding Language for Battlefield 2
Dutch Dopey writes "In an interview with Lars Gustavsson of DICE, it was mentioned that Battlefield 2's modding tools are going to be delivered with the game, and that the tools are the same ones used to develop the game. The modding language in use is Python, and will support all aspects of the language.
For mods, it's OK, but it's simply too high a level code for the main game. Battlefield already runs too slowly on my computer (UT2k4 works 10x better). I don't want it going even slower!
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core Dumped
Ok... Is it safe to assume that the _whole_ game is coded in Python then?
Not in the slightest. Python integrates well with C and C++. (Some other languages do it without somewhat less boilerplate in the integration code, but Python is one of the languages that basically integrates 100% feasibly.)
In fact, quite the opposite; it's safe to assume only the high level is in Python. That's Standard Operating Procedure for high-performance code in the Python world.