Left 4 Dead 2

Left 4 Dead 2

Sacrifice-Passing Continuity
Shadowysn  [developer] 9 Jul, 2022 @ 8:03am
Technical Stuff (settings.cfg, data.cfg, etc)
Moved Technical Stuff to a separate discussion.

A data.cfg file will be generated into Left 4 Dead 2/left4dead2/ems/s_p_continuity when the Sacrifice data has been written.
You can erase or delete it to go back to random data files, but it is not recommended to edit it unless you know what you're doing.

TWO data_random_*.cfg files will be generated into Left 4 Dead 2/left4dead2/ems/s_p_continuity if the mod detects that dontgenerateranddata.txt does not exist. Once generated, it will automatically create the dontgenerateranddata.txt file.
The new data_random_*.cfg files will overwrite any existing files of the same name in the folder!
Check this discussion for a list of these random data files.

A settings.cfg file will be generated into Left 4 Dead 2/left4dead2/ems/s_p_continuity
Settings available are:
Setting
Default
Description
SacrificialPoses
1
Toggle bodies posed similarly to Bill's dead body.
0 = ragdolls will be spawned.
1 = only the sacrificer will be posed.
2 = all bodies will be posed.
AllowOnAllGamemodes
false
Whether to allow full functionality like the NPC survivors on all gamemodes
MachineGunPriority<Survivor>
<Louis is highest value>
Priority for the machine gun for the listed survivor in The Passing finale. It is recommended to set each of these to different values.
MachineGunPriorityDefault
1
Only used if game can't detect what survivor they are
RandomMachineGunPriority
false
Randomize machine gun priority for all survivors, will disable all other priority settings
MaxRandomDataFiles
32
Maximum amount of data_random_*.cfg files to find and use
DataFileMode
2
Choose how data files are generated and/or loaded. THESE VALUES ARE COMBINABLE WITH EACH OTHER!
1 = Prioritize data_random_*.cfg, load data.cfg if not found. Otherwise prioritize data.cfg, load data_random_*.cfg if not found.\n
2 = Generate data.cfg from sacrifice or finale failure.\n
4 = Generate data_random_*.cfg from sacrifice or finale failure.

The addon has functionality on all gamemodes and maps, but for PvP gamemodes like Versus it is automatically disabled by Valve.
As usual.

To make it work in Versus on your local server, right-click on Left 4 Dead 2 in your steam library, select Properties, click on the Installed Files tab, then click on the Browse... button.
Go to left4dead2/cfg/ and open addonconfig.cfg with a text editor or Notepad.
Finally, edit this line:
"versus" "1"
to
"versus" "0"

If you're making a custom edited Sacrifice campaign, to allow custom support from this addon, you only need to have the original name of the map as part of the map's name.
Last edited by Shadowysn; 21 Jul, 2023 @ 11:45pm
< >
Showing 1-5 of 5 comments
ATP-1002 6 Jan, 2023 @ 10:07pm 
I'm a bit confused about the "AllowOnAllGamemodes" setting. Would it imply you can also do continuity of what weapons you had in the previous campaign (Ex. L4D2 Survivors' Dead Center weapons still applies to The Passing) to the next for the other official campaigns? Or mutations? Sorry for being dumb and if this comes off aggressive.
Shadowysn  [developer] 6 Jan, 2023 @ 10:16pm 
Originally posted by ATP-1002:
I'm a bit confused about the "AllowOnAllGamemodes" setting. Would it imply you can also do continuity of what weapons you had in the previous campaign (Ex. L4D2 Survivors' Dead Center weapons still applies to The Passing) to the next for the other official campaigns? Or mutations? Sorry for being dumb and if this comes off aggressive.
I can see how I didn't clarify what the setting did enough.
On gamemodes that are not Campaign or Campaign-like mutations (like Versus) it'll only spawn the dead survivors' bodies and equipment. The alive survivors and their equipment will not spawn.
AllowOnAllGamemodes disables that check so the alive survivors will spawn on all gamemodes.

The equipment being saved from Dead Center to The Passing is a whole mod concept separate from SPC. It's possible for me to modify SPC and make another mod that saves weapons across all campaigns, but I'm not ready for the scope of such a big mod.
Last edited by Shadowysn; 6 Jan, 2023 @ 10:27pm
ATP-1002 6 Jan, 2023 @ 11:08pm 
Originally posted by Shadowysn:
Originally posted by ATP-1002:
I'm a bit confused about the "AllowOnAllGamemodes" setting. Would it imply you can also do continuity of what weapons you had in the previous campaign (Ex. L4D2 Survivors' Dead Center weapons still applies to The Passing) to the next for the other official campaigns? Or mutations? Sorry for being dumb and if this comes off aggressive.
I can see how I didn't clarify what the setting did enough.
On gamemodes that are not Campaign or Campaign-like mutations (like Versus) it'll only spawn the dead survivors' bodies and equipment. The alive survivors and their equipment will not spawn.
AllowOnAllGamemodes disables that check so the alive survivors will spawn on all gamemodes.

The equipment being saved from Dead Center to The Passing is a whole mod concept separate from SPC. It's possible for me to modify SPC and make another mod that saves weapons across all campaigns, but I'm not ready for the scope of such a big mod.


I see, sorry for the trouble and thank you for answering. I hope a mod like that could exist though. From anyone in the community in fact. Someday.
guppy 28 Jan, 2024 @ 11:02am 
can you just make them commands?
Francis 27 Feb, 2024 @ 5:35am 
Originally posted by Shadowysn:
Moved Technical Stuff to a separate discussion.

A data.cfg file will be generated into Left 4 Dead 2/left4dead2/ems/s_p_continuity when the Sacrifice data has been written.
You can erase or delete it to go back to random data files, but it is not recommended to edit it unless you know what you're doing.

TWO data_random_*.cfg files will be generated into Left 4 Dead 2/left4dead2/ems/s_p_continuity if the mod detects that dontgenerateranddata.txt does not exist. Once generated, it will automatically create the dontgenerateranddata.txt file.
The new data_random_*.cfg files will overwrite any existing files of the same name in the folder!
Check this discussion for a list of these random data files.

A settings.cfg file will be generated into Left 4 Dead 2/left4dead2/ems/s_p_continuity
Settings available are:
Setting
Default
Description
SacrificialPoses
1
Toggle bodies posed similarly to Bill's dead body.
0 = ragdolls will be spawned.
1 = only the sacrificer will be posed.
2 = all bodies will be posed.
AllowOnAllGamemodes
false
Whether to allow full functionality like the NPC survivors on all gamemodes
MachineGunPriority<Survivor>
<Louis is highest value>
Priority for the machine gun for the listed survivor in The Passing finale. It is recommended to set each of these to different values.
MachineGunPriorityDefault
1
Only used if game can't detect what survivor they are
RandomMachineGunPriority
false
Randomize machine gun priority for all survivors, will disable all other priority settings
MaxRandomDataFiles
32
Maximum amount of data_random_*.cfg files to find and use
DataFileMode
2
Choose how data files are generated and/or loaded. THESE VALUES ARE COMBINABLE WITH EACH OTHER!
1 = Prioritize data_random_*.cfg, load data.cfg if not found. Otherwise prioritize data.cfg, load data_random_*.cfg if not found.\n
2 = Generate data.cfg from sacrifice or finale failure.\n
4 = Generate data_random_*.cfg from sacrifice or finale failure.

The addon has functionality on all gamemodes and maps, but for PvP gamemodes like Versus it is automatically disabled by Valve.
As usual.

To make it work in Versus on your local server, right-click on Left 4 Dead 2 in your steam library, select Properties, click on the Installed Files tab, then click on the Browse... button.
Go to left4dead2/cfg/ and open addonconfig.cfg with a text editor or Notepad.
Finally, edit this line:
"versus" "1"
to
"versus" "0"

If you're making a custom edited Sacrifice campaign, to allow custom support from this addon, you only need to have the original name of the map as part of the map's name.
< >
Showing 1-5 of 5 comments
Per page: 1530 50