[bf1942] Python Question

Andreas Fredriksson deplinenoise at gmail.com
Fri Jun 17 17:37:43 EDT 2005

On 6/17/05, metac0m <metac0m at pixel-war.de> wrote:

> The public server version apparently has no debug functionality.

That must have been an oversight at ship time.

If you would like to see the output there are a few viable options to
get at it. The starting point is to override the fake_stream stuff in
bf2's __init__.py module; it normally maps to the game's console, but
seeing that this is disabled in retail builds it might be useful to
append to a file or send messages to syslog or whatever.

Any object with a write() method is suitable to replace stdin and
stdout, so you can basically have the output go anywhere you want.

// Andreas

And I hate redundancy, and having different functions for the same thing.
        - Linus Torvalds on linux-kernel

More information about the Bf1942 mailing list