Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots Chainsaw PickUp fix
 This topic has been pinned, so it's probably important
T-Rizzle  [developer] 18 May, 2022 @ 3:38pm
Bugs
Post any bugs with the addon here!
< >
Showing 1-15 of 18 comments
Toranks 18 May, 2022 @ 9:54pm 
You only need weapon_chainsaw.txt file. All others are unnecesary and can conflict with other mods. Also by using this mod you lose the use of shovel, pitchfork, and golfclub because of that melee_manifest.txt (And riotshield too)
T-Rizzle  [developer] 19 May, 2022 @ 4:21am 
Originally posted by Toranks:
You only need weapon_chainsaw.txt file. All others are unnecesary and can conflict with other mods. Also by using this mod you lose the use of shovel, pitchfork, and golfclub because of that melee_manifest.txt (And riotshield too)
Melee_manifest.txt is required because without it causes the bots to ONLY pick up chainsaws which is not the intended behavior for this mod, but I can add the missing melee weapons to the melee_manifest.txt
Last edited by T-Rizzle; 19 May, 2022 @ 4:23am
Toranks 19 May, 2022 @ 4:59am 
That doesn't happen to me. Weird... Bots still can pickup weapons and others melee.
Anyway if you have all the weapons in melee_manifest it's fine, although it is not necessary to include each individual weapon in a txt, are already included in the vanilla game.
T-Rizzle  [developer] 19 May, 2022 @ 5:05am 
Originally posted by Toranks:
That doesn't happen to me. Weird... Bots still can pickup weapons and others melee.
Anyway if you have all the weapons in melee_manifest it's fine, although it is not necessary to include each individual weapon in a txt, are already included in the vanilla game.
I know that, you showed me photos about it, the bug, when max_team_melee_weapons is greater than 4, gets them in a loop of swapping back and forth from pistols and melee and the chainsaw. I don’t know why it does that, I think I have a possible fix for the missing melee weapons but I will have to create and test it when I get home from school.
Last edited by T-Rizzle; 19 May, 2022 @ 5:07am
4512369781 19 May, 2022 @ 5:29am 
Originally posted by T-Rizzle:
I know that, you showed me photos about it, the bug, when max_team_melee_weapons is greater than 4, gets them in a loop of swapping back and forth from pistols and melee and the chainsaw. I don’t know why it does that, I think I have a possible fix but I will have to create and test it when I get home from school.
I also found this problem, as long as the value of "sb_max_team_melee_weapons" is greater than the player who is actually holding the melee, if there is a melee nearby, then the bot will look for it. Usually this is not a problem, for a normal 1 human and three robots, set "sb_max_team_melee_weapons" to 4, then this problem will only occur when the human is not holding melee and the other three robots are holding melee Appear. This also happens when a survivor dies, because the value of "sb_max_team_melee_weapons" will always be greater than the living survivor.
Toranks 19 May, 2022 @ 5:39am 
I have been trying what you say and sure enough, the bots try to take another melee if I haven't melee, and inmediately takes the chainsaw (1 second) on an infinite cycle. However, since the melee search (5 seconds) is slower than the pistol search (2 seconds), it's usually not as annoying as it used to be, so I'll personally leave it at that. I'll be here if you find any solution.
Last edited by Toranks; 19 May, 2022 @ 6:04am
T-Rizzle  [developer] 19 May, 2022 @ 5:44am 
Originally posted by 4512369781:
Originally posted by T-Rizzle:
I know that, you showed me photos about it, the bug, when max_team_melee_weapons is greater than 4, gets them in a loop of swapping back and forth from pistols and melee and the chainsaw. I don’t know why it does that, I think I have a possible fix but I will have to create and test it when I get home from school.
I also found this problem, as long as the value of "sb_max_team_melee_weapons" is greater than the player who is actually holding the melee, if there is a melee nearby, then the bot will look for it. Usually this is not a problem, for a normal 1 human and three robots, set "sb_max_team_melee_weapons" to 4, then this problem will only occur when the human is not holding melee and the other three robots are holding melee Appear. This also happens when a survivor dies, because the value of "sb_max_team_melee_weapons" will always be greater than the living survivor.
I think I found the fix to the missing weapons, everyone just has to wait until I get home from school. “You can’t really map VPK files on IPad just saying”
Last edited by T-Rizzle; 19 May, 2022 @ 5:44am
4512369781 19 May, 2022 @ 5:49am 
Originally posted by T-Rizzle:
Melee_manifest.txt is required because without it causes the bots to ONLY pick up chainsaws which is not the intended behavior for this mod, but I can add the missing melee weapons to the melee_manifest.txt
Strangely, I only modified the "weapon_chainsaw.txt" file and the bot can pick up the melee normally.
Like Toranks said, there are indeed some files missing in the mod, you should first look for the required files in "\Left 4 Dead 2\update\pak01_dir.vpk", if not, then look for "pak01_dir.vpk" in other folders.
T-Rizzle  [developer] 19 May, 2022 @ 5:56am 
Originally posted by 4512369781:
Originally posted by T-Rizzle:
Melee_manifest.txt is required because without it causes the bots to ONLY pick up chainsaws which is not the intended behavior for this mod, but I can add the missing melee weapons to the melee_manifest.txt
Strangely, I only modified the "weapon_chainsaw.txt" file and the bot can pick up the melee normally.
Like Toranks said, there are indeed some files missing in the mod, you should first look for the required files in "\Left 4 Dead 2\update\pak01_dir.vpk", if not, then look for "pak01_dir.vpk" in other folders.
I think it’s how I edited the melee_manifest.txt, I think I just need to change the melee loading order, because I set the chainsaw as last in the melee_manifest.txt, it loaded every other weapon on the file, but somehow broke after reading the line with weapon_chainsaw.txt
4512369781 19 May, 2022 @ 7:29am 
Originally posted by T-Rizzle:
I think it’s how I edited the melee_manifest.txt, I think I just need to change the melee loading order, because I set the chainsaw as last in the melee_manifest.txt, it loaded every other weapon on the file, but somehow broke after reading the line with weapon_chainsaw.txt
I think I know where the problem is. In melee_manifest.txt, you missed a double quote, so the line "file" "scripts/weapon_chainsaw.txt" doesn't actually work. If you add double quotes, then the chainsaw just won't work and game will crash. If you move it to the first line, all melee will be weird, so my conclusion is that "melee_manifest.txt" should not be modified, only "weapon_chainsaw.txt" is needed.
Last edited by 4512369781; 19 May, 2022 @ 7:32am
Toranks 19 May, 2022 @ 8:30am 
Originally posted by 4512369781:
Originally posted by T-Rizzle:
I think it’s how I edited the melee_manifest.txt, I think I just need to change the melee loading order, because I set the chainsaw as last in the melee_manifest.txt, it loaded every other weapon on the file, but somehow broke after reading the line with weapon_chainsaw.txt
I think I know where the problem is. In melee_manifest.txt, you missed a double quote, so the line "file" "scripts/weapon_chainsaw.txt" doesn't actually work. If you add double quotes, then the chainsaw just won't work and game will crash. If you move it to the first line, all melee will be weird, so my conclusion is that "melee_manifest.txt" should not be modified, only "weapon_chainsaw.txt" is needed.
I think you are right and how to solve the problem with bots cycling melee - chainsaw - melee.
Try changing this line on weapon_chainsaw.txt
"Tier" "0" // valid entries are 0, 1, 2
with
"Tier" "2" // valid entries are 0, 1, 2
This number is only a value for preference, and doesn't change anything more, is the same trick used with M60 and grenade launcher
I'll test this in a few hours with a server
T-Rizzle  [developer] 19 May, 2022 @ 8:44am 
Originally posted by Toranks:
Originally posted by 4512369781:
I think I know where the problem is. In melee_manifest.txt, you missed a double quote, so the line "file" "scripts/weapon_chainsaw.txt" doesn't actually work. If you add double quotes, then the chainsaw just won't work and game will crash. If you move it to the first line, all melee will be weird, so my conclusion is that "melee_manifest.txt" should not be modified, only "weapon_chainsaw.txt" is needed.
I think you are right and how to solve the problem with bots cycling melee - chainsaw - melee.
Try changing this line on weapon_chainsaw.txt
"Tier" "0" // valid entries are 0, 1, 2
with
"Tier" "2" // valid entries are 0, 1, 2
This number is only a value for preference, and doesn't change anything more, is the same trick used with M60 and grenade launcher
I'll test this in a few hours with a server
Please let me know what the results are. I will work on a fix as well after school.
4512369781 19 May, 2022 @ 10:48am 
Originally posted by Toranks:
I think you are right and how to solve the problem with bots cycling melee - chainsaw - melee.
Try changing this line on weapon_chainsaw.txt
"Tier" "0" // valid entries are 0, 1, 2
with
"Tier" "2" // valid entries are 0, 1, 2
This number is only a value for preference, and doesn't change anything more, is the same trick used with M60 and grenade launcher
I'll test this in a few hours with a server

