This widget makes a file instantlog.txt in the same place where there is infolog.txt and instantly writes all console/chat text to it. It only does that when /cheat is enabled because during modding I like to have that autoenabled (put Spring.SendCommands ("cheat") somewhere in mod) but during online games it is not. To clear the logfile just disable&renable in F11 list. (just noticed the "try to write even if logfile==nil" is a bit fail but oh well)
you could also just redirect stdout and stderr to files, or to one file. that should be more reliable, and works before Lua is initialized already. stderr will get only warnings and errors. stdout the rest.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
in some meeting minutes it says the change was needed because some games spam so many errors that it becomes a problem for the computer. kinda lol but maybe better for players it is better this way if it really was a problem. (which nubgame ruined it for everyone else?)
And with this thread modders now have various ways to get it "almost" like before. I've made the thread sticky for 30 days because while it might be trivial for some, I feel like others might never have heard of stdout and such before.
Spring is unlikely to cause a BSoD these days (which will surely result in no log except the startup stuff with the new logging btw), at least I haven't got a single Spring-related BSoD that year. I hope the log will get written after a 'normal' crash?
in some meeting minutes it says the change was needed because some games spam so many errors that it becomes a problem for the computer. kinda lol but maybe better for players it is better this way if it really was a problem. (which nubgame ruined it for everyone else?)
And with this thread modders now have various ways to get it "almost" like before. I've made the thread sticky for 30 days because while it might be trivial for some, I feel like others might never have heard of stdout and such before.
If a game is spamming that many errors it needs fixing anyway, clearly. I've had epic lua spam in S44 many times and my computer soldiers onwards.
We shouldn't have to make do with 'almost' unless it is truly necessary - and in that case, we should be told what is being changed and why; beyond expecting us to read every detail of the minutes.
I am not sure if I am pleased about this... I kinda like that spring freaks the fuck out when something is wrong. It means I am forced to fix it and players will notice it rather than tracking down mystery bugs.
i was told, that we could still have basically instant writing to file, if we would set the output-buffer size to a low value. already forgot again, where/how to do that.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum