search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 04.19.25

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 06.08.11 
Offline
Godlike

Joined: 03.29.10
Posts: 1450
-----tdm:  
nick: Pirat
skill: 496.301
kills: 402
deaths: 636
ratio: 0.63
(This page will be continuously edited upon each release)

This is a simple script for easily playing back Urban Terror demos on Linux.

Not thoroughly tested, but seems to work. =)

ADVANTAGES:
  • No need to rename file names due to Urban Terror case
    sensitivity bug.
  • Very easy selection of last <n> demos.
  • Very easy selection of demos downloaded to arbitrary
    directory..

NEEDS:
  • GNU/Linux incl. bash.

KNOWN LIMITATIONS: See list "TODOs" in the script.

DOWNLOAD: See attachment. Send PM for older versions.

INSTALLATION and INVOCATION
  • download and save as "playdemo.gz"
  • gunzip playdemo.gz
  • chmod a+rx playdemo
  • ./playdemo -h

SUPPORT: There is no guaranteed support of any kind, but if you have
problems, questions or suggestions, you can reply to this
post and hope for someone answering -- after reading the following:
  • playdemo -h


ChangeLog:
0.0.6.3
  • Fix: When multiple demos were specified, only maps for
    one of the demos were linked.

0.0.6.2
  • Fix: fs_basebath was not set, so it was always the latest client version
    that was used to play the demo.
  • Fix: UrT always reads the directory where the executable resides in
    (symlink does not help), so now the executable is an actual copy
    instead of a link. If you want the old behavior due to mass storage
    space constraints, use "--link-exe".

0.0.6.1
  • Add: Installed UrT versions are auto-detected now.
    Supported versions are 4.1 and 4.1.1.

0.0.6
  • Add: New flags '--urtversion=<desired UrT version number>' and
    '-u <desired UrT version number>'. Currently, only "4.1" and
    "4.1.1" are supported. May be needed if you want to watch a demo
    that was taken on a map where the server's version of the map
    differs from the client's version of the map, e.g. (IIRC) on 4.1.1,
    the following maps changed: ut4_ramelle, ut4_swim, ut4_uptown.
    You need to set this to the server version. Default is UrT 4.1.
    NOTE: With 'dm_68' installed, this switch is usually not needed,
    as the used UrT version gets auto-detected then.
  • New: Make use of the program 'dm_68', if installed, to link only the
    the map used in the demo, which makes UrT fire up *much* faster.
    dm_68 can be found here:
    http://skuller-vidnoe.narod.ru/downloads/dm_68.zip
    (You need an older version of GCC or alternatively patch it,
    see
    post34852.html#p34852
    )
    Needed if 'dm_68' cannot detect the map used, or if more than
    one (non-builtin) map is used in the demo.
  • Add: New flags '--all-maps' and '-a' to link *all* available maps, not
    only the one detected by dm_68.
  • New: If 'dm_68' is installed, the UrT version that was used on the server
    where the demo was taken is auto-detected, so you usually do not have
    to use '-u'.

0.0.5.2
- Chg: Bound "toggle r_shownormals" to MOUSE2, too.

0.0.5.1
- Chg: Improved Urban Terror binary search paths.

0.0.5
- Chg: Will search for Urban Terror binary automatically, if $URT is not set.

0.0.4
- Add: Select the last <n> demos to be played via "-<n>" option.
- Chg: More robustness.
- Chg: yes/no prompt for each demo.
- Chg: Print key / mouse bindings.


Attachments:
File comment: ****** LATEST VERSION ******
playdemo-0.0.6.3.gz [6.38 KiB]
Downloaded 2709 times



 


Last edited by Pirat on 06.16.11, edited 4 times in total.
Top
 Profile  
 
PostPosted: 06.08.11 
Offline
Godlike
User avatar

Joined: 05.15.10
Posts: 182
-----tdm:  
nick: draik
skill: 703.677
kills: 5
deaths: 14
ratio: 0.35
Pirat started a new project yepi!!.
I think i'll test it tomorrow :)



 


Top
 Profile  
 
PostPosted: 06.10.11 
Offline
Ingame Mod
User avatar

Joined: 02.23.09
Posts: 537
Location: kn03xh
-----tdm:  
nick: pingo
skill: 532.806
kills: 495
deaths: 461
ratio: 1.07
tried it now, but it's not playing any demo :( .... Here's what I get in console

Code:
pingo@dhcppc0:~/UrbanTerror$ ./playdemo-0.0.4 -2                                                    
No demo(s) specified, looking for last demo(s) taken in
  '/home/pingo/.q3a/q3ut4/demos' ...                                                                

DEMOLIST:                                                                                          
/home/pingo/.q3a/q3ut4/demos/2011_6_9_18_41_56__4Pingo_SRB__ut4_subway_TDM.dm_68
/home/pingo/.q3a/q3ut4/demos/2011_6_9_18_42_21__4Pingo_SRB__ut4_subway_TDM.dm_68

{ Using tmpdir /tmp/playdemo-0.0.4-1000-hBXMZM8d }

The following key / mouse bindings are in effect:

  numpad 8:       toggle r_shownormals
  numpad 4/5/6/+: timescale 0.3 / 1 / 2 / 3
  mousewheel:     timescale 0.1 - 100
  numpad 1/2:     video / stopvideo
  numpad 0:       quit


