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

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
debug() not writing to logs in 3.1 beta 4?
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
-- https://warzone.atlassian.net/wiki/display/GO
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: debug() not writing to logs in 3.1 beta 4?
This is my AI script btw:
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).
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'm looking in the correct WZlog-*.txt file but it's practically empty (see attached).
You do not have the required permissions to view the files attached to this post.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: debug() not writing to logs in 3.1 beta 4?
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.
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
-- https://warzone.atlassian.net/wiki/display/GO
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: debug() not writing to logs in 3.1 beta 4?
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
-- https://warzone.atlassian.net/wiki/display/GO