Poll

Is it useful?

Yes, I would use it.
5 (62.5%)
Yes but I probably wouldn't use it.
0 (0%)
Not really.
3 (37.5%)

Total Members Voted: 7

Voting closed: December 21, 2006, 08:00:48 pm

Author Topic: Linux TremSTATS client side  (Read 5470 times)

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« on: December 21, 2006, 08:00:48 pm »
I've made a set of set of tremulous statistics scripts entirely in bash to record my achievements and improvements. Just thought I might share them with you'll. This is not like dasprid's tremstats http://dev.dasprids.de/programs/tremstats/ as I've been making it for quite a while now but I guess it has similar capabilities.

These scripts only work in linux unless you can get bash, sed, grep and other linux programs to work under cygwin. It hasn't been tested under mac but it might work with a bit of tweaking. They are just a set of scripts that parse the output of the tremulous binary, nothing more.
Here is a screenshot of it in action:


Here is a tar.gz of the files, just extract in your home directory.

http://www.durand.zephyrhosting.net/downloads/tremstats10.tar.gz

Its a bit messy and will be updated once I work out a few things. Please post some constructive feedback.

UPDATED: Addon- TremBanner

raf

  • Posts: 75
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #1 on: December 21, 2006, 08:22:29 pm »
lol, this morning I was thinking about doing the same :-)

Rprp

  • Posts: 30
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #2 on: December 21, 2006, 08:34:43 pm »
hmm, looks nice.

ricky@ricky-desktop:~/tremstats$ ./get_name.sh

The screen will blank out for a few seconds while the tremulous binary is run. Is this ok? [y/n] y

#############################################################
^1Rprp^7'^3[DEF]^7
#############################################################

Please add this information to the tremstats script.

Your player name is in the file .tremname in your home folder
if you need it again. If/When you change your player name, even the
colour codes in it, you will have to re-run this script to get
it again.


So, whats wrong...

In tremdeaths.sh: NAME="^1Rprp^7'^3[DEF]^7"
In tremkills.sh: NAME="^1Rprp^7'^3[DEF]^7"

... ?

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #3 on: December 21, 2006, 08:36:48 pm »
what do u get when you run the script? nothing seems to be wrong there. Oh, you have to play trem to actually get some stats.

Rprp

  • Posts: 30
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #4 on: December 21, 2006, 09:31:58 pm »
ricky@ricky-desktop:~/tremstats$ ./trem.sh
ricky@ricky-desktop:~/tremstats$ ./tremstats.sh
cat: .kills: Onbekend bestand of map
cat: .deaths: Onbekend bestand of map
cat: .deaths: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map
cat: .kills: Onbekend bestand of map

Alien Stats

Dretch:              0
Basalisk:            0
Marauder:            0
Dragoon:             0
Tyrant:              0

Human Stats

Blaster:             0
Rifle:               0
Pain Saw:            0
Shotgun:             0
Las Gun:             0
Mass Driver:         0
Chaingun:            0
Pulse Rifle:         0
Flamethrower:        0
Lucifer's Cannon:    0

Total Kills

0
0
ricky@ricky-desktop:~/tremstats$


I did run it, and maked +- 50 kills.... :/

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #5 on: December 22, 2006, 11:30:03 am »
i think i know ur problem. can u please translate Onbekend bestand of map? ok, first do cat ~/.kills and tell me the output. Then do ~/tremstats/trem.sh and ~/tremstats/tremkills.sh. I think that the main problem is that your name has a ^ at the start and it doesn't work very well like that for some reason.

Rprp

  • Posts: 30
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #6 on: December 22, 2006, 02:23:54 pm »
ricky@ricky-desktop:~/tremstats$ cat ~/.kills
cat: /home/ricky/.kills: No such file or directory
ricky@ricky-desktop:~/tremstats$ cat .kills
ricky@ricky-desktop:~/tremstats$ ~/tremstats/tremkills.sh
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
0
rm: cant delete `.killdump': No such file or directory
ricky@ricky-desktop:~/tremstats$

EDIT

Created .kills and .deaths in my home dir, but still its not counting :/

EDIT 2

ricky@ricky-desktop:~/tremstats$ ~/tremstats/tremkills.sh
0

In the log:
^1The ^1One ^1True ^1God^7 was machinegunned by ^1Rprp^7'^3[DEF]^7

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #7 on: December 22, 2006, 02:38:11 pm »
ok, the problem is that you are running trem.sh from the tremstats directory. Ill have to update the readme but do ~/tremstats/trem.sh and then try the scripts.

Rprp

  • Posts: 30
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #8 on: December 22, 2006, 02:54:15 pm »
Its in the log. but its not parsing, its cause i got a ' in my name?

Rprp

  • Posts: 30
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #9 on: December 22, 2006, 02:57:28 pm »
Jup, its cause the ' in my name ;[
How can i fix it? :X

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #10 on: December 22, 2006, 03:03:19 pm »
i think its more because of the ^ at the start, i never got it to work like that

Rprp

  • Posts: 30
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #11 on: December 22, 2006, 03:33:17 pm »
Hmmm, i keep it working. ( I think )
But how can i keep 'tremstats in conky working'?
I see already my stats (Ram etc) on my dekstop :x
But not the trem stats.

EDIT, i fixed it, =)

Btw, nice script

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #12 on: December 22, 2006, 07:10:27 pm »
it works?

here is the conky bit:

Code: [Select]
${color lightgrey}Tremulous Stats:
${color}${execi 10 /home/durand/bin/tremkills} kills
${color}${execi 10 /home/durand/bin/tremdeaths} deaths

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux TremSTATS client side
« Reply #13 on: December 23, 2006, 07:43:17 pm »
Code: [Select]
jared@jareds:~$ cd ~/trem*
jared@jareds:~/tremstats$ ./tremkills.sh
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
0
rm: cannot remove `.killdump': No such file or directory
jared@jareds:~/tremstats$ ./tremkills.sh
0
jared@jareds:~/tremstats$ ./tremkills.sh
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
cat: .killdump: No such file or directory
0
rm: cannot remove `.killdump': No such file or directory
jared@jareds:~/tremstats$ ./tremdeaths.sh
cat: .deathdump: No such file or directory
0
rm: cannot remove `.deathdump': No such file or directory
jared@jareds:~/tremstats$ ./tremstats.sh
cat: .deaths: No such file or directory
cat: .deaths: No such file or directory

Alien Stats

Dretch:              0
Basalisk:            0
Marauder:            0
Dragoon:             0
Tyrant:              0

Human Stats

Blaster:             0
Rifle:               0
Pain Saw:            0
Shotgun:             0
Las Gun:             0
Mass Driver:         0
Chaingun:            0
Pulse Rifle:         0
Flamethrower:        0
Lucifer's Cannon:    0

Total Kills

0
0


To get tremkills.sh and tremdeaths.sh to work, i had to add cd ~ at the top.

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #14 on: December 24, 2006, 11:42:52 am »
yeah, i really have to add that to the script.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Linux TremSTATS client side
« Reply #15 on: December 24, 2006, 06:50:20 pm »
this is slightly offtopic but... do you switch to metacity to play trem? or does it run with beryl running. (also: your beryl is prettier than my beryl :cry: )
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

durand

  • Posts: 201
  • Turrets: +0/-0
Linux TremSTATS client side
« Reply #16 on: December 25, 2006, 01:01:15 pm »
i have to switch to metacity...btw, im using beryl svn. im using emerald theme: Scaled Black Mod