search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 12.22.24

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: UrT Demo Loader
PostPosted: 12.14.10 
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
Found a lovely piece of software (Windows-only though) that allows you to double-click on the demo file in Explorer and launches UrT to play it. Real heaven-sent for those who watch a lot of demos, as the UrT's built-in demo browser stinks on ice. (I can't see half of the contents of my demo folder at all.)

As far as I know, that's the only way to start demos externally; it seems there's not even a command line option.

Ah, yes, link: http://www.1upclan.info/projects.php (last one on the page).

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

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

Daily Deadnade (last updated September 9, 2016)



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
Offline
posted some :)
User avatar

Joined: 02.01.10
Posts: 104
Interesting tool :)
But no version for linux and that is too bad. :P

_________________
People were created to be loved,Things were created to be used.
The reason why world is in chaos, Is because things being loved
And people being used...



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
Offline
Godlike
User avatar

Joined: 10.14.08
Posts: 2006
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60
you can easily create this with a shell script
using pwd and fs_homepath

_________________
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
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
…the rest is left as an exercise for the reader, yes? I mean, if you don't care about the fancy double-click-on-demo-to-play behavior, throwing together something that does the work would indeed be quite easy, even for me. If one knew how the hell could he pass along the demo file to the game so it would play it.

And still haven't found any way to do it (not that I've been searching all that hard, I do have a working solution).

EDIT: Start the game with +demo <file> (extension optional):-) Found this by experimenting, no search turned up anything useful. Now, how to make this more usable… Blegh, have been awake for seventeen hours and really don't want to think now…

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

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

Daily Deadnade (last updated September 9, 2016)



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
Offline
Leader
User avatar

Joined: 11.29.08
Posts: 1972
Witch wrote:
But no version for linux and that is too bad. :P

Fortunately you don't use Linux :p

Hmm there was a demo launcher for Q3 10 years ago, I wonder if it works with UrT but I guess it does. Anyway cool stuff, good to see other communities with other UrT-related projects. They have a gadget for server monitoring too !! :)

_________________
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
Offline
Ingame Mod
User avatar

Joined: 12.19.09
Posts: 806
Location: @Gauss:
-----tdm:  
nick: [dswp]Jan
skill: 330.877
kills: 220
deaths: 210
ratio: 1.04
-----bomb:  
nick: [dswp]Jan
skill: 664.203
Wait.. what?

Actually clicking on demo -> Properties -> Open With -> Custom command 'PATH/TO/LAUNCHER +demo %f'...
%f is full path to opened file..

Aaaaaand you will get error cuz stupid UrT is looking in demos//home/blablabla...
So either you have to change %f to show just filename and symlink it somehow, or maybe some ../ hack :D or made new script which do the work :/

aaaaaand if u solve problem up there you can associate the file with your FireRox so you just click on demo and choose open and tramdadada you have automatically launched game and demo... :)

Just Random Noob: Wow, good job on that +demo thing!!! :)



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
Offline
Godlike
User avatar

Joined: 10.14.08
Posts: 2006
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60
There you go, lacks documentation, help and whatever you want, but takes exactly one argument (path to demo), plays it and well that's about it!
Code:
#!/bin/sh
BINARY="/usr/games/bin/urbanterror"
FS_HOMEPATH="${HOME}/.q3a/q3ut4"

cp $1 ${FS_HOMEPATH}/demos/
$BINARY +demo `basename $1`
rm ${FS_HOMEPATH}/demos/`basename $1`
 

paths should be pretty default

for draiks clicky bunty file manager it would be custom program: "PATH/TO/SCRIPT %f"

EDIT: wow almost took me as long as writing this post to solve this very difficult problem which totally needs a big program hopefully with even bigger ui

_________________
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.14.10 
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
Lol, I* was thinking about writing something like that tomorrow** (I even bookmarked the thread page) because I thought it can't be much more trivial with +demo available.
_______
*I actually consider myself a n00b when it comes to shell scripts.
**Because I am _that_ lazy.

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



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.16.10 
Offline
Ingame Mod
User avatar

Joined: 12.19.09
Posts: 806
Location: @Gauss:
-----tdm:  
nick: [dswp]Jan
skill: 330.877
kills: 220
deaths: 210
ratio: 1.04
-----bomb:  
nick: [dswp]Jan
skill: 664.203
Unclefragger wrote:
...

First) I am not a Draik!! :D maybe i would want to be but anyway.. ;)

yes i didnt like the idea of copying the demo (no offence Uncle :) ) to demos so my script temporary symlink directories and afterwards remove symlink. usage the same as uncle's
Code:
#!/bin/bash
#!/bin/sh
BINARY="/PATH/TO/URT/BINARY"
FS_HOMEPATH="${HOME}/.q3a/q3ut4"
DEMO_DIR=`dirname $1`
ln -s $DEMO_DIR ${FS_HOMEPATH}/demos/
$BINARY +demo ${DEMO_DIR##*/}"/"`basename $1`
rm ${FS_HOMEPATH}/demos/${DEMO_DIR##*/}


This is my first shell/bash script!! yayy :)
Maybe i will do another one which will move demo not create symlink..



 


Top
 Profile  
 
 Post subject: Re: UrT Demo Loader
PostPosted: 12.17.10 
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
eXtr33m wrote:
i didnt like the idea of copying the demo
A typical large demo from WTS is like 1MB in size. Unless you're running your system off a flash drive the procedure should be very safe for your HDD.

P.S.: Symlinks are evil (and I really mean it).

_________________
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  [ 21 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 42 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