Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots Chainsaw PickUp fix
 此主题已被置顶,因此可能具有重要性
T-Rizzle  [开发者] 2022 年 5 月 18 日 下午 3:38
Bugs
Post any bugs with the addon here!
< >
正在显示第 1 - 15 条,共 18 条留言
Toranks 2022 年 5 月 18 日 下午 9:54 
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  [开发者] 2022 年 5 月 19 日 上午 4:21 
引用自 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
最后由 T-Rizzle 编辑于; 2022 年 5 月 19 日 上午 4:23
Toranks 2022 年 5 月 19 日 上午 4:59 
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  [开发者] 2022 年 5 月 19 日 上午 5:05 
引用自 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.
最后由 T-Rizzle 编辑于; 2022 年 5 月 19 日 上午 5:07
4512369781 2022 年 5 月 19 日 上午 5:29 
引用自 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 2022 年 5 月 19 日 上午 5:39 
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.
最后由 Toranks 编辑于; 2022 年 5 月 19 日 上午 6:04
T-Rizzle  [开发者] 2022 年 5 月 19 日 上午 5:44 
引用自 4512369781
引用自 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”
最后由 T-Rizzle 编辑于; 2022 年 5 月 19 日 上午 5:44
4512369781 2022 年 5 月 19 日 上午 5:49 
引用自 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  [开发者] 2022 年 5 月 19 日 上午 5:56 
引用自 4512369781
引用自 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 2022 年 5 月 19 日 上午 7:29 
引用自 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.
最后由 4512369781 编辑于; 2022 年 5 月 19 日 上午 7:32
Toranks 2022 年 5 月 19 日 上午 8:30 
引用自 4512369781
引用自 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  [开发者] 2022 年 5 月 19 日 上午 8:44 
引用自 Toranks
引用自 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 2022 年 5 月 19 日 上午 10:48 
引用自 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

引用自 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  [开发者] 2022 年 5 月 19 日 上午 11:33 
引用自 4512369781
引用自 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

引用自 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  [开发者] 2022 年 5 月 19 日 下午 1:35 
引用自 4512369781
引用自 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

引用自 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.
< >
正在显示第 1 - 15 条,共 18 条留言
每页显示数: 1530 50