News: 1up Discord VOIP
Invite Code: https://discord.gg/VPv9JhP

Author Topic: 1up demo loader now available.  (Read 6739 times)

0 Members and 1 Guest are viewing this topic.

Offline Tesla[1up]

  • *Administrative Leave
  • [1up] Dev Admin
  • [1up] UrT Admin
  • Posts: 480
  • Karma: 106
  • Since: 07/07/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
1up demo loader now available.
« on: November 06, 2010, 05:03:44 AM »

If you review alot of demos then you know how much of a pain it can be to use the standard Urban Terror client by itself which is why the demo loader application was created to help make this task as simple as possible. For more details and a download link, just visit our projects page located here. (demo loader is located at the bottom of the page) We hope you will find it useful and as always feedback is welcome.

Thanks,
Tesla[1up]
"May I suggest the footing of your ass" Red Forman

Offline inka

  • Posts: 397
  • Karma: 15
  • q-_-p
  • Since: 23/06/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #1 on: November 06, 2010, 06:27:15 AM »
Wow tesla you are a legend elite coder.
Downloading it now becuase this will me me review ALOT more demos :D fill give more feed back when I have tested it.

By Inka[1up]

Offline SaSoOon[1up]

  • *[1up] Senior Admin
  • [1up] Global Mod
  • [1up] UrT Admin
  • Posts: 392
  • Karma: -17
  • Since: 13/10/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #2 on: November 06, 2010, 07:03:32 AM »
Its Working great
Good job Tesla. :)
« Last Edit: November 06, 2010, 11:08:55 AM by SaSo0on[1up] »

Offline Tesla[1up]

  • *Administrative Leave
  • [1up] Dev Admin
  • [1up] UrT Admin
  • Posts: 480
  • Karma: 106
  • Since: 07/07/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #3 on: November 06, 2010, 09:37:25 AM »
Thanks SaSo0on, even tho you spelled my name wrong, I won't hold it against you :).  Hope it works for you as well Inka.

Tesla[1up]
"May I suggest the footing of your ass" Red Forman

Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #4 on: November 06, 2010, 09:42:00 AM »
How does this actually work? I have no Windows machines so I can't try it. Does it give you a list of demos in your folder to click on to play or something? I read on the projects page about using it as the default program for .dm_68, that's a damn nice feature!

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline Tesla[1up]

  • *Administrative Leave
  • [1up] Dev Admin
  • [1up] UrT Admin
  • Posts: 480
  • Karma: 106
  • Since: 07/07/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #5 on: November 06, 2010, 11:51:50 AM »
No list, you just double click on the demo you want to play and Urban Terror will load automatically and start playing the demo. If you do it from the browser it will do the same thing you just have to associate the file with the program. On my system this was already done I just had to tell firefox to remember the setting. From then on just clicking on the demo link will be enough to get it to play for you, nothing else needed.

Tesla[1up]
« Last Edit: November 06, 2010, 12:39:06 PM by Tesla[1up] »
"May I suggest the footing of your ass" Red Forman

Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #6 on: November 06, 2010, 11:56:22 AM »
How does this actually work? I have no Windows machines so I can't try it. Does it give you a list of demos in your folder to click on to play or something? I read on the projects page about using it as the default program for .dm_68, that's a damn nice feature!

To answer your question, no this isn't for Linux/Mac machines. It is a simple native Windows application that lets you click on a demo on the forums, and downloads it, launches UrT, and plays it, all automagically. The main audience is our referees who watch 100's of demos a week. It saves times, it saves patience, etc. The way it works is basically this.

1. Referee clicks on a "Demo for Review" on the forums.
2. Browser asks him/her if they want to Save/Open the file.
3. Referee clicks Open, and their job is done.
4. Tesla's magic takes care of the rest, UrT launches, demo plays, no further steps by Referee.
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•


Offline Pyrite[1up]

  • *[1up] Dev Admin
  • [1up] Dev Team
  • [1upZ] NMRiH Admin
  • Posts: 1,560
  • Karma: 147
  • Since: 08/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #7 on: November 06, 2010, 02:51:42 PM »
Tesla,

Outstanding work as usual! I believe this is a very useful contribution both to our refs and the community.

Thank you!
•·.· ́ ̄`·.·•"Most Likely to Pillage the Global Village"•·.· ́ ̄`·.·•


Offline White^lynx

  • Posts: 904
  • Karma: 26
  • meoow
  • Since: 09/09/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #8 on: November 06, 2010, 04:09:00 PM »
i love you guys.  :) I love it. Works amazing.

Look how people treat their inferiors, not their superiors.

Offline SnKQuaKe

  • *Friend of 1up
  • Posts: 1,218
  • Karma: 58
  • Keep it simple stupid
  • Since: 25/11/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
    • Youtube's channel
Re: 1up demo loader now available.
« Reply #9 on: November 06, 2010, 07:42:16 PM »
flawless victory
“You can think I'm wrong, but that's no reason to quit thinking.”

Offline ColdBlooded

  • Posts: 740
  • Karma: -17
  • newb status since 1994
  • Since: 02/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #10 on: November 08, 2010, 10:54:21 AM »
does it work for macOS X
Making a new start! :)

