Customiseable Demo Loop

Moderator: GZDoom Developers

Post Reply
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Customiseable Demo Loop

Post by Siggi »

Currently, ZDoom doesn't play any demos in the demo loops from the origianl IWADS, and understandably so.

So I figured - If it were possible to create a custom demo loop through the config file that is wad specific.
This would allow ZDoom to play a demo loop without you having to add demo lumps to a wad and including it when you start ZDoom. The idea being to make it easier to record demos and get them to run in the loop that would normally happen when Doom starts, but doesn't happen because the original demos are for an older version.

an entry similar to this in the config file.

Code: Select all

[Demo."wad file name here"]
Looptype = "play through once, repeat, random repeat"
Demo[1]= "file name"
Demo[2]=..
Demo[3]=
Demo ..etc
Backwards Demo compatability would be nice, but I don't expect that to happpen.......... ever.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

And that's why it is unlikely that any work will be invested here.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

I suggested this largely because there is no backwards compatability.
Being able to define your own demo loop through a config file will make it possible to just record demos that replace the old uncompatable demos with new working ones without making changes to the wad file.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You can already do that. The demo loop is executed normall, just the demos aren't played.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

True, although the current loop only plays demos that are in a loaded wad file.
I'm suggesting that external demos are used (ie not in a wad file, but the ZDoom root directory)

I just tested this with ZDoom: recorded a demo in map01, saved it as demo1.lmp. Then ran Zdoom to see if it would play. It did not, I've assumed it will only play demos that are in loaded wad files or when zdoom if executed with -playdemo.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Put them in the autoload section of the .ini file and you have what you want.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

I guess that does work.

Is there anyway to make the autoload thing different for each Doom wad?
Or is it only limited to
[Doom.AutoExec]
[Heretic.AutoExec]
[Hexen.AutoExec]
[Strife.AutoExec]
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Doom is Doom. Sorry.
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Yeah, I should probably change that to use the IWAD's name instead of just Doom.

BTW, Autoload and Autoexec are different. There's an Autoexec section that lists console scripts to execute when you play that game. The Autoload section you have to add to the ini yourself, and that defines additional PWADs to load with that IWAD.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

Oh, I was wondering about that.
Now what Graf was saying makes more sense. This is very usefull.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”