dswp.de
http://www.dswp.de/old/

[CODE] playdemo 0.0.6.3, easily play back Urban Terror demos
http://www.dswp.de/old/forum-gameserver-support/playdemo-0-0-6-3-easily-play-back-urban-terror-demos-t3667.html
Page 1 of 2

Author:  Pirat [ 06.08.11 ]
Post subject:  [CODE] playdemo 0.0.6.3, easily play back Urban Terror demos

(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 1195 times

Author:  draik [ 06.08.11 ]
Post subject:  Re: [CODE] playdemo 0.0.4, easily play back Urban Terror demos

Pirat started a new project yepi!!.
I think i'll test it tomorrow :)

Author:  PingoSuSE [ 06.10.11 ]
Post subject:  Re: [CODE] playdemo 0.0.4, easily play back Urban Terror demos

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?

Author:  Pirat [ 06.10.11 ]
Post subject:  Re: [CODE] playdemo 0.0.4, easily play back Urban Terror demos

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

Author:  PingoSuSE [ 06.10.11 ]
Post subject:  Re: [CODE] playdemo 0.0.4, easily play back Urban Terror demos

yay .... it works when I've changed line 28 :mrgreen: :D

Author:  Pirat [ 06.10.11 ]
Post subject:  Re: [CODE] playdemo 0.0.4, easily play back Urban Terror demos

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

Author:  PingoSuSE [ 06.10.11 ]
Post subject:  Re: [CODE] playdemo 0.0.5, easily play back Urban Terror demos

Well, it looked everywhere but my home directory :lol: .... after path change, it works OK ;)

Author:  Pirat [ 06.10.11 ]
Post subject:  Re: [CODE] playdemo 0.0.5, easily play back Urban Terror demos

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

Author:  PingoSuSE [ 06.11.11 ]
Post subject:  Re: [CODE] playdemo 0.0.5, easily play back Urban Terror demos

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 :?:

Author:  wurst [ 06.11.11 ]
Post subject:  Re: [CODE] playdemo 0.0.5, easily play back Urban Terror demos

dont u fear the suse!

Page 1 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/