User panel stuff on forum
  7 posts on 1 page  1
Help
2007-02-28, 23:16
Member
401 posts

Registered:
Mar 2006
How do you make all text in console log file readable when using -condebug? Most of the text looks like this

ãïô ±´·¯¹±œrlº¸ lifts‘
¨òåóõòòåãôïò©º
ãïô ±´·¯¹±œrlº¸ pent‘
¨òåóõòòåãôïò©º
ãïô ±´·¯¹±œrlº¸ pent‘
¨òåóõòòåãôïò©º
ãïô ±´·¯¹±œrlº¸ pent‘
¨òåóõòòåãôïò©º
ãïô ±´·¯¹±œrlº¸ pent-water‘
¨òåóõòòåãôïò©º
ãïô ±´·¯¹±œrlº¸ pent-water‘
¨‰ ðóéëááò©º
ðóé ˆ ñõáä °¯µ² ó纱¹ ˆ òá ðáôè
¨óåøù âõòë᩺
óåø ‰‰ ò²°°¯±°° ra-mid‘ òì纹¹

Ok its possible to make it readable with log_readable 1 as seen here

(resurrector): >cot _ 147_/91.rl:8 [lifts]
(resurrector): >cot _ 147_/91.rl:8 [pent]
(resurrector): >cot _ 147_/91.rl:8 [pent]
(resurrector): >cot _ 147_/91.rl:8 [pent]
(resurrector): >cot _ 147_/91.rl:8 [pent-water]
(resurrector): >cot _ 147_/91.rl:8 [pent-water]
(_ psikaar): >psi _ quad 0/52 sg:19 _ ra path
(sexy burka): >sex __ r200/100 [ra-mid] rlg:99

but that only saves console text during matches not prewar. Is there a converter or something for qconsole.txt ?
2007-03-01, 02:15
Member
405 posts

Registered:
Jan 2006
Ok, wrote perl mega-super-puper converter for ya, http://llamah.se/90

Also if u want log everything on console u can use "log <filename>", and put it at end of cfg.
So once u start quake u will log console to this file.
But log file overwriten on each quake start up, and that bad.
Solution which comes to the head use it like this, "log $date_$time", so log name will be unique, also easy to search, but $time is in form of HH:MM where : is illegal char on windows file system, so u need replace it somehow. Back in time I wrote some lame script for that http://llamah.se/91 only 27 lines :>
So put it in time.cfg, then out this in cfg:

exec time.cfg
grab_h_m

log logs/$date_$_hours-$_minutes

So, each quake session will log to different log file, and sure use log_readable 1 too, so no need for converter.

May be that may be done somehow different and more simple, dunno.
<3
2007-03-01, 03:25
Member
401 posts

Registered:
Mar 2006
Hey thanks man I really appriciate your quick help. For the last 10 minutes I've trying to figure out how to run your script maybe I should ask you first heh.
2007-03-01, 03:54
Member
401 posts

Registered:
Mar 2006
Yes this method works nicely. I put

grab_h_m
log logs/$date_$_hours-$_minutes

in time.cfg and exec time.cfg on cmdline so it doesn't affect the original cfg file when I use cfg_save and cfg_load

Thank you.

I have only 1 problem. When opening files in notepad every new line of text from console in qw is displayed and seperated by this square looking symbol and the only way it looks normal is if I open it in ms word which sucks cos I prefer notepad. Any solution to that problem?
2007-03-01, 03:55
Member
401 posts

Registered:
Mar 2006
Actually I'd like to see this done automatically in next ezQuake build
2007-03-01, 11:03
Member
405 posts

Registered:
Jan 2006
terrorhead wrote:
Hey thanks man I really appriciate your quick help. For the last 10 minutes I've trying to figure out how to run your script maybe I should ask you first heh.

If u use windows, then install perl, ActivePerl for example, and associate perl.exe with .pl extension.
On linux case I dunno.

Save script to some file, q2a.pl for example, put it where qconsole.log and run, qconsole.log will be converted to qconsole_asc.log.
<3
2007-03-01, 11:49
Moderator
383 posts

Registered:
Jan 2006
I remember i spend 3 min of my time to wrote program like:
while (!feof(fin))
{
fputc(c, fout);
c = fgetc(fin);
if (c>=0x80) c-=0x80;
}

Compiled version of my 5lines converter can be found here: http://b1aze.com/convert.exe

Dunno if it helps you, but you can try .
With best wishes, B1aze.
  7 posts on 1 page  1