Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[HL2/Portal] `plugin_load` command no longer works

Open evanlin96069 opened this issue 10 months ago • 7 comments

Game:

  • Half-Life 2 (build 9526483, Windows)
  • Portal (build 9530103, Windows)

The plugin_load command no longer works after the recent update. The only way to load plugins now is by creating the corresponding .vdf file in the addons folder. However, this causes issues for many plugins. Since loading via the addons folder happens very early in the game startup process, some game modules have not yet been initialized. Many plugins rely on plugin_load being executed later when the game has fully started.

evanlin96069 avatar Feb 14 '25 03:02 evanlin96069

Happens on Half-Life: Source if anyone is interested.

Nacroni avatar Jun 11 '25 18:06 Nacroni

It also seems to have broken loading from the custom folder, at least it did for me

superJK92iscool avatar Jun 14 '25 21:06 superJK92iscool

That being on Portal

superJK92iscool avatar Jun 14 '25 21:06 superJK92iscool

It also seems to have broken loading from the custom folder, at least it did for me

I tested on the latest version of Portal (build 9786830) and loading from addons folder via vdf (https://developer.valvesoftware.com/wiki/Server_plugins#.vdf_format) still works. Not quite sure what you mean.

evanlin96069 avatar Jun 15 '25 00:06 evanlin96069

I also tested it on Linux Portal. It's the same. plugin_load is broken, but loading via the addons folder still works. So we can probably remove the Windows label on this issue.

evanlin96069 avatar Jun 15 '25 00:06 evanlin96069

I think plugin_load command callback got replaced with a no-op. Even if you just type plugin_load without any argument, it won't print any error message. It used to print a warning message plugin_load <filename>.

I'm not quite sure if the removal of plugin_load is intentional.

evanlin96069 avatar Jun 15 '25 00:06 evanlin96069

the addons folder is different from the custom folder if I'm right, the Portal: Google Translate Edition uses the custom folder, and it doesn't load in the latest one

It also seems to have broken loading from the custom folder, at least it did for me

I tested on the latest version of Portal (build 9786830) and loading from addons folder via vdf (https://developer.valvesoftware.com/wiki/Server_plugins#.vdf_format) still works. Not quite sure what you mean.

superJK92iscool avatar Jun 15 '25 17:06 superJK92iscool