Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots 2
3ipKa* 2024 年 5 月 11 日 下午 5:38
Doesn't work with custom campaign
Addon doesn't work with Dark Messiah E3 campaign.
On map start:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3244716879

After. Near the weapons and items:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3244716768

No addons installed, but L4B2 and L4Lib. None of the bot commands work.
It's not a big deal, but I guess it might affect some other campaigns and maybe this will help somehow.

Hmm. Cannot find campaign in Workshop, seems it was hide recently after update...
最后由 3ipKa* 编辑于; 2024 年 5 月 11 日 下午 5:51
< >
正在显示第 1 - 8 条,共 8 条留言
smilzo  [开发者] 2024 年 5 月 14 日 下午 2:08 
From the errors i can tell it's likely some incompatible vscript code in the campaign that prevents l4b2 from loading correctly. If you find the campaign let me know.
3ipKa* 2024 年 5 月 14 日 下午 2:17 
Now it's only on the GameMaps: https://www.gamemaps.com/details/30143
Thank you for your answer and your work :)
4512369781  [开发者] 2024 年 5 月 14 日 下午 9:05 
引用自 smilzo
From the errors i can tell it's likely some incompatible vscript code in the campaign that prevents l4b2 from loading correctly. If you find the campaign let me know.

I just realized that if we are loading after "ScriptMode_Init", why not do it in "director_base_addon.nut"?
最后由 4512369781 编辑于; 2024 年 5 月 14 日 下午 9:08
smilzo  [开发者] 2024 年 5 月 15 日 上午 9:26 
引用自 4512369781
引用自 smilzo
From the errors i can tell it's likely some incompatible vscript code in the campaign that prevents l4b2 from loading correctly. If you find the campaign let me know.

I just realized that if we are loading after "ScriptMode_Init", why not do it in "director_base_addon.nut"?
I don't know, i don't even remember, i've beein doing this for years since my first ever addon L4F. I only remember that at some point i even tried to move it to director_base but it was causing some issues and i decided to stick to scriptedmode_init.
4512369781  [开发者] 2024 年 5 月 15 日 上午 10:37 
引用自 smilzo
I don't know, i don't even remember, i've beein doing this for years since my first ever addon L4F. I only remember that at some point i even tried to move it to director_base but it was causing some issues and i decided to stick to scriptedmode_init.
oh, that's... anyway, I did some testing and it looks like good for l4b2 at least.
add "IncludeScript("left4bots", g_MapScript);" in "director_base_addon.nut" top. this make loading the l4b2 code in the same scope as "ScriptMode_Init".
smilzo  [开发者] 2024 年 5 月 15 日 上午 11:54 
引用自 4512369781
引用自 smilzo
I don't know, i don't even remember, i've beein doing this for years since my first ever addon L4F. I only remember that at some point i even tried to move it to director_base but it was causing some issues and i decided to stick to scriptedmode_init.
oh, that's... anyway, I did some testing and it looks like good for l4b2 at least.
add "IncludeScript("left4bots", g_MapScript);" in "director_base_addon.nut" top. this make loading the l4b2 code in the same scope as "ScriptMode_Init".
Nice. I will make a test version on github so it can be tested by more people. Thanks.
4512369781  [开发者] 2024 年 5 月 16 日 上午 12:20 
引用自 smilzo
Nice. I will make a test version on github so it can be tested by more people. Thanks.
emm... I must have to say you are right, more I test it, more errors I get.
if not use "scriptedmode_addon.nut" and cover "ScriptMode_Init", hooks will never work.
so we should move "IncludeScript("left4bots")" to "director_base_addon.nut" and keep other things in "scriptedmode_addon.nut", and everything should work fine.
最后由 4512369781 编辑于; 2024 年 5 月 16 日 上午 2:12
Bane 2024 年 5 月 19 日 下午 10:35 
Bots work fine in custom campaigns, they just can't lead 100 percent. What's interesting is in Dead Vacation they always want to set up the minigun without being told to lead which is pretty cool
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50