Author Topic: Bind help  (Read 6472 times)

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Bind help
« on: August 10, 2010, 09:48:36 pm »
To start off, I'm using tremulous 1.1 TJW's HUD.  Basically I would like something that functioned like the servers game.log.  Talking to some friends, they said someone had accomplished this with condump at the end of each game it would run /condump, sadly they lost the code.  Any one here know how?
Pathbot every thing you need here

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Bind help
« Reply #1 on: August 11, 2010, 12:21:38 am »
I used to just have the script that started trem add | tee "~/.tremulous/logs/$(date +something)"
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: Bind help
« Reply #2 on: August 11, 2010, 02:39:31 am »
I used to just have the script that started trem add | tee "~/.tremulous/logs/$(date +something)"

Uhhm... How would I go about editing the script that starts my trem?
Pathbot every thing you need here

F50

  • Posts: 740
  • Turrets: +16/-26
Re: Bind help
« Reply #3 on: August 11, 2010, 03:07:21 am »
If you are on linux open up a terminal and type "which tremulous" which will then tell you what is running when you try to start trem. Open that with a text editor. If all you see in the text editor is several hundred lines of garbage, its probably you're tremulous executable. In that case you'll have to rename the executable and make a shell script in its place.

If you're on windows, dave's tee statment won't help you. If it exists you might try setting the cvar cl_autorecorddemo which will provide you with a demo, which you should be able to convert to a condump in-game.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: Bind help
« Reply #4 on: August 11, 2010, 07:32:18 pm »
I'm on a mac OS, and demos create lag.  Also, I don't see how demos would help, it would just mean I would have to go through twice the trouble to make a condump.
Pathbot every thing you need here

FisherP

  • Posts: 295
  • Turrets: +31/-32
Re: Bind help
« Reply #5 on: August 11, 2010, 09:33:23 pm »
How about opening up console and typing
Code: [Select]
/logfile 2Then find the file called "qconsole.log" it should be in your base directory

FisherP

  • Posts: 295
  • Turrets: +31/-32
Re: Bind help
« Reply #6 on: August 11, 2010, 09:35:18 pm »
How about opening up console (in trem) and typing
Code: [Select]
/logfile 2Then find the file called "qconsole.log" it should be in your base directory

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: Bind help
« Reply #7 on: August 11, 2010, 09:50:39 pm »
Awesome, does but does this have to be run at the beginning of each game?  Or does it keep going untill you shut trem off? when you start trem do you need to run the command again?  Does this have a cap to how much it can hold?
Pathbot every thing you need here

FisherP

  • Posts: 295
  • Turrets: +31/-32
Re: Bind help
« Reply #8 on: August 13, 2010, 05:04:30 am »
Awesome, does but does this have to be run at the beginning of each game?  Or does it keep going untill you shut trem off? when you start trem do you need to run the command again?  Does this have a cap to how much it can hold?

You can run this at any stage during the game. If you switch it off then back on again the qconsole get's overwritten by my experience. If you use "/logfile 1" the log file is written during the game, but get's deleted (from my memory) when u leave the game. If you re-start trem you will need to run it again. I don't know about cap, I think it will keep filling up the log file till your hdd is full (don't quote me on this) I've had times where I've played 6 or more games and it all fit in one log file.

commander scrooge

  • Posts: 187
  • Turrets: +1/-9
Re: Bind help
« Reply #9 on: August 13, 2010, 01:01:28 pm »
Awesome, thanks fisher  ;D
Pathbot every thing you need here

Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: Bind help
« Reply #10 on: August 13, 2010, 09:04:35 pm »
IIRC you can just "./[place where trem is installed]/tremulous > [place where you want the logfile to be saved]" and save it in a tremulous.sh.  That was a really bad explanation, but I can explain better when I get home (and can test it) :)

F50

  • Posts: 740
  • Turrets: +16/-26
Re: Bind help
« Reply #11 on: August 13, 2010, 10:19:05 pm »
tee essentially does the same thing, but also leaves output in stdout.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law