The only log file in mohaa is called qconsole.log and it logs everything that gets outputed to the console including errors . By useing a command line like this
Code: Select all
"C:\Program Files\EA GAMES\MOHAA\MOHAA.exe" +set thereisnomonkey 1 +set developer 1 +set cheats 1 +set logfile 2 +set ui_console 1
+set logfile 2 would turn on logging also +set developer 1 puts you in delevoper mode and more detailed info gets logged . You can type logfile 2 into the console to turn on loging as well . When a map is loaded the script for that map that has the same name as the map with a .scr extention gets loaded . When a new map is loaded so is a new scirpt . If your script was called by the new script or executed from global/DMprecache.scr that is called to exectue by many of the stock MP maps then it would run . Like I said the console log logs everything includeing errors and is used to debug mainly . A statement in the level scriot such as iprintln would show on the screen and the log . println I think only shows in the log . You can get the map name from a cvar
Code: Select all
while((getcvar mapname) == "obj/obj_team2")
The thing is then that map ends so does your script . If needed you can set a cvar that does keep a value between maps also a game variable such as game.info or any one you can make up will keep a value between rounds but not between maps .
There is no way to append a log file other than causing something to be output to the console and console log .