Pages: [1]
  Print  
Author Topic: Linux script for playing demos  (Read 10433 times)
dash9
Member


Cakes 6
Posts: 189


« on: September 28, 2008, 06:29:06 PM »

I found this script, used it to view demos, made some fixes and improvements.

Code:
demo [osp|cpma|baseq3|baseoa] <demo_file>

<demo_file> can be dm_xx, rar or zip! Smiley
If you don't specify a mod, cpma will be used. The "osp" and "cpma" (and obviously "baseq3") mods will start ioquake3 with the q3 data files, since most of the demos you want to see use this configuration.

You'll have to edit the file and set the correct paths to the openarena and ioquake3 executables.

The original file had no copyright line, so I'm posting it here. If you find a bug please tell me so I can fix it.
« Last Edit: September 28, 2008, 09:58:22 PM by dash9 » Logged

I found a great camping place: the enemy base!
Ivan_D
Nub


Cakes -1
Posts: 27



« Reply #1 on: October 17, 2008, 04:33:15 AM »

Code:
$engine="/usr/bin/openarena"
$mod="baseoa"
$demofile="demo0001.dm_70"
$command="$engine +set fs_game $mod +demo $demofile"
eval $command
+ fireworks = this script

Interesting, indeed.
« Last Edit: October 17, 2008, 04:36:53 AM by Ivan_D » Logged

In Soviet Russia OpenArena plays you!
dash9
Member


Cakes 6
Posts: 189


« Reply #2 on: October 17, 2008, 06:19:36 AM »

Code:
$engine="/usr/bin/openarena"
$mod="baseoa"
$demofile="demo0001.dm_70"
$command="$engine +set fs_game $mod +demo $demofile"
eval $command
+ fireworks = this script

Interesting, indeed.
I personally find the fireworks very useful:
- I downloaded a lot of demos from a competition, each archived as a RAR file, then I was able to play the RAR file directly using this script. Why decompress them manually if you don't have to?..
- I wanted to have the function keys have different binds when playing a demo than when playing a game. This needs looking "far" into the script to figure out how to do it, if you're having problems contact me.

btw, the default mod is cpma, not baseoa, and that one is assigned to start "ioquake3", not "openarena" - I just realized this behavior is not 100% clean, but it works for what I use it for, for now.
btw2, does the cpma mod work with OpenArena?
Logged

I found a great camping place: the enemy base!
Ivan_D
Nub


Cakes -1
Posts: 27



« Reply #3 on: October 17, 2008, 06:55:06 AM »

Quote
btw2, does the cpma mod work with OpenArena?
yes, it does
« Last Edit: March 17, 2009, 07:21:03 AM by Ivan_D » Logged

In Soviet Russia OpenArena plays you!
jessicaRA
Lesser Nub


Cakes 16
Posts: 115


Wild pony spotted derping around oasago2.


« Reply #4 on: October 17, 2008, 10:26:49 AM »

Quote
btw2, does the cpma mod work with OpenArena?
yes, it is

it doesnt appear to work for me since 0.8.0.  it just seems to put me back to the menu on loading a map but on 0.7.7 and before it works for me unless there is a bot in the game.
Logged
Pages: [1]
  Print  
 
Jump to: