Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Dedicated Server - Failed to add plugin 'Insurgency Mod'! #3

Closed
stealmyhousekey opened this issue Jan 14, 2021 · 3 comments
Closed

Comments

@stealmyhousekey
Copy link

As stated in title, AngelScript plugin fails to load for an unknown reason on my Debian 9 VPS when added to "default_plugins.txt".

However, the weapons and menus work absolutely fine when added to a map .cfg file manually using:
map_script ins2/ins2_register

Other AngelScript plugins load without issue, but plugin 'Insurgency Mod' fails to compile. I have also tried running just "Insurgency Mod" with all other plugins removed, but the issue still persists.

It also seems to work properly on my local machine when running a listen server, although this may have something to do with me using the Proton/WINE version of Sven Co-op. I ran into these exact same issues with the CS1.6 weapons mod as well.

Any help would be greatly appreciated!


as_reloadplugins results:

as_reloadplugins
Angelscript: Reloading plugins
Angelscript: Removed 1 plugin(s)
Angelscript: Loading plugin lists
Angelscript: Loading plugin list 'default_plugins.txt'
Angelscript: Loading plugins from file 'default_plugins.txt'
Angelscript: Plugin list 'default_plugins.txt' - 3 plugin(s) listed
ERROR: Angelscript: Failed to add plugin 'Insurgency Mod'!
Angelscript: Included script 'StringUtils'
Angelscript: Included script '../../Cfg'
Angelscript: Beginning plugin 'PlayerManagement' compilation
Angelscript: Starting compilation: 3 scripts
Angelscript: Plugin script compilation succeeded
Angelscript: Registering hook: module 'PlayerManagement', hook 'ClientSay', function 'PlayerManagement::ClientSay'
PlayerManagement: config file scripts/plugins/admin/Config/PlayerManagement.cfg loaded
Angelscript: Adding console command 'plrmgr.admin_slap'
Angelscript: Adding console command 'plrmgr.admin_slay'
Angelscript: Adding console command 'plrmgr.admin_kick'
Angelscript: Adding console command 'plrmgr.admin_ban'
Angelscript: Adding console command 'plrmgr.admin_teleport'
Angelscript: Adding console command 'plrmgr.admin_teleportto'
Angelscript: Adding console command 'plrmgr.admin_sethealth'
Angelscript: Adding console command 'plrmgr.admin_setarmor'
Angelscript: Beginning plugin 'Speedometer' compilation
Angelscript: Starting compilation: 1 scripts
Angelscript: Plugin script compilation succeeded
Angelscript: Registering hook: module 'Speedometer', hook 'ClientSay', function '::ClientSay'
Angelscript: 3 plugin(s) total
Angelscript: 2 plugin(s) successfully compiled
Angelscript: 1 plugin(s) failed compilation

When attempting as_reloadplugin "Insurgency Mod"

as_reloadplugin 'Insurgency Mod'
Angelscript: as_reloadplugin usage:
"as_reloadplugin <plugin name>" to reload a plugin
as_reloadplugin "Insurgency Mod"
WARNING: Angelscript: No such plugin 'Insurgency Mod', cannot remove
WARNING: Angelscript: No such plugin 'Insurgency Mod', cannot reload
Reloading plugin list file to locate plugin data
Angelscript: Loading plugin lists
Angelscript: Loading plugin list 'default_plugins.txt'
Angelscript: Loading plugins from file 'default_plugins.txt'
ERROR: Angelscript: Failed to add plugin 'Insurgency Mod'!

Contents of the server's default_plugins.txt:

//========================================
//
//	This file lists all plugins that are loaded by the game
//	Plugins use Angelscript
//
//========================================
"plugins"
{
	"plugin"
	{
		"name"          "Insurgency Mod"
		"script"        "../maps/ins2/ins2_register"
		"concommandns"     "ins2"
	}
	
	"plugin"
	{
		"name" "PlayerManagement"
		"script" "admin/PlayerManagement"
		"concommandns" "plrmgr"
	}
	
	"plugin"
	{
		"name" "Speedometer"
		"script" "SpeedoMeter"
	}

//	"plugin"
//	{
//		"name" "EntityManager"
//		"script" "EntityManager"
//		"concommandns" "entmngr"
//	}
//
//	"plugin"
//	{
//		"name" "Teleport"
//		"script" "Teleport"
//	}
//
//	"plugin"
//	{
//		"name" "Vox"
//		"script" "Vox"
//	}

}
@KernCore91
Copy link
Owner

KernCore91 commented Jan 15, 2021

Hey, could you try copying and pasting the ins2 folder in scripts/maps/ into scripts/plugins/?
Also modify the script line in the default_plugins.txt to "script" "ins2/ins2_register" after doing that.

@stealmyhousekey
Copy link
Author

stealmyhousekey commented Jan 16, 2021

That seems to have fixed it!
I figured it was an issue with the file not being found, but I wasn't sure where to begin debugging in this scenario.

Everything seems to be working now except for map_scripts found in scripts/maps/ins2/maps/, which I'm guessing is a path issue as well.

@R4to0
Copy link
Collaborator

R4to0 commented Jan 16, 2021

Just tested the pack on my Debian 9 x64 VM and everything works as expected. I just extracted all the content into svencoop_addon dir, added plugin info in the plugins.txt file and started the server.
Strange that you're getting these path issues. Did you checked file/folder permissions?

Beginning plugin 'Insurgency Mod' compilation
Starting compilation: 69 scripts
Adding console command '.buy'
Plugin script compilation succeeded
~$ neofetch
       _,met$$$$$gg.          vance@vance
    ,g$$$$$$$$$$$$$$$P.       -----------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 9.13 (stretch) x86_64
 ,$$P'              `$$$.     Model: Google Compute Engine
',$$P       ,ggs.     `$$b:   Kernel: 4.9.0-14-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 9 days, 13 hours, 41 minutes
 $$P      d$'     ,    $$P    Packages: 518
 $$:      $$.   -    ,d$$'    Shell: bash 4.4.12
 $$;      Y$b._   _,d$P'      CPU: Intel Xeon (2) @ 2.0GHz
 Y$$.    `.`"Y$$$$P"'         Memory: 579MB / 2004MB
 `$$b      "-.__              ​
  `Y$$                        ████████████████████████
   `Y$$.                      ​
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

@DNIO071 DNIO071 closed this as completed Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants