Page 1 of 1
[SOLVED]Saving Logs Into A Text Document
Posted: Sun Nov 02, 2014 11:40 pm
by Fabysk
This a big step for me for creating songs for Zand Band. I figured out how to place notes easier for any song using simple ACS codes with the delay's being saved in the console. With all that done, how do I save whatever is in the console into a text document? I believe it is the console command "LogFile", as seen on the ZDoom Wiki, but where does it save it exactly? Or if there's a way to manually save whatever is in the console, please post here. This is the only thing I have left to do.
RE: Saving Logs Into A Text Document
Posted: Sun Nov 02, 2014 11:48 pm
by Slim
Code: Select all
logfile "C:\place\place2\place3\zandylog.txt"
RE: Saving Logs Into A Text Document
Posted: Mon Nov 03, 2014 12:06 am
by Fabysk
Suicide Slim wrote:
Code: Select all
logfile "C:\place\place2\place3\zandylog.txt"
It does create the text file, but only saves the time and location of the file
RE: Saving Logs Into A Text Document
Posted: Mon Nov 03, 2014 1:47 am
by ibm5155
It'll create a text file, with sasves time and location AND all the print and log commands that you made (and with that you can create a generic eicar virus too xD)
edit: Idk if hudmessage is stored too...
RE: Saving Logs Into A Text Document
Posted: Mon Nov 03, 2014 3:10 am
by Fabysk
I have solved what I have wanted

RE: [SOLVED]Saving Logs Into A Text Document
Posted: Mon Nov 03, 2014 2:41 pm
by Empyre
Please share your solution for the benefit of others who have the same question in the future.
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Tue Nov 04, 2014 12:22 am
by Fabysk
Empyre wrote:
Please share your solution for the benefit of others who have the same question in the future.
I'll try my best from memory. I did so many wrong turns in getting this to work.
- Open up the Zandronum folder from this file path C:\Users\(Your User Name)\AppData\Local\VirtualStore\Program Files (x86)\Zandronum. The file path should be something like this. This is where I found mine.
- Create a text file and name it "autoexec.cfg"
- Within the text file, type this in "logfile textFileName.txt"
- Now, every time you play a mod that you have created, it will start logging everything within the console as soon as the mod starts up.
With that done and instead of copying and pasting the whole file path where "autoexec.cfg" is located for logging, I created a key bind within SLADE 3:
Code: Select all
addmenukey "Save Log" Save_Log
aliasSave_Log "logfile C:\Users\(Your User Name)\AppData\Local\VirtualStore\Program Files (x86)\Zandronum\autoexec.cfg"
defaultbind M Save_Log
When you press your key bind for logging, it will be created where your mod is located.
This is what I did to do file logging for single player. I am not 100% sure if this method of offline logging will work for other users. I did this for Zand Band purposes, to create songs easier.
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Tue Nov 04, 2014 2:10 am
by Slim
Yeah, my bad for not being specific in my first post here, I meant to say, logfile saves from when it's executed to when it's either executed again or Zandronum is closed. For all logging benefits and dodging forgetfulness, I have it activate in autoexec and stop when Z& is closed, plenny of singleplayer and online logs filled with obituaries and console commands/binds with echo. Someday I'll have to clean those out because they clutter so much.
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Tue Nov 04, 2014 3:56 am
by Fabysk
Suicide Slim wrote:
Yeah, my bad for not being specific in my first post here, I meant to say, logfile saves from when it's executed to when it's either executed again or Zandronum is closed. For all logging benefits and dodging forgetfulness, I have it activate in autoexec and stop when Z& is closed, plenny of singleplayer and online logs filled with obituaries and console commands/binds with echo. Someday I'll have to clean those out because they clutter so much.
It's all good Slim. But there is something else that bothers me with the logging. Is it possible to remove the timestamps of the logs?
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Tue Nov 04, 2014 10:20 am
by Slim
Fabysk wrote:
Is it possible to remove the timestamps of the logs?
I wish I knew, they are a bit cumbersome at times. But I don't think it's possible.
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Tue Nov 04, 2014 8:18 pm
by Torr Samaho
Fabysk wrote:
It's all good Slim. But there is something else that bothers me with the logging. Is it possible to remove the timestamps of the logs?
Yes, set "sv_logfiletimestamp 0".
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Wed Nov 05, 2014 12:54 am
by Fabysk
Torr Samaho wrote:
Yes, set "sv_logfiletimestamp 0".
Thank you so much Torr. This saves me a lot of time
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Wed Nov 05, 2014 7:12 am
by Slim
Torr Samaho wrote:
Yes, set "sv_logfiletimestamp 0".
Eh? Is there a way for clientside logs too? Since sv_ commands are executed by server/rcon only, if there's a clientside version of this I'd love to see it.
RE: [SOLVED]Saving Logs Into A Text Document
Posted: Sat Nov 08, 2014 11:06 am
by Torr Samaho
Suicide Slim wrote:
Since sv_ commands are executed by server/rcon only, if there's a clientside version of this I'd love to see it.
The prefix of the flag is misleading. It should affect all files written by the logfile command, no matter if they are written by the server or the client.