Offline Tesla[1up]

  • *Administrative Leave
  • [1up] Dev Admin
  • [1up] UrT Admin
  • Posts: 480
  • Karma: 106
  • Since: 07/07/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #11 on: November 08, 2010, 10:59:58 AM »
does it work for macOS X

Sigh, Read Pyrites first reply in this topic.

Tesla[1up]
"May I suggest the footing of your ass" Red Forman

Offline ColdBlooded

  • Posts: 740
  • Karma: -17
  • newb status since 1994
  • Since: 02/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #12 on: November 08, 2010, 03:08:29 PM »
does it work for macOS X

Sigh, Read Pyrites first reply in this topic.

Tesla[1up]


so sadly right now it doesnt......
Making a new start! :)

Offline KD197

  • Posts: 671
  • Karma: 28
  • Since: 20/06/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #13 on: November 08, 2010, 05:26:20 PM »
HOKAY! HACKY BASH SCRIPT TIEM! 8)
I've slapped together a bash script for this, but for some reason I can't attach it to this post, so I'll dump it here.
Code: [Select]
#!/bin/bash
### KD197's Quick UrT Demo Loader ###
### Yeah I know it sucks! But it  ###
### works doesn't it?!            ###
### Requires sed and tr           ###
OS=$(uname -s)
URT() {
        if [[ $OS == "Linux" ]]; then
                ### Uncomment out the following line if you use cpufrequtils ###
### and wish to set your cpu mode to "performance". ###
#sudo cpufreq-set -r -g performance

### Start UrT in a second X session ###
                DISPLAY=:1.0
                xinit /usr/bin/urbanterror $* -- :1
        else
                ### Run Urban Terror on a Mac ###
                /Applications/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub $*
        fi
}
### GETOPTS ###
while getopts ":w:h" OPTION
do
case $OPTION in
w) FLAG="w" INFILE=$OPTARG;;
h) FLAG="h";;
esac
done
### Set paths ###
### Change the ".urbanterror/q3ut4/demos/" part to whatever your path is ###
DIR="$HOME/.urbanterror/q3ut4/demos/"
COM='+set com_cameramode 1 +demo'
WCOM='+set com_cameramode 1 +set r_shownormals 1 +demo'
### Move demos to the demos folder and play with selected options ###
if [[ $FLAG == "h" ]]; then
echo "Options: -h to show this help"
echo "         -w /path/to/demo.dm_68 to start with r_shownormals 1"
echo ""
echo "By default, demos are run with com_cameramode 1 so that the"
echo "keyboard may be used, for timescale binds etc; files are moved"
echo "to the demos folder, and the filename is converted to UPPERCASE"
echo "because the Linux version doesn't like the demos otherwise :P"
elif [[ $FLAG == "w" ]]; then
FILE="$(echo $INFILE | sed 's/.*\/\(.*\.dm_68\)/\1/' | tr [:lower:] [:upper:] | sed 's/DM_68$/dm_68/')"
mv $INFILE ${DIR}${FILE}
URT $WCOM $FILE
else
FILE="$(echo $1 | sed 's/.*\/\(.*\.dm_68\)/\1/' | tr [:lower:] [:upper:] | sed 's/DM_68$/dm_68/')"
mv $1 ${DIR}${FILE}
URT $COM $FILE
fi
Copy and paste that into a file (lets call it "urtdml" for sake of example) somewhere convenient and chmod +x it. Then pop open a terminal, and run it like "urtdml /path/to/demo.dm_68" and Bob's your uncle. I guess you could probably do some jazz to make dm_68's point at this scriptlet but that's up to you, I have no graphical filemanager to test it on. Besides, running it through a terminal is better because then you can add the "-w" switch to turn shownormals on 8)
Default behaviour (as seen in "help" the -h option) is that it will move the file to your demos folder if it's not already there, and convert the file name to uppercase (for the Linux users out there) then start the demo rolling with com_cameramode 1, which means you can use any keybinds you might have for increasing/decreasing timescale.

It's not a patch on Tesla's fancy app but maybe this'll fill a hole for Linux and Mac users until someone writes an equivalent of Tesla's launcher. :-[

Not-so-1337-hax0rz: awsdgiaygveiujgfahiy, killer, [K1L]ShAd0W[GER], [51]Usage (impersonator), 1Lexa8, Redeye, sid, ASTROKILLA, bar, mody, [R:K]BatistaBomB, revenger, [58f]gojan, imaidiot, [DOA]Arik, sn4k3, Broajer, HACKER, DDMX, dopey

"yeah, I googled "mod reveal 67" to find out what it does and the top links were from 1up" - SlimPickins[1up]

Offline EddieLee

  • Posts: 258
  • Karma: 6
  • Since: 20/10/2010
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: 1up demo loader now available.
« Reply #14 on: November 08, 2010, 06:47:34 PM »
OH MAN!!! at first i was reluclant to ask if that program was also available for linux and even tried to run the .exe with wine (and failing miserably lol) but now, KD, with your script, OOOH MAN! THANKS A LOT MAN! it helps me a lot specially since i had to rename each and every demo to numbers because i couldnt run it even if i used uppercase letters, again thanks a lot  ;)!

also the options you put in it...so sexy


 8)

I like to quit important things. --Eddie