search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 12.21.24

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: 03.07.12 
Offline
Godlike

Joined: 03.29.10
Posts: 1447
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63
eXtr33m wrote:
Woot! Can you describe what's the program for?? I always had an idea of parsing urt output for misceleanous reasons...
[...]

I don't know what exactly natirips' parser does, but in case
somebody just wants to add time stamps to their UrT log:

Code:
sudo -H -u $USER_URT mumble-overlay $destdir/urt.sh $prog $parms \
|& while read line; do
  echo -E "$(date +'%Y-%m-%dT%H:%M:%S') $line" \
    | script-declutter >> "$LOGFILE"
done
 

script-declutter is a slightly modified version of a script I found
on the web and which filters ^H etc.

.



 


Top
 Profile  
 
PostPosted: 03.07.12 
Offline
[dswp]R.Stallman
User avatar

Joined: 04.13.09
Posts: 2946
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60
What my program does is color the terminal output.

I.e. if the program gets "^3yellow_guy: ^1red text" then it will color background red (to draw attention to chat and it will color his name yellow and the text red.)

Pictures will explain better:
Attachment:
screenshot5.png

Attachment:
urt2.jpg


This way I get:
- long history of messages
- messages do not clutter UrT window / my view (they are only shown for 1msec)
- unlike optimized exe I cat tell different types of messages apart by background color(hit messages are green (You hit...), light blue (You were hit...), blue (... had xx% Health.); chat is red; the rest it on black background.)
- colors (^1^2^3...) remain even though it's a linux terminal

Edit: Without this program all text would be the same color.


You do not have the required permissions to view the files attached to this post.

_________________
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«



 


Top
 Profile  
 
PostPosted: 03.08.12 
Offline
DSWP Meme Artist
User avatar

Joined: 12.05.10
Posts: 1852
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 618.539
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08
Win.

_________________
Путін — хуйло

Beginner’s Guide to Urban Terror (woefully out of date)

Daily Deadnade (last updated September 9, 2016)



 


Top
 Profile  
 
PostPosted: 03.08.12 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4648
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09
impressive.

_________________
Image



 


Top
 Profile  
 
PostPosted: 03.09.12 
Offline
[dswp]R.Stallman
User avatar

Joined: 04.13.09
Posts: 2946
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60
Actually, linux uses a not-so-different way to set colors.

In q3 it's ^# where # is the color code.

In linux, it's \x1b[38;5;#m where # is the color code.
Also, for background color it's \x1b[48;5;#m .

It is a little longer and the color code is more complex (256 vs. 8 colors) but essentially they both have a sequence of bytes and a number in it.

I mean, the source code for the converter with all the comments and the license text it 5400bytes.

_________________
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«



 


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


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

Search for:
Jump to:  
Imprint

Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009, 2010 phpBB Group

Skin by Lucas Kane
we use apache2 mod rewrite with phpBB SEO
map train_beta1-100 © 2009 by SteveMcQueen
Statistics Backend + Database by XLR Stats and B3 Bot
mapvote robot and gameserver monitor © 2009 by BlinKy
mumble viewer Copyright © 2008 Dominik Radner (aka Urmel)
mumble switcher and integration © 2008 by XTJ7, Unclefragger and Wursti
Localisation Plugin © 2009, Team Leads Plugin © 2009 and Knifer Plugin © 2009 by SvaRoX
for our stats we use Chart.js Copyright (c) 2013-2015 Nick Downie.
the stats also use some jQuery jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc.



voice server
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1730.63418631
NormaSnockers1865.75400492
Zottel1760.8276378
make.them.suffer1846.17269872
>8v=1825.35230156
moon1777.56195615
sjas1692.49192315
peace1878.86190660
Wagner_Moura1562.9188001
Goomba1859.75182677
z0rn1608.41181016
Mad1803.76179124
[dswp]PLZ1847.85178516
Graf_ZahlIII1835.73167407
Zohan1611.07159737
ubercunt1634.93159240
Yarrr!1917.33156233
I_am_nOOb1909.64151268
Pandageddon1891.75148319
Pirat1664.08145798