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

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

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

Post 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?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

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

Post 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).
Attachments
WZlog-0222_025731.txt
(22 Bytes) Downloaded 178 times
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

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

Post 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.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

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

Post by aubergine »

Anyone else having this problem?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Post Reply