Left 4 Dead 2

Left 4 Dead 2

Bot AI Improvements
 此主题已被置顶,因此可能具有重要性
T-Rizzle  [开发者] 2022 年 9 月 15 日 上午 7:18
Bugs
Post any bugs you have with the addon here!
Before posting about a bug with the mod please check Known Bugs before posting about the bug you have because I may already be aware of it.
最后由 T-Rizzle 编辑于; 2022 年 10 月 26 日 上午 7:19
< >
正在显示第 1 - 15 条,共 136 条留言
tom 2022 年 10 月 13 日 上午 3:07 
some reason when the bot that has a melee weapon will just keep using it on the tank instead of walking away and shooting, but it'll just swing the melee at the tank instead.
T-Rizzle  [开发者] 2022 年 10 月 13 日 上午 6:08 
引用自 meow
some reason when the bot that has a melee weapon will just keep using it on the tank instead of walking away and shooting, but it'll just swing the melee at the tank instead.
Odd, don’t worry it shouldn’t be too hard to make a fix for this.
tom 2022 年 10 月 13 日 下午 10:22 
引用自 T-Rizzle
引用自 meow
some reason when the bot that has a melee weapon will just keep using it on the tank instead of walking away and shooting, but it'll just swing the melee at the tank instead.
Odd, don’t worry it shouldn’t be too hard to make a fix for this.
also, the bots will try to revive when the tank is near the downed survivor.
can you make it so it will fight the tank instead of tryign to get to revive the down player next to the tank. thxs!
T-Rizzle  [开发者] 2022 年 10 月 14 日 上午 4:53 
引用自 meow
引用自 T-Rizzle
Odd, don’t worry it shouldn’t be too hard to make a fix for this.
also, the bots will try to revive when the tank is near the downed survivor.
can you make it so it will fight the tank instead of tryign to get to revive the down player next to the tank. thxs!
I force the retreat command as well as abandoning the revive action but the way the bots are programmed they are forced to revive incapacitated survivors over anything else. This is something that I can only make a band-aid fix for, such as when they attempt to revive the player I force the bot so stop the revive and flee. I wish I could more but I would need source code access.
The tool I use is CommandABot this allows me to manipulate bot behavior, but the command CAN and WILL be overridden by the original programming of the bot. If the current state of the bot is higher than the command.

Example: retreat < liberate incapacitated survivor

Liberate Incapacitated Survivor overrides the retreat command
最后由 T-Rizzle 编辑于; 2022 年 10 月 14 日 上午 5:03
Jariner 2022 年 10 月 15 日 下午 12:27 
Please fix the lag caused by this weird error in the console, "SCRIPT PERF WARNING --- "<lambda or free run script>" ran long at 13.319748ms"
tom 2022 年 10 月 15 日 下午 4:27 
引用自 Jarin
Please fix the lag caused by this weird error in the console, "SCRIPT PERF WARNING --- "<lambda or free run script>" ran long at 13.319748ms"
yeah i got it aswell it spammed my console every 1 second. rlly annoying
T-Rizzle  [开发者] 2022 年 10 月 15 日 下午 5:49 
引用自 meow
引用自 Jarin
Please fix the lag caused by this weird error in the console, "SCRIPT PERF WARNING --- "<lambda or free run script>" ran long at 13.319748ms"
yeah i got it aswell it spammed my console every 1 second. rlly annoying
This addon runs on the think function. The think function can run every, 0.0333 seconds on entities, “except for player entities where it is capped at 0.0666 seconds,” because of the amount of functions in this addon sometimes runs longer than the game would like and because of it the game issues a warning through the console.

The only side effect that comes from this is the game might lag every now and then.

