Python script (map generator) output

tdb

Warlord
Joined
Nov 12, 2005
Messages
205
Location
Finland
I'm trying to debug a map script not made by me, and certain things are a bit difficult since I can't get any text output from the script. I've tried print, sys.stderr.write, even opening a file in the My Documents directory and writing to it. In every case the output seems to go into a black hole. The map script's configuration saving doesn't work either (incidentally, that's one of the things I'm trying to debug).

Is there perhaps some sort of safeguard in Civ4 that prevents it from writing outside of its own directories? How should I go about writing something to the user-specific configuration directory? And why won't stdout/stderr work?

I'm running the game under Wine on Linux, and with a setup that doesn't allow me to write to the game's installation directory. I do have the power to change that but don't want to unless there's no way to write stuff to the user's configuration directory.
 
Top Bottom