Grazza
omg lolcano

Posts: 9606
Registered: 07-02 |
Would you like to be able to browse through demos as easily as you might browse a collection of videos, photos, documents, etc.?
The file to download is here. And you need Prboom-plus.
I imagine most people who watch a lot of demos have a fairly streamlined way of doing so, but nevertheless it is sometimes a bit more fiddly than we'd like. Or you discover part way in that you've loaded the wrong version of the wad, or that plutonia needed to be used as a pwad in this case, etc., etc. And at best it normally takes at least a few seconds to sort out the right command line, or right-click action or whatever.
The aim here is to make it so most demos can be viewed simply by clicking on them, with the correct wads automatically loaded. This is done by an extensive list of patterns against which the file-name is matched.
I'll get straight to the point. You'll need the current test version of Prboom-plus 2.4.8.4 and the big list of patterns that can be found here. I must stress that it doesn't work at all with 2.4.3.1, 2.4.6.1 or 2.4.6.2 - these earlier versions lack the feature that it relies upon.
Here is the quick and dirty version of the instructions (more details in the txt that accompanies the patterns):
1. Check that the new version of Prboom-plus is finding your iwads and working OK (I always use my existing cfg with it and just tweak any new settings).
2. Open patterns.txt in Notepad (or similar). Copy & paste the list of patterns into your cfg in place of the list that is currently in there.
3. Make the default action of the lmp file-type:
glboom-plus.exe "%1" -auto or prboom-plus.exe "%1" -auto (whichever you prefer)
(-auto is the command-line option that activates the new autoloading feature)
Note for Vista users: MS have made it harder to manage file types, so it is necessary to edit the Registry. This method seems to work:
1) Associate the lmp file-type with either prboom-plus.exe or glboom-plus.exe, whichever you prefer. This can be done via the launcher.
2) Start RegEdit - BE CAREFUL AS ERRORS USING REGEDIT CAN SCREW THINGS UP!
3) Search (Ctrl-F) for prboom-plus.exe or glboom-plus.exe
4) Once you have found the place where the command-line for playing lmps is stored, edit it by adding " -auto" at the end.
5) Exit RegEdit.
Now when you click on a lmp (from inside a zip, from anywhere on your computer, or that you have opened from an online source), then as long as the pattern is recognized and it finds the wads, it will automatically load them as needed and play the demo.
This should work with most of the demos you'll find here, at compet-n, and elsewhere. Obviously you need to have any pwads that are required, and they need to be in the location the program is expecting to find them. This means either the same directory (folder) as the program itself, or in a %doomwaddir% that you have defined.
More info is given in the zip. As just one example of what it can do, consider that from a playback viewpoint there are four possible cases of compet-n demos on Evilution:
1. tnt.wad used as an iwad
2. tnt.wad used as an iwad and the tnt31 patch loaded as a pwad
3. tnt.wad used as a pwad
4. tnt.wad used as a pwad and the tnt31 patch loaded too
The patterns include sufficient information to distinguish between these four cases, for all 900+ tnt demos at compet-n (I hope; I'm pretty sure I tested them all). They also include a list of demos starting "et" that are Tysons on tnt.wad (rather than demos on Eternal.wad). And so on.
Anyway, I hope this proves useful. Feel free to extend it, but be careful, as a single misplaced bracket can (and often did) create an awful mess.
[updated: 2-September-2008; 1666 patterns]
|