Page 1 of 1

debug() not writing to logs in 3.1 beta 4?

Posted: 22 Feb 2012, 05:08
by aubergine
I don't know if it's a bug or PEBKAC, but the debug() function no longer seems to be writing to stuff to the logs in WZ 3.1 b4... Anyone else having this problem or am I having another senior moment?

Re: debug() not writing to logs in 3.1 beta 4?

Posted: 22 Feb 2012, 05:16
by aubergine
This is my AI script btw:

Code: Select all

function tracebot() {
  console("tracebot called "+version); // this gets shown in console
  debug("tracebot called "+version); // but this does not go in to logs

  var research = enumResearch();
  
  for (var r=0; r<research.length; r++) {
    debug("* "+research[r].name); // or this...
  }

  removeTimer("tracebot");
}
function eventStartLevel() {
  setTimer("tracebot",20000);
}
I see the console message but nothing goes in to the logs.

I'm looking in the correct WZlog-*.txt file but it's practically empty (see attached).

Re: debug() not writing to logs in 3.1 beta 4?

Posted: 22 Feb 2012, 05:17
by aubergine
Also, I noticed that if I delete all the files in the logs folder whilst WZ is running, new logs (both the netplay and the WZlog) don't get created when I start a new game. Something gone fubar with the logging system?

EDIT: I'm on Mac OS X 10.5.8 btw.

Re: debug() not writing to logs in 3.1 beta 4?

Posted: 24 Feb 2012, 19:38
by aubergine
Anyone else having this problem?