How to associate DEM files with Nexuiz?

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

How to associate DEM files with Nexuiz?

Postby The mysterious Mr. 4m » Sat Jan 26, 2008 4:13 pm

i want to associate DEM files with Nexuiz, so i can start the demos just by clicking on them in the file manager.
4m [PB] (amoebios)

This is Your world.
The mysterious Mr. 4m
Forum addon
 
Posts: 1402
Joined: Wed Mar 01, 2006 6:03 pm
Location: germany

Postby Psychcf » Sat Jan 26, 2008 10:49 pm

what OS?
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby The mysterious Mr. 4m » Sun Jan 27, 2008 1:13 pm

usually, i'm on Windows, but this would be useful for any OS.
4m [PB] (amoebios)

This is Your world.
The mysterious Mr. 4m
Forum addon
 
Posts: 1402
Joined: Wed Mar 01, 2006 6:03 pm
Location: germany

Postby oz » Sun Jan 27, 2008 2:45 pm

I read the solution in another thread ( http://www.forums.alientrap.local/viewtopic.php?t=1846 ), but never tried it myself. The other thread also mentions the readme ( http://icculus.org/twilight/darkplaces/readme.html ).

The summary is:
"nexuiz" must be replaced with the name of your nexuiz binary or launcher script (nexuiz.exe or whatever it is called in Windows) and "demo-file" needs to be replaced with the relative path of the demo file, the ".dem" will be appended automagically.
Code: Select all
nexuiz -benchmark demos/demo-file

(Runs ~/.nexuiz/data/demos/demo-file.dem, quits and logs timing data to benchmark.log)
Code: Select all
nexuiz +timedemo demos/demo-file

(Runs ~/.nexuiz/data/demos/demo-file.dem at high speed, logs timing data to benchmark.log but doesn't quit)

It appears one must create a script that puts the demo to your homedir in .nexuiz/data/demos/ and then launch it via the above code. The path will probably be very different in Windows. I don't know about that.

In the end, of course, one should "associate" the files type with the script, using the file managers configuration thingy or hacking in config files or Windows Registry, probably destroying the whole os. So now is good time to make up-to-date backups.
oz
 

Postby The mysterious Mr. 4m » Mon Jan 28, 2008 12:10 am

argh! the pain of backups.... :roll:

thanks for the summary. ;)
4m [PB] (amoebios)

This is Your world.
The mysterious Mr. 4m
Forum addon
 
Posts: 1402
Joined: Wed Mar 01, 2006 6:03 pm
Location: germany


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron