AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Questions (https://forums.alliedmods.net/forumdisplay.php?f=74)
-   -   Metamod on Insurgency beta server (https://forums.alliedmods.net/showthread.php?t=273693)

BCG 10-24-2015 19:07

Metamod on Insurgency beta server
 
I'm trying to get Metamod and Sourcemod working on a Linux Insurgency beta server. However, when I start the server, I get this message:

Code:

Unable to load plugin "addons/metamod/bin/server"
I pulled the latest version of Metamod from the git repo and compiled it, but no luck. I'm guessing this is because the Insurgency beta is using a different version of the CS:GO SDK. Is there a way I can get more diagnostic info? I don't see any other related logs or messages.

I know people probably don't want to spend any time trying to support Metamod for a beta version of a game, so I figured I'd take a stab at fixing it myself. But I don't know where to start. Any help would be appreciated.

versatile_bfg 10-26-2015 05:22

Re: Metamod on Insurgency beta server
 
Have you tried the already compiled version? From here: http://www.metamodsource.net/

BCG 10-26-2015 09:49

Re: Metamod on Insurgency beta server
 
Yes, version 1.10.6. I encounter the same error.

asherkin 10-26-2015 10:06

Re: Metamod on Insurgency beta server
 
Look for a metamod-fatal.log in the gamedir or root, post the contents.

BCG 10-26-2015 11:19

Re: Metamod on Insurgency beta server
 
Code:

% find . -name '*.log'
./dbg_crashhandler_engine.log

No such log exists. Do I have to turn on logging somehow?

sil_El_mot 10-26-2015 11:56

Re: Metamod on Insurgency beta server
 
i wrote a russian guy, who got this working some days ago, he wrote me following back... but i have no time to try and error. if smbd get this working, pls explain how, or post the files. thanks

Quote:

>> i manual chg data in addons\sourcemod\gamedata (all *insurgency.txt)
>>
>> in beta func virtual offset (not all! but often) old+1

open any file *insurgency.txt - for example: addons\sourcemod\gamedata\sdkhooks.games\engi ne.insurgency.txt and chg vaule new=old+1
==============
"Games"
{
"#default"
{
"Offsets"
{
"Blocked"
{
"windows" "109" // old: 108
"linux" "110" // old: 109
"mac" "110" // old: 109
}
"EndTouch"
{
"windows" "107" // old: 106
"linux" "108" // old: 107
"mac" "108" // old: 107
}
"FireBullets"
{
"windows" "120" // old: 119
"linux" "121" // old: 120
"mac" "121" // old: 120
}
"GetMaxHealth"
{
"windows" "124" // old: 123
"linux" "125" // old: 124
"mac" "125" // old: 124
}
"GroundEntChanged"
{
"windows" "178" // old: 177
"linux" "180" // old: 179
"mac" "180" // old: 179
}
"OnTakeDamage"
{
"windows" "68" // old: 67
"linux" "69" // old: 68
"mac" "69" // old: 68
}
"OnTakeDamage_Alive"
{
"windows" "292" // old: 291
"linux" "293" // old: 292
"mac" "293" // old: 292
}
"PreThink"
{
"windows" "361" // old: 360
"linux" "362" // old: 361
"mac" "362" // old: 361
}
"PostThink"
{
"windows" "362" // old: 361
"linux" "363" // old: 362
"mac" "363" // old: 362
}
"Reload"
{
"windows" "285" // old: 284
"linux" "286" // old: 285
"mac" "286" // old: 285
}
"SetTransmit"
{
"windows" "22"
"linux" "23"
"mac" "23"
}
"ShouldCollide"
{
"windows" "17"
"linux" "18"
"mac" "18"
}
"Spawn"
{
"windows" "24"
"linux" "25"
"mac" "25"
}
"StartTouch"
{
"windows" "105" // old: 104
"linux" "106" // old: 105
"mac" "106" // old: 105
}
"Think"
{
"windows" "52" // old: 51
"linux" "53" // old: 52
"mac" "53" // old: 52
}
"Touch"
{
"windows" "106" // old: 105
"linux" "107" // old: 106
"mac" "107" // old: 106
}
"TraceAttack"
{
"windows" "66" // old: 65
"linux" "67" // old: 66
"mac" "67" // old: 66
}
"Use"
{
"windows" "104" // old: 103
"linux" "105" // old: 104
"mac" "105" // old: 104
}
"VPhysicsUpdate"
{
"windows" "157" // old: 156
"linux" "158" // old: 157
"mac" "158" // old: 157
}
"Weapon_CanSwitchTo"
{
"windows" "286" // old: 285
"linux" "287" // old: 286
"mac" "287" // old: 286
}
"Weapon_CanUse"
{
"windows" "280" // old: 279
"linux" "281" // old: 280
"mac" "281" // old: 280
}
"Weapon_Drop"
{
"windows" "283" // old: 282
"linux" "284" // old: 283
"mac" "284" // old: 283
}
"Weapon_Equip"
{
"windows" "281" // old: 280
"linux" "282" // old: 281
"mac" "282" // old: 281
}
"Weapon_Switch"
{
"windows" "284" // old: 283
"linux" "285" // old: 284
"mac" "285" // old: 284
}
}
}

"#default"
{
"Offsets"
{
"EntityListeners"
{
"windows" "196644"
"linux" "196644"
"mac" "196644"
}
}
}
}

==============

BCG 10-26-2015 22:31

Re: Metamod on Insurgency beta server
 
I don't think I'm at the point where Sourcemod is being loaded yet. But thanks, I didn't consider the fact that the offsets for Sourcemod would need to be updated.

BCG 10-27-2015 21:31

Re: Metamod on Insurgency beta server
 
Well, NWI has released the new Insurgency update from beta into stable. Looks like the server fails to load Metamod, as well as promptly crashing due to an illegal hardware instruction. Don't know what that's about.

psychonic 10-27-2015 23:05

Re: Metamod on Insurgency beta server
 
Quote:

Originally Posted by BCG (Post 2357226)
Well, NWI has released the new Insurgency update from beta into stable. Looks like the server fails to load Metamod, as well as promptly crashing due to an illegal hardware instruction. Don't know what that's about.

This is maybe fixed now in newer builds of MM:S and SM. I'm not able to test right now though.

BCG 10-27-2015 23:36

Re: Metamod on Insurgency beta server
 
Quote:

Originally Posted by psychonic (Post 2357243)
This is maybe fixed now in newer builds of MM:S and SM. I'm not able to test right now though.

I think NWI's Linux Insurgency server is bugged, because it crashes somewhere in steamclient.so sometime after the map loads.

However, further up the server log, Metamod is still failing to load. I still see

Code:

Unable to load plugin "addons/metamod/bin/server"
This is even after updating all my HL2SDKs and compiling Metamod from this commit:

Code:

commit 7f781f69b855e04f279804ea8460b4487cdcf187
Author: <REDACTED>
Date:  Tue Oct 27 18:15:55 2015 -0700

    Fix Insurgency build on Linux for SDK changes.


PlayBoy31 10-28-2015 09:44

Re: Metamod on Insurgency beta server
 
I confirm, still no able to load Metamod even with 1.10.7-git948 linux

GiZZoR 10-28-2015 10:33

Re: Metamod on Insurgency beta server
 
Since the latest update to the stable branch, this error is now happening for most (all?) linux Insurgency servers.
Code:

Unable to load plugin "addons/metamod/bin/server"
Running Insurgency srcds on Ubuntu 14.04.3.
Tested on clean srcds with both mmsource-1.11.0-git998-linux and mmsource-1.10.6-linux.

Wallinator 10-28-2015 15:57

Re: Metamod on Insurgency beta server
 
Quote:

Originally Posted by GiZZoR (Post 2357354)
Since the latest update to the stable branch, this error is now happening for most (all?) linux Insurgency servers.
Code:

Unable to load plugin "addons/metamod/bin/server"
Running Insurgency srcds on Ubuntu 14.04.3.
Tested on clean srcds with both mmsource-1.11.0-git998-linux and mmsource-1.10.6-linux.


Same here.. Same versions.. Same OS

ldooks 10-28-2015 18:45

Re: Metamod on Insurgency beta server
 
Can confirm this is not working on Debian 8.1 32bit

using latest dev builds of both sourcemod and metamod

BCG 10-28-2015 20:29

Re: Metamod on Insurgency beta server
 
So I ran strace to see what was going on. Here is something that caught my eye:

(~'s for privacy's sake)

Code:

getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/platform/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/download/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(1, "Unable to load plugin \"addons/me"..., 50) = 50

GAMEaddons? server_srv.so? Neither are outputs of Metamod compilation. Something funny is going on here.

I went into Metamod's bin folder and symlinked server_srv.so to server.so. After that, another strace shows this:

Code:

open("~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod.2.insurgency.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod-fatal.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 10
fstat64(10, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffffffb776c000
fstat64(10, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
_llseek(10, 0, [0], SEEK_SET)          = 0
time(NULL)                              = 1446074249
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(10, "L 10/28/2015 - 19:17:29: Detecte"..., 212) = 212
close(10)                              = 0
munmap(0xb776c000, 4096)                = 0
write(1, "Failed to load plugin \"addons/me"..., 50) = 50

Two things of note: servmetamod.2.insurgency.so, and servmetamod-fatal.log. That "serv" prefix is suspicious.

Symlinking servmetamod.2.insurgency.so to metamod.2.insurgency.so doesn't have any effect. Metamod still fails to load. Here is the (complete) contents of the servmetamod-fatal.log:

Code:

L 10/28/2015 - 19:12:52: Detected engine 19 but could not load: ~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod.2.insurgency.so: undefined symbol: KeyValuesSystem

psychonic 10-28-2015 21:53

Re: Metamod on Insurgency beta server
 
Quote:

Originally Posted by BCG (Post 2357493)
So I ran strace to see what was going on. Here is something that caught my eye:

(~'s for privacy's sake)

Code:

getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("GAMEaddons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/platform/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/download/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getcwd("~/srcds/insurgency", 1024) = 31
open("~/srcds/insurgency/bin/addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("addons/metamod/bin/server_srv.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(1, "Unable to load plugin \"addons/me"..., 50) = 50

GAMEaddons? server_srv.so? Neither are outputs of Metamod compilation. Something funny is going on here.

I went into Metamod's bin folder and symlinked server_srv.so to server.so. After that, another strace shows this:

Code:

open("~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod.2.insurgency.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod-fatal.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 10
fstat64(10, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffffffb776c000
fstat64(10, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
_llseek(10, 0, [0], SEEK_SET)          = 0
time(NULL)                              = 1446074249
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
write(10, "L 10/28/2015 - 19:17:29: Detecte"..., 212) = 212
close(10)                              = 0
munmap(0xb776c000, 4096)                = 0
write(1, "Failed to load plugin \"addons/me"..., 50) = 50

Two things of note: servmetamod.2.insurgency.so, and servmetamod-fatal.log. That "serv" prefix is suspicious.

Symlinking servmetamod.2.insurgency.so to metamod.2.insurgency.so doesn't have any effect. Metamod still fails to load. Here is the (complete) contents of the servmetamod-fatal.log:

Code:

L 10/28/2015 - 19:12:52: Detected engine 19 but could not load: ~/srcds/insurgency/insurgency/addons/metamod/bin/servmetamod.2.insurgency.so: undefined symbol: KeyValuesSystem

https://bugs.alliedmods.net/show_bug.cgi?id=6428

GiZZoR 10-29-2015 02:55

Re: Metamod on Insurgency beta server
 
So, managed to get 1.10.6 to load by
Code:

cp server.so server_srv.so
cp metamod.2.insurgency.so servmetamod.2.insurgency.so

This is hack job, but MetaMod, SourceMod and SM plugins are all now working.

BCG 10-29-2015 09:40

Re: Metamod on Insurgency beta server
 
Can confirm. Thanks, GiZZor.

GiZZoR 11-03-2015 11:14

Re: Metamod on Insurgency beta server
 
Quote:

Originally Posted by GiZZoR (Post 2357601)
So, managed to get 1.10.6 to load by
Code:

cp server.so server_srv.so
cp metamod.2.insurgency.so servmetamod.2.insurgency.so

This is hack job, but MetaMod, SourceMod and SM plugins are all now working.

I can confirm that this has been fixed by NWI in the latest update, and this workaround is no longer required. (I have deleted the copied files server_srv.so and servmetamod.2.insurgency.so)


All times are GMT -4. The time now is 17:46.

Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.