View Single Post
enderandrew
Senior Member
Join Date: Jun 2020
Old 07-01-2020 , 04:45   Re: [VSH/FF2] [Plugin] Bots (1.1)
Reply With Quote #44

Quote:
Originally Posted by Transit Of Venus View Post
New issue

L 07/06/2017 - 21:23:44: [SM] Exception reported: logic plugin for these bots is not loaded!
L 07/06/2017 - 21:23:44: [SM] Blaming: vshbots_move.smx
L 07/06/2017 - 21:23:44: [SM] Call stack trace:
L 07/06/2017 - 21:23:44: [SM] [0] SetFailState
L 07/06/2017 - 21:23:44: [SM] [1] Line 31, /home/forums/content/files/2/5/9/9/1/8/145237.attach::OnAllPluginsLoaded
I went to try this out and ran into the same issue:

Code:
L 07/01/2020 - 03:18:40: [SM] Failed to load plugin "VSH2\saxtonhale.smx": .
L 07/01/2020 - 03:18:42: [SM] Exception reported: logic plugin for these bots is not loaded!
L 07/01/2020 - 03:18:42: [SM] Blaming: VSH2\vshbots_move.smx
L 07/01/2020 - 03:18:42: [SM] Call stack trace:
L 07/01/2020 - 03:18:42: [SM]   [0] SetFailState
L 07/01/2020 - 03:18:42: [SM]   [1] Line 31, vshbots_move.sp::OnAllPluginsLoaded
So line 31 of vshbots_move.sp is looking to see if vshbots_logic.smx has loaded. I have the plugin installed.

This is a bit of an ugly hack but in my server.cfg I can unload all my VSH2 plugins so they're not running all the time:

Code:
wait 250; sm plugins unload "VSH2/vsh2.smx"
wait 250; sm plugins unload "VSH2/saxtonhale.smx"
wait 66; sm plugins unload "VSH2/vsh2boss_plaguedoctor.smx"
wait 66; sm plugins unload "VSH2/vsh2_addon_difficulty_settings.smx"
wait 66; sm plugins unload "VSH2/vsh2_addon_dmgtracker.smx"
wait 66; sm plugins unload "VSH2/vsh2_addon_extra_boss_themes.smx"
wait 66; sm plugins unload "VSH2/vsh2_addon_gunshot_bride.smx"
wait 66; sm plugins unload "VSH2/vsh2_addon_infinite_ammo_uber.smx"
wait 66; sm plugins unload "VSH2/vshbots_logic.smx"
wait 66; sm plugins unload "VSH2/vshbots_move.smx"
Then I have a vsh.cfg file I load with any vsh map and in there I load the plugins, but make sure vshbots_logic loads before anything else:

Here is my vsh.cfg file:

Code:
exec bots.cfg

sm_cvar tf_bot_pyro_deflect_tolerance 0
sm_cvar tf_bot_fire_weapon_allowed 0
sm_cvar tf_bot_pyro_shove_away_range 0

tf_bot_quota_mode fill; tf_bot_quota 2 expert;

wait 650; sm plugins load "VSH2/vshbots_logic.smx"
wait 650; sm plugins load "VSH2/saxtonhale.smx"
wait 650; sm plugins load "VSH2/vsh2.smx"
wait 650; sm plugins load "VSH2/vsh2boss_plaguedoctor.smx"
wait 250; sm plugins load "VSH2/vsh2_addon_difficulty_settings.smx"
wait 250; sm plugins load "VSH2/vsh2_addon_dmgtracker.smx"
wait 250; sm plugins load "VSH2/vsh2_addon_extra_boss_themes.smx"
wait 250; sm plugins load "VSH2/vsh2_addon_gunshot_bride.smx"
wait 250; sm plugins load "VSH2/vsh2_addon_infinite_ammo_uber.smx"
wait 250; sm plugins load "VSH2/vshbots_move.smx"

wait 250; echo "Versus Saxon Hale 2 Config Loaded. Good luck!"
The other fix would be to edit vshbots_move.smx and take out the section looking to see if vshbots_logic.smx loaded first but I assume the check is there for a reason. Does sourcepawn/sourcemod have a better way to list a dependency so plugins load in a given order and dependencies load first?

It looks like the plugins are loading correctly now, but I can't test it properly yet. VSH won't load unless you have other players and so I'll have to get a few on my testing server to test the mode out, and if it works, I'll go live with it on my server after that.
enderandrew is offline