What you can do on your side:
Having a high quality computer or dedicated server can fix this. (This is only a suggestion, I'm not expecting everyone to have a high quality gaming laptop like Me)
Only the mod creator (Me) can truly fix this by optimizing the code to help it run faster.
Don't worry about it my top priority is to help this addon run smoother, I even postponed the recent update just to optimize this addon's code.
最后由 T-Rizzle 编辑于; 2022 年 10 月 15 日 下午 5:53
T-Rizzle  [开发者] 2022 年 10 月 15 日 下午 6:06 
引用自 T-Rizzle
引用自 meow
yeah i got it aswell it spammed my console every 1 second. rlly annoying
This addon runs on the think function. The think function can run every, 0.0333 seconds on entities, “except for player entities where it is capped at 0.0666 seconds,” because of the amount of functions in this addon sometimes runs longer than the game would like and because of it the game issues a warning through the console.

The only side effect that comes from this is the game might lag every now and then.

What you can do on your side:
Having a high quality computer or dedicated server can fix this. (This is only a suggestion, I'm not expecting everyone to have a high quality gaming laptop like Me)
Only the mod creator (Me) can truly fix this by optimizing the code to help it run faster.
Don't worry about it my top priority is to help this addon run smoother, I even postponed the recent update just to optimize this addon's code.
I have an idea on how to fix this, I was going to make the addon have changeable settings. I will make it so you can set how fast the think function runs so I don't have to force everyone to play with the same think rate. This will allow even people with low-end PC use this addon. What do you think about this fix?
tom 2022 年 10 月 16 日 上午 1:27 
引用自 T-Rizzle
引用自 T-Rizzle
This addon runs on the think function. The think function can run every, 0.0333 seconds on entities, “except for player entities where it is capped at 0.0666 seconds,” because of the amount of functions in this addon sometimes runs longer than the game would like and because of it the game issues a warning through the console.

The only side effect that comes from this is the game might lag every now and then.

What you can do on your side:
Having a high quality computer or dedicated server can fix this. (This is only a suggestion, I'm not expecting everyone to have a high quality gaming laptop like Me)
Only the mod creator (Me) can truly fix this by optimizing the code to help it run faster.
Don't worry about it my top priority is to help this addon run smoother, I even postponed the recent update just to optimize this addon's code.
I have an idea on how to fix this, I was going to make the addon have changeable settings. I will make it so you can set how fast the think function runs so I don't have to force everyone to play with the same think rate. This will allow even people with low-end PC use this addon. What do you think about this fix?
sounds great!
hong1165 2022 年 11 月 1 日 上午 2:51 
There is a bug with some of mutation scripts are being discarded whenever one or more player controls the survivors with this add-on installed. I have tested on 'Special Delivery Versus'(by Rayman1103) custom mutation on single player. After I start as survivors, pipe bombs haven't changed to molotovs, however this doesn't happen when all survivors are bots. Can you check what scripts are causing this issue?
最后由 hong1165 编辑于; 2022 年 11 月 1 日 上午 2:54
T-Rizzle  [开发者] 2022 年 11 月 1 日 上午 5:02 
引用自 hong1165
There is a bug with some of mutation scripts are being discarded whenever one or more player controls the survivors with this add-on installed. I have tested on 'Special Delivery Versus'(by Rayman1103) custom mutation on single player. After I start as survivors, pipe bombs haven't changed to molotovs, however this doesn't happen when all survivors are bots. Can you check what scripts are causing this issue?
Odd, this addon shouldn’t conflict with anything, but I may be wrong. I will try to see if I can recreate this bug. If it is possible when you load into a mutation can you open up the developer console and report any errors that appear. Errors are any line that are red. Also does the issue only appear when their is a human on the survivor team or for the first round of the mutation.
hong1165 2022 年 11 月 1 日 下午 12:19 
引用自 T-Rizzle
引用自 hong1165
There is a bug with some of mutation scripts are being discarded whenever one or more player controls the survivors with this add-on installed. I have tested on 'Special Delivery Versus'(by Rayman1103) custom mutation on single player. After I start as survivors, pipe bombs haven't changed to molotovs, however this doesn't happen when all survivors are bots. Can you check what scripts are causing this issue?
Odd, this addon shouldn’t conflict with anything, but I may be wrong. I will try to see if I can recreate this bug. If it is possible when you load into a mutation can you open up the developer console and report any errors that appear. Errors are any line that are red. Also does the issue only appear when their is a human on the survivor team or for the first round of the mutation.
That issue appeared when there are human on survivor team at start of every round. Also I've found warning logs on every load of maps such;

AN ERROR HAS OCCURED [the index 'think_rate' does not exist]

CALLSTACK
*FUNCTION [unknown()] scripts/vscripts/botaifix.nut line [192]
*FUNCTION [ScriptMode_Init()] c:/program files/steam/steamapps/common/left 4 dead 2/left4dead2/addons/workshop/2859700506.vpk/scripts/vscripts/scriptedmode_addon.nut line [75]

LOCALS
[compiledscript] CLOSURE
[textString] "const think_rate = 0.5
"
[fileContents] ARRAY
[mapname] "c9m1_alleys"
[modename] "specialdeliveryvs"
[this] TABLE
[bScriptedModeValid] true
[mapname] "c9m1_alleys"
[modename] "specialdeliveryvs"
[this] TABLE;
T-Rizzle  [开发者] 2022 年 11 月 1 日 下午 12:30 
引用自 hong1165
引用自 T-Rizzle
Odd, this addon shouldn’t conflict with anything, but I may be wrong. I will try to see if I can recreate this bug. If it is possible when you load into a mutation can you open up the developer console and report any errors that appear. Errors are any line that are red. Also does the issue only appear when their is a human on the survivor team or for the first round of the mutation.
That issue appeared when there are human on survivor team at start of every round. Also I've found warning logs on every load of maps such;

AN ERROR HAS OCCURED [the index 'think_rate' does not exist]

CALLSTACK
*FUNCTION [unknown()] scripts/vscripts/botaifix.nut line [192]
*FUNCTION [ScriptMode_Init()] c:/program files/steam/steamapps/common/left 4 dead 2/left4dead2/addons/workshop/2859700506.vpk/scripts/vscripts/scriptedmode_addon.nut line [75]

LOCALS
[compiledscript] CLOSURE
[textString] "const think_rate = 0.5
"
[fileContents] ARRAY
[mapname] "c9m1_alleys"
[modename] "specialdeliveryvs"
[this] TABLE
[bScriptedModeValid] true
[mapname] "c9m1_alleys"
[modename] "specialdeliveryvs"
[this] TABLE;
It appears that your const.nut is corrupted. You should delete it and let this addon recreate it. This should fix the error. This may even the the reason for the bug in the first place.
ルエンハイド 2022 年 11 月 5 日 下午 11:06 
It seems that my bots will refuse to help anyone up once I have this installed. I even tried the left4bots use command and they flat out won't help me or anyone else up. I'm wondering if it's because of infected being present on the map period regardless of proximity?

It also seems like throwing a molotov or shooting gas cans now breaks the ai completely where they refuse to move or shoot while the fire is active.
T-Rizzle  [开发者] 2022 年 11 月 6 日 上午 8:38 
引用自 ルエンハイド
It seems that my bots will refuse to help anyone up once I have this installed. I even tried the left4bots use command and they flat out won't help me or anyone else up. I'm wondering if it's because of infected being present on the map period regardless of proximity?

It also seems like throwing a molotov or shooting gas cans now breaks the ai completely where they refuse to move or shoot while the fire is active.
Odd, I use this mod daily and I don't have any problems, "I am using the beta version though." I will install the current version and see what might be the problem.
< >
正在显示第 1 - 15 条,共 136 条留言
每页显示数: 1530 50