DEMO: /home/pingo/.q3a/q3ut4/demos/2011_6_9_18_41_56__4Pingo_SRB__ut4_subway_TDM.dm_68
Watch this demo? &#91;Yn&#93;y
DEMO: /home/pingo/.q3a/q3ut4/demos/2011_6_9_18_42_21__4Pingo_SRB__ut4_subway_TDM.dm_68
Watch this demo? &#91;Yn&#93;pingo@dhcppc0:~/UrbanTerror$


I've run it with/without started game but neither way plays demo. Am I doing something wrong?

_________________
Image



 


Top
 Profile  
 
PostPosted: 06.10.11 
Offline
Godlike

Joined: 03.29.10
Posts: 1450
-----tdm:  
nick: Pirat
skill: 496.301
kills: 402
deaths: 636
ratio: 0.63
PingoSuSE wrote:
tried it now, but it's not playing any demo :( .... Here's what I get in console

Code:
pingo@dhcppc0:~/UrbanTerror$ ./playdemo-0.0.4 -2                                                    
&#91;...&#93;
DEMO: /home/pingo/.q3a/q3ut4/demos/2011_6_9_18_41_56__4Pingo_SRB__ut4_subway_TDM.dm_68
Watch this demo? &#91;Yn&#93;y
DEMO: /home/pingo/.q3a/q3ut4/demos/2011_6_9_18_42_21__4Pingo_SRB__ut4_subway_TDM.dm_68
Watch this demo? &#91;Yn&#93;pingo@dhcppc0:~/UrbanTerror$


I've run it with/without started game but neither way plays demo. Am I doing something wrong?

Yyyyno. :-}

I forgot to mention that it needs adaption of the first occurence of the
variable "URT" in the script (line 28). The variable should contain
the name of the Urban Terror binary, including the full path.

The next version will search in a few paths automatically, promised.
:-}

Thanks for the report!


--
Posted using postdemo 0.0.9.12



 


Top
 Profile  
 
PostPosted: 06.10.11 
Offline
Ingame Mod
User avatar

Joined: 02.23.09
Posts: 537
Location: kn03xh
-----tdm:  
nick: pingo
skill: 532.806
kills: 495
deaths: 461
ratio: 1.07
yay .... it works when I've changed line 28 :mrgreen: :D

_________________
Image



 


Top
 Profile  
 
PostPosted: 06.10.11 
Offline
Godlike

Joined: 03.29.10
Posts: 1450
-----tdm:  
nick: Pirat
skill: 496.301
kills: 402
deaths: 636
ratio: 0.63
PingoSuSE wrote:
yay .... it works when I've changed line 28 :mrgreen: :D

Yayyyyy! 8-)

If you want, you can test version 0.0.5 which I just uploaded, and
tell me where your Urban Terror binary resides, then I can
amend the search path, if necessary.

--
Posted using postdemo 0.0.9.12



 


Top
 Profile  
 
PostPosted: 06.10.11 
Offline
Ingame Mod
User avatar

Joined: 02.23.09
Posts: 537
Location: kn03xh
-----tdm:  
nick: pingo
skill: 532.806
kills: 495
deaths: 461
ratio: 1.07
Well, it looked everywhere but my home directory :lol: .... after path change, it works OK ;)

_________________
Image



 


Top
 Profile  
 
PostPosted: 06.10.11 
Offline
Godlike

Joined: 03.29.10
Posts: 1450
-----tdm:  
nick: Pirat
skill: 496.301
kills: 402
deaths: 636
ratio: 0.63
PingoSuSE wrote:
Well, it looked everywhere but my home directory
:lol: .... after path change, it works OK ;)

w0000t?!

Can you give me the path to your binary (if it doesn't have a component
that is too personal :-)? Maybe it's something common ...

--
Posted using postdemo 0.0.9.12



 


Top
 Profile  
 
PostPosted: 06.11.11 
Offline
Ingame Mod
User avatar

Joined: 02.23.09
Posts: 537
Location: kn03xh
-----tdm:  
nick: pingo
skill: 532.806
kills: 495
deaths: 461
ratio: 1.07
I have URT installed in
/home/pingo/UrbanTerror .... there resides my binary :)

What do you think about adding extra line between 208-216 like
Code:
/home/*/*/ioUrbanTerror.i386 \

so it looks whole home folder for binary :?:

_________________
Image



 


Top
 Profile  
 
PostPosted: 06.11.11 
Offline
Godlike
User avatar

Joined: 07.15.08
Posts: 4649
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1054.01
kills: 25999
deaths: 19911
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 810.059
kills: 3930
deaths: 3611
ratio: 1.08
dont u fear the suse!

_________________
Image



 


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 54 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
bomb » dswp.de:22223
status: online
players: 0/16
map: ut4_casa
 
jump » dswp.de:22224
status: online
players: 0/16
map: ut43_infernoicyjumps_b1a
 
freeze » dswp.de:22225
status: online
players: 0/28
map: ut4_casa
 
tdm » dswp.de:22226
status: online
players: 0/28
map: ut4_killroom
 
tdm » dswp.de:22227
status: online
players: 0/28
map: ut4_turnpike
 
btw test the new ajax serwer monitor here!
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1071.72418631
NormaSnockers1155.39400492
Zottel1090.4276378
make.them.suffer1143.27269872
>8v=1130.37230156
moon1100.78195615
sjas1048.1192315
peace1163.51190660
Wagner_Moura967.849188001
Goomba1151.68182677
z0rn996.032181016
Mad1117.01179124
[dswp]PLZ1144.31178516
Graf_ZahlIII1136.8167407
Zohan997.679159737
ubercunt1012.45159240
Yarrr!1187.33156233
I_am_nOOb1182.57151268
Pandageddon1171.49148319
Pirat1030.51145798