I need an alias I can run from the console to set CVARs.

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

I need an alias I can run from the console to set CVARs.

Postby yum13241 » Sat May 22, 2021 9:54 am

So I want to set these CVARs with one command

Code: Select allExpand view
deathmatch 1
dmflags 9064576
dmflags2 136316416
sv_cheats 1


and I would also like it to start a new game for me, so all the CVAR changes take effect. I am not planning to use this for human multiplayer, that's why I have sv_cheats on.
yum13241
 
Joined: 10 May 2021
Discord: yum13241#8226
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: I need an alias I can run from the console to set CVARs.

Postby Rachael » Sat May 22, 2021 10:01 am

Enclose the entire statement in quotes, and separate each command with a semicolon.
alias mybigalias "dmflags 9064576;dmflags2 136316416;sv_cheats 1;map map01 dm"

Note that the "map" command overrides any previous "deathmatch" setting so it must be changed using the command itself. Adding "dm" as a separate parameter accomplishes this.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: I need an alias I can run from the console to set CVARs.

Postby yum13241 » Sat May 22, 2021 1:33 pm

Rachael wrote:Enclose the entire statement in quotes, and separate each command with a semicolon.
alias mybigalias "dmflags 9064576;dmflags2 136316416;sv_cheats 1;map map01 dm"

Note that the "map" command overrides any previous "deathmatch" setting so it must be changed using the command itself. Adding "dm" as a separate parameter accomplishes this.


Where do I put this?
yum13241
 
Joined: 10 May 2021
Discord: yum13241#8226
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: I need an alias I can run from the console to set CVARs.

Postby Rachael » Sat May 22, 2021 1:38 pm

It can be typed directly in the console.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: I need an alias I can run from the console to set CVARs.

Postby yum13241 » Sat May 22, 2021 1:53 pm

Rachael wrote:It can be typed directly in the console.

And this is persistent, correct?
yum13241
 
Joined: 10 May 2021
Discord: yum13241#8226
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: I need an alias I can run from the console to set CVARs.

Postby Rachael » Sat May 22, 2021 1:54 pm

For the current game (i.e. Doom/Heretic/Hexen/etc) yes.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: I need an alias I can run from the console to set CVARs.

Postby yum13241 » Sat May 22, 2021 2:06 pm

Rachael wrote:For the current game (i.e. Doom/Heretic/Hexen/etc) yes.


Good. So once I do it for DOOM1, does it work on DOOM2?
yum13241
 
Joined: 10 May 2021
Discord: yum13241#8226
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: I need an alias I can run from the console to set CVARs.

Postby Matt » Mon May 24, 2021 10:16 am

You can also make an autoexec.cfg to make sure this stuff gets set when you're using a new IWAD or something happens to the ini.

I think generally it'll be recognized if it's in the same folder as the ini.
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia


Return to General

Who is online

Users browsing this forum: irukanjji, TheRailgunner and 0 guests