Urban Terror Forums: Script for view demos on linux - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Script for view demos on linux Rate Topic: -----

#1 User is offline   Drizzt Icon

  • Account: drizzt
  • Joined: 22-March 10
  • Posts: 164

Posted 23 December 2011 - 08:08 PM

Hi,

In linux, see demos is a problem, because we have to rename demos to numbers or uppercase.

I made a script to see demos on Linux easily. Tested on Ubuntu 10.04 and Debian Lenny (Gnome, Xfce), you need to install zenity (in Ubuntu is installed by default).

You have to change some variables in the script, save it as demos.sh (or other name) and give it execute permissions:

URBANTERRROR = the full path where you have urban executable
FILEDEMO = you change drizzt for your user


#!/bin/bash

#Patch binary Urban Terror
URBANTERROR=/home/drizzt/Urbanterror/ioUrbanTerror.i386
#save path demos
FILEDEMO=`zenity --file-selection --title="Select demo" --filename=/home/drizzt/.q3a/q3ut4/demos/`

        case $? in
                 0)
                        echo "\"$FILEDEMO\" seleccionado.";;
                 1)
                        echo "No ha seleccionado ningún archivo.";;
                -1)
                        echo "No ha seleccionado ningún archivo.";;
        esac

NAMEDEMO=`basename $FILEDEMO`
$URBANTERROR +demo $NAMEDEMO



I'm not sure about where to write this post (maybe "Support Area - Linux" or is good here?)

Sorry for my bad english :sad:

This post has been edited by Drizzt: 23 December 2011 - 08:13 PM


#2 User is offline   JRandomNoob Icon

  •   verified user   

Posted 18 January 2013 - 06:56 PM

*finds a link in Drizzt’s sig*

*reads the post*

Hmm.

*necroes with a link to a similar script*
dswp.de
Beginner’s Guide to Urban Terror (woefully out of date)
Daily Deadnade (Last updated September 9, 2016)

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2019 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942