Originally posted by T-Rizzle:
Please let me know what the results are. I will work on a fix as well after school.

I tested "1" and "2" and neither worked.
I'm guessing that while it's successful in getting vanilla bots to think chainsaws are also melee, normal melee still has a higher priority.
If really want to set "sb_max_team_melee_weapons" to more than 4, you can add "weapon_melee" to "\Left 4 Dead 2\left4dead2\ems\left4bots\cfg\itemstoavoid.txt" and command the robot to pick up melee by "Vocalizer". Although cumbersome, it does solve this problem.
T-Rizzle  [developer] 19 May, 2022 @ 11:33am 
Originally posted by 4512369781:
Originally posted by Toranks:
I think you are right and how to solve the problem with bots cycling melee - chainsaw - melee.
Try changing this line on weapon_chainsaw.txt
"Tier" "0" // valid entries are 0, 1, 2
with
"Tier" "2" // valid entries are 0, 1, 2
This number is only a value for preference, and doesn't change anything more, is the same trick used with M60 and grenade launcher
I'll test this in a few hours with a server

Originally posted by T-Rizzle:
Please let me know what the results are. I will work on a fix as well after school.

I tested "1" and "2" and neither worked.
I'm guessing that while it's successful in getting vanilla bots to think chainsaws are also melee, normal melee still has a higher priority.
If really want to set "sb_max_team_melee_weapons" to more than 4, you can add "weapon_melee" to "\Left 4 Dead 2\left4dead2\ems\left4bots\cfg\itemstoavoid.txt" and command the robot to pick up melee by "Vocalizer". Although cumbersome, it does solve this problem.
I’m going to try a few fixes for the mod I have been thinking about. When I get home I will have a intense debugging montage.
T-Rizzle  [developer] 19 May, 2022 @ 1:35pm 
Originally posted by 4512369781:
Originally posted by Toranks:
I think you are right and how to solve the problem with bots cycling melee - chainsaw - melee.
Try changing this line on weapon_chainsaw.txt
"Tier" "0" // valid entries are 0, 1, 2
with
"Tier" "2" // valid entries are 0, 1, 2
This number is only a value for preference, and doesn't change anything more, is the same trick used with M60 and grenade launcher
I'll test this in a few hours with a server

Originally posted by T-Rizzle:
Please let me know what the results are. I will work on a fix as well after school.

I tested "1" and "2" and neither worked.
I'm guessing that while it's successful in getting vanilla bots to think chainsaws are also melee, normal melee still has a higher priority.
If really want to set "sb_max_team_melee_weapons" to more than 4, you can add "weapon_melee" to "\Left 4 Dead 2\left4dead2\ems\left4bots\cfg\itemstoavoid.txt" and command the robot to pick up melee by "Vocalizer". Although cumbersome, it does solve this problem.
I have found the fix for the missing melee weapons, this took time, but with the power of coding I have added every missing melee weapon into the melee_manifest.txt file and the issue has been fixed, just running some final tests before releasing the fix.
< >
Showing 1-15 of 18 comments
Per page: 1530 50