The python interpreter included with vanilla Battlefield 2142 is lacking a fairly large amount of functionality. Much of this involves restrictions on OS interaction, as well as the removal of threading support and the ability to load C extensions. Due to this, a large chunk of the standard library is broken as it depends on functionality that was removed. The goal here is to replace 2142's python interpreter with an unrestricted one and to include the full standard library.
- The instructions provided here are for the 64 bit linux server, but the process should work with minor adjustments on 32 bit linux and on windows.
- In Battlefield 2142's custom python interpreter, if an exception is uncaught it will not crash the entire server (like it would in bf2 iirc). Without additional modifications, this process will cause uncaught python exceptions to crash the entire server.
- There is an old blog post about doing this for bf2, but it's very brief and does it in a way that's not e