Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots 2
3ipKa* 11 May, 2024 @ 5:38pm
Doesn't work with custom campaign
Addon doesn't work with Dark Messiah E3 campaign.
On map start:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3244716879

After. Near the weapons and items:
https://steamhost.cn/steamcommunity_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...
Last edited by 3ipKa*; 11 May, 2024 @ 5:51pm
< >
Showing 1-8 of 8 comments
smilzo  [developer] 14 May, 2024 @ 2:08pm 
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* 14 May, 2024 @ 2:17pm 
Now it's only on the GameMaps: https://www.gamemaps.com/details/30143
Thank you for your answer and your work :)
4512369781  [developer] 14 May, 2024 @ 9:05pm 
Originally posted by 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"?
Last edited by 4512369781; 14 May, 2024 @ 9:08pm
smilzo  [developer] 15 May, 2024 @ 9:26am 
Originally posted by 4512369781:
Originally posted by 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  [developer] 15 May, 2024 @ 10:37am 
Originally posted by 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  [developer] 15 May, 2024 @ 11:54am 
Originally posted by 4512369781:
Originally posted by 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  [developer] 16 May, 2024 @ 12:20am 
Originally posted by 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.
Last edited by 4512369781; 16 May, 2024 @ 2:12am
Bane 19 May, 2024 @ 10:35pm 
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
< >
Showing 1-8 of 8 comments
Per page: 1530 50