[Added] GAMEINFO keys for startup screen

Moderator: Developers

Re: GAMEINFO keys for startup screen

Postby Enjay » Sat Feb 25, 2012 12:29 pm

Question: Is there any way to get a file that contains a gameinfo lump specifying an alternative startup to be autoloaded and work?

I have tried putting one in the autoload section of my ini and I even tried my skins folder. On both occasions, checking the console confirmed that the file had been loaded but it was, presumably, too late in the load process to take effect. The only way it seems to work is using the -file parameter.

[edit] Just by way of a trial I even tried inserting it into doom2.wad and it still didn't work. [/edit]
User avatar
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Re: GAMEINFO keys for startup screen

Postby Gez » Sat Feb 25, 2012 12:56 pm

No, sorry. Autoloaded files are loaded after the IWAD is selected; GAMEINFO parsing is necessarily done before IWAD selection.

Also it's only done on files loaded from the command line, so yeah it will not do anything in an IWAD. So for standalone TCs a complementary mechanism will have to be made.

Of course, you can just have a setup like this in a TC: customiwad.wad, startup.wad, runtc.bat
Content of runtc.bat:
Code: Select allExpand view
zdoom startup.wad

Content of startup.wad: a single gameinfo lump with this:
Code: Select allExpand view
IWAD = customiwad
STARTUPTYPE = <"whatever">

customiwad.wad contains all the rest.

Should work.
Gez
 
Joined: 06 Jul 2007

Re: GAMEINFO keys for startup screen

Postby Enjay » Sat Feb 25, 2012 1:22 pm

That may well work (I haven't tried it yet) but seeing as how it requires a bat file/modified command line to run, I don't see a huge difference between a bat file with this

Code: Select allExpand view
zdoom startup.wad


and one with this

Code: Select allExpand view
zdoom -iwad customiwad.wad -file startup.wad


What I was really hoping for was to create a nice spiffy startup for Doom and have it autoload just for fun.
User avatar
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Previous

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: Yandex [Bot] and 0 guests