Giter Site home page Giter Site logo

alliedmodders / metamod-source Goto Github PK

View Code? Open in Web Editor NEW
350.0 44.0 81.0 14.22 MB

Metamod:Source - C++ Plugin Environment and Detour Library for the Source Engine

Home Page: http://www.metamodsource.net/

License: Other

Python 1.32% C++ 57.66% Makefile 0.10% C 1.38% Perl 0.28% Shell 0.13% Pascal 35.75% CSS 1.01% HTML 1.39% JavaScript 0.66% Batchfile 0.02% PowerShell 0.29%
metamod source-engine modding hacktoberfest

metamod-source's Introduction

Metamod:Source

Metamod:Source - A C++ Plugin Environment and Detour Library for the Source Engine.

Build instructions

Make sure ambuild2 is installed: https://github.com/alliedmodders/ambuild

Clone the repo with submodules:

git clone --recurse-submodules https://github.com/alliedmodders/metamod-source

Clone the SDK dependencies:

cd ..
metamod-source/support/checkout-deps.sh
cd metamod-source

Configure the build:

mkdir build
cd build
python ../configure.py

Build:

ambuild

You can clone an individual SDK e.g.:

cd ..
metamod-source/support/checkout-deps.sh -s episode1
cd metamod-source

You can configure the build for an individual SDK e.g.:

mkdir build
cd build
python ../configure.py --sdks episode1

Stable build snapshots: http://www.metamodsource.net/downloads.php/?branch=stable

Development build snapshots: http://www.metamodsource.net/downloads.php/?branch=master

General documentation: https://wiki.alliedmods.net/Category:Metamod:Source_Documentation

Detouring with SourceHook: https://wiki.alliedmods.net/SourceHook_Development

Development: https://wiki.alliedmods.net/Category:Metamod:Source_Development

metamod-source's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metamod-source's Issues

Linux BMS Metamod crash on startup

Greetings,

Since the last bms update "https://steamcommunity.com/games/362890/announcements/detail/1669024110904289413" srcds crash with metamod.

In the first bms update(early 29.04) the dedicated.so was missing.
We could start a dedicated via copy and rename the dedicated_srv.so

Another update, some hours later, ships the dedicated.so file but the server crash with "Unable to load interface VCvarQuery001 from engine.so, requested from EXE.".
I also copy and rename the dedicated_srv.so to dedicated.so and the server starts and runs stable.

There are some others problems right now, like empty public server list - so another update will hit very soon i think.

anyway, we can play via hlsw or the "history tab".

I do not know if that makes sense now to begin debug right now. or waiting for the next update.
I was able to join with the client (second update) on the server with the first update. I think nothing big will be changed in the upcoming update. But it would be nice – so we can start testing our sourcemod plugins on the new version.

Trace via a clean srcds install + mms:1.11 1103 – no other plugins:

Thread 1 "srcds_linux" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7b9aec0 (LWP 14911)]
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xf6ae5e63 in ConVarNetworkChangeCallback(IConVar*, char const*, float) () from /bmsclean3/bms/bin/engine_srv.so
#2 0xf76f8fa3 in CCvar::CallGlobalChangeCallbacks(ConVar*, char const*, float) () from bin/libvstdlib_srv.so
#3 0xf3b5c22e in ConVar::ChangeStringValue(char const*, float) () from /bmsclean3/bms/bms/addons/metamod/bin/metamod.2.bms.so
#4 0xf3b5c053 in ConVar::InternalSetValue(char const*) () from /bmsclean3/bms/bms/addons/metamod/bin/metamod.2.bms.so
#5 0xf3b4d787 in BaseProvider::SetConVarString(ConVar*, char const*) () from /bmsclean3/bms/bms/addons/metamod/bin/metamod.2.bms.so
#6 0x08862b20 in ?? ()
#7 0x61477265 in ?? ()
#8 0x6c43656d in ?? ()
#9 0x746e6569 in ?? ()
#10 0x34303073 in ?? ()
#11 0xf3b80100 in mm_fatal_logfile () from /bmsclean3/bms/bms/addons/metamod/bin/server.so
#12 0x76726553 in ?? ()
#13 0x61477265 in ?? ()
#14 0x4c44656d in ?? ()
#15 0x3031304c in ?? ()
#16 0xf4a20100 in CDllDemandLoader::~CDllDemandLoader() () from /bmsclean3/bms/bms/bin/server_srv.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

Detected engine 21 but could not load...

Hey there, I wanted to have fun with BMS lately, but unfortunately I get this error:
L 04/20/2020 - 02:57:02: Detected engine 21 but could not load: /home/kamay/.steam/steam/steamapps/common/Black Mesa/bms/addons/metamod/bin/metamod.2.bms.so: undefined symbol: vec3_origin
I suppose that this commit (20c72b5) should have fixed it by linking mathlib but it didn't seem to be the case for some reasons I don't really know yet.

Thank you!

EDIT:
this is due to wrong tabulation I guess

if sdk.name == 'bms':

EDIT EDIT:
after building myself, I have another issue with libtier0_srv.so probably that doesn't export KeyValuesSystem, I don't really know if it's due to my build/g++ version or anything.
Okay apparently it is exported by libvstdlib.so,

So I know why it doesn't find the libs, since metamod is based on dedicated servers, it uses _srv.so libraries, but since they're not loaded the symbols can't be found in a single player game (client),
It would be nice to allow people loading metamod in single player games.

It is not much an issue though I think.

What are you using to build on linux ? (somehow, libvstdlib.so doesn't get into the dependencies of the metamod module)

Unloaded plugins are loaded and unloaded when `exit`ing

Doing meta unload x or similar to unload a plugin, and exiting (or your preferred quit command) will load that plugin again, and then unload it.

Not sure if there is a historical reason for this, or an actual bug? I have no reason to unload my plugin ever, but just a weird quirk I saw.

Add a way to hook early called methods

I previously believed hooking early called methods such as GetTickInterval was not possible until Asherkin told me that there was a patch years ago that never made it to the main code.

While really small, I think this would be a nice improvement to have.

Detected engine 8 but could not find GetVspBridge callback

I just compiled latest dev release of metamod source code. These are the compile parameters.

python ../configure.py --symbol-files --enable-optimize --sdks l4d2
ambuild

When launching the server I got this back.

Detected engine 8 but could not find GetVspBridge callback

Just some follow up information.

Debian GNU/Linux 9.9 (stretch)
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)

non-virtual destructor might cause undefined behavior

error: deleting object of polymorphic class type ‘__SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl’ which has non-virtual destructor might cause undefined behavior

../../../mmsource-1.10/core/sourcehook/sourcehook.h:1058:30:

Can't build Metamod

Trying to build metamod, but get this error:

python ../configure.py
Checking CC compiler (vendor test msvc)... ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64_x86\\cl.exe', 'test.c', '-o', 'test-c.exe', '-nologo', '-showIncludes']
found msvc version 1900, x86
Checking CXX compiler (vendor test msvc)... ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64_x86\\cl.exe', 'test.cpp', '-o', 'test-cxx.exe', '-nologo', '-showIncludes']
found msvc version 1900, x86
Checking CC compiler (vendor test msvc)... ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe', 'test.c', '-o', 'test-c.exe', '-nologo', '-showIncludes']
found msvc version 1900, x86_64
Checking CXX compiler (vendor test msvc)... ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe', 'test.cpp', '-o', 'test-cxx.exe', '-nologo', '-showIncludes']
found msvc version 1900, x86_64
Traceback (most recent call last):
  File "C:\Users\LowArt\AppData\Roaming\Python\Python311\site-packages\ambuild-2.0-py3.11.egg\ambuild2\frontend\v2_2\prep.py", line 143, in Configure
    if not cm.generate(options.generator):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\LowArt\AppData\Roaming\Python\Python311\site-packages\ambuild-2.0-py3.11.egg\ambuild2\frontend\context_manager.py", line 93, in generate
    self.parseBuildScripts()
  File "C:\Users\LowArt\AppData\Roaming\Python\Python311\site-packages\ambuild-2.0-py3.11.egg\ambuild2\frontend\v2_2\context_manager.py", line 50, in parseBuildScripts
    self.execContext(cx)
  File "C:\Users\LowArt\AppData\Roaming\Python\Python311\site-packages\ambuild-2.0-py3.11.egg\ambuild2\frontend\v2_2\context_manager.py", line 148, in execContext
    exec(code, scriptGlobals)
  File "D:\work\other\metamod-source\AMBuildScript", line 546, in <module>
    MMS.detectSDKs()
  File "D:\work\other\metamod-source\AMBuildScript", line 181, in detectSDKs
    raise Exception('No SDKs were found, nothing to build.')
Exception: No SDKs were found, nothing to build.
Configure failed: No SDKs were found, nothing to build.

What i'm doing wrong ?

Support non-relative game detection

Per the nearby code here, MM detects the game based on relative names (e.g hl2mp). When one wishes to pass absolute paths to the SRCDS -game parameter (which I had the need to do recently), I believe that's a perfectly server invocation but MM might detect the wrong mod and thus load the incorrect extensions, etc.

I think the parsing should manually figure out the mod name by extracting the last path component.

Metamod Wont Load

Errors:
failed to dlopen /data/update/addons/metamod/bin/linux64/server.so error=/data/update/addons/metamod/bin/linux64/server.so: cannot open shared object file: Not a directory failed to dlopen /data/csgo/addons/metamod/bin/linux64/server.so error=/data/csgo/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64 Unable to load plugin "addons/metamod/bin/linux64/server" failed to dlopen /data/update/addons/metamod/bin/server.so error=/data/update/addons/metamod/bin/server.so: cannot open shared object file: Not a directory Failed to load plugin "addons/metamod/bin/server"

Log:

./srcds_run: 32: pushd: not found
./srcds_run: 35: popd: not found
Server will auto-restart if there is a crash.
LD_LIBRARY_PATH=/data/bin:/data:/data/bin:
Unable to open tty(/dev/tty) for output
#Console initialized.
Setting breakpad minidump AppID = 740
#Using breakpad minidump system 740/13791.1277.DC
Using breakpad crash handler
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/road_runner/.steam/sdk32/steamclient.so
with error:
/home/road_runner/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
/tmp/dumps is not owned by us - delete and recreate
Unable to delete /tmp/dumps. Continuing anyway.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Filesystem successfully switched to safe whitelist mode
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#CGameEventManager::AddListener: event 'player_death' unknown.
#CGameEventManager::AddListener: event 'hltv_replay' unknown.
#CGameEventManager::AddListener: event 'player_connect' unknown.
#CGameEventManager::AddListener: event 'player_disconnect' unknown.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
Failed to load gamerulescvars.txt, game rules cvars might not be reported to management tools.
Server is hibernating
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
dlopen failed trying to load:
/home/road_runner/.steam/sdk32/steamclient.so
with error:
/home/road_runner/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
[S_API] SteamAPI_Init(): Sys_LoadModule failed to load: /home/road_runner/.steam/sdk32/steamclient.so
failed to dlopen /data/update/addons/metamod/bin/linux64/server.so error=/data/update/addons/metamod/bin/linux64/server.so: cannot open shared object file: Not a directory
failed to dlopen /data/csgo/addons/metamod/bin/linux64/server.so error=/data/csgo/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
Unable to load plugin "addons/metamod/bin/linux64/server"
failed to dlopen /data/update/addons/metamod/bin/server.so error=/data/update/addons/metamod/bin/server.so: cannot open shared object file: Not a directory
Failed to load plugin "addons/metamod/bin/server"
maxplayers set to 64
ConVarRef cl_embedded_stream_video_playing doesn't point to an existing ConVar
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Setting mapgroup to 'mg_allclassic'
NET_CloseAllSockets
sh: 1: ifconfig: not found
Socket bind failed (Cannot assign requested address)
ApplyGameSettings: Invalid mapgroup name mg_allclassic
---- Host_NewGame ----
Switching filesystem to allow files loaded from disk (sv_pure_allow_loose_file_loads = 1)
Host_NewGame on map de_lake
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
ConVarRef room_type doesn't point to an existing ConVar
ammo_grenade_limit_default - 1
ammo_grenade_limit_flashbang - 1
ammo_grenade_limit_total - 3
ammo_item_limit_healthshot - 4
bot_allow_grenades - 1
bot_allow_machine_guns - 1
bot_allow_pistols - 1
bot_allow_rifles - 1
bot_allow_rogues - 1
bot_allow_shotguns - 1
bot_allow_snipers - 1
bot_allow_sub_machine_guns - 1
bot_autodifficulty_threshold_high - 5.0
bot_autodifficulty_threshold_low - -2.0
bot_chatter - normal
bot_coop_idle_max_vision_distance - 1400
bot_defer_to_human_goals - 0
bot_defer_to_human_items - 1
bot_difficulty - 1
bot_max_hearing_distance_override - -1
bot_max_visible_smoke_length - 200
bot_max_vision_distance_override - -1
bot_quota - 10
bot_quota_mode - normal
bot_coop_idle_max_vision_distance - 1400
bot_max_vision_distance_override - -1
bot_max_hearing_distance_override - -1
bot_coopmission_dz_engagement_limit - missing cvar specified in bspconvar_whitelist.txt
cash_player_bomb_defused - 300
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_get_killed - 0
cash_player_interact_with_hostage - 150
cash_player_killed_enemy_default - 300
cash_player_killed_enemy_factor - 1
cash_player_killed_hostage - -1000
cash_player_killed_teammate - -300
cash_player_rescued_hostage - 1000
cash_player_respawn_amount - 0
cash_team_elimination_bomb_map - 3250
cash_team_elimination_hostage_map_ct - 2000
cash_team_elimination_hostage_map_t - 1000
cash_team_hostage_alive - 0
cash_team_hostage_interaction - 500
cash_team_loser_bonus - 1400
cash_team_bonus_shorthanded - 0
cash_team_loser_bonus_consecutive_rounds - 500
cash_team_planted_bomb_but_defused - 800
cash_team_rescued_hostage - 0
cash_team_survive_guardian_wave - 1000
cash_team_terrorist_win_bomb - 3500
cash_team_win_by_defusing_bomb - 3250
cash_team_win_by_hostage_rescue - 3500
cash_team_win_by_time_running_out_bomb - 3250
cash_team_win_by_time_running_out_hostage - 3250
contributionscore_assist - 1
contributionscore_bomb_defuse_major - 3
contributionscore_bomb_defuse_minor - 1
contributionscore_bomb_exploded - 1
contributionscore_bomb_planted - 2
contributionscore_cash_bundle - 0
contributionscore_crate_break - 0
contributionscore_hostage_kill - -2
contributionscore_hostage_rescue_major - 3
contributionscore_hostage_rescue_minor - 1
contributionscore_kill - 2
contributionscore_kill_factor - 0
contributionscore_objective_kill - 3
contributionscore_suicide - -2
contributionscore_team_kill - -2
ff_damage_reduction_bullets - 0.1
ff_damage_reduction_grenade - 0.25
ff_damage_reduction_grenade_self - 1
ff_damage_reduction_other - 0.25
global_chatter_info -
healthshot_healthboost_damage_multiplier - 1
healthshot_healthboost_speed_multiplier - 1
healthshot_healthboost_time - 0
inferno_child_spawn_max_depth - 4
inferno_max_flames - 16
inferno_max_range - 150
molotov_throw_detonate_time - 2.0
mp_afterroundmoney - 0
mp_anyone_can_pickup_c4 - 0
mp_autokick - 1
mp_autoteambalance - 1
mp_bot_ai_bt -
mp_buy_allow_grenades - 1
mp_buy_allow_guns - 255
mp_buy_anywhere - 0
mp_buy_during_immunity - 0
mp_buytime - 90
mp_c4_cannot_be_defused - 0
mp_c4timer - 40
mp_consecutive_loss_max - 4
mp_coop_force_join_ct - 0
mp_coopmission_bot_difficulty_offset - 0
mp_coopmission_mission_number - 0
mp_coopmission_dz - missing cvar specified in bspconvar_whitelist.txt
mp_ct_default_grenades -
mp_ct_default_melee - weapon_knife
mp_ct_default_primary -
mp_ct_default_secondary - weapon_hkp2000
mp_retake_ct_loadout_default_pistol_round - 1|3;#GameUI_Retake_Card_4v3,0,0,secondary0|1;#GameUI_Retake_Card_FlashOut,0,0,secondary0,grenade2;#GameUI_Retake_Card_HideAndPeek,0,0,secondary0,grenade4
mp_retake_ct_loadout_upgraded_pistol_round - 2|2;#GameUI_Retake_Card_TakeFive,0,0,secondary3|2;#GameUI_Retake_Card_BlindFire,0,0,secondary2,grenade2|2;#GameUI_Retake_Card_OnlyTakesOne,0,0,secondary4|2;#GameUI_Retake_Card_SneakyBeakyLike,0,0,secondary2,grenade4
mp_retake_ct_loadout_light_buy_round - 3|2;#GameUI_Retake_Card_UmpInSmoke,1,1,smg2,grenade4|2;#GameUI_Retake_Card_FunNGun,1,1,smg0,grenade3|2;#GameUI_Retake_Card_Sharpshooter,1,1,rifle2,grenade2|2;#GameUI_Retake_Card_BurstBullpup,1,1,rifle0
mp_retake_ct_loadout_full_buy_round - 4|2;#GameUI_Retake_Card_LightEmUp,1,1,rifle1,grenade2|2;#GameUI_Retake_Card_Kobe,1,1,rifle1,grenade3|1;#GameUI_Retake_Card_1g,1,1,rifle1,grenade0|1;#GameUI_Retake_Card_DisappearingAct,1,1,rifle1,grenade4|1;#GameUI_Retake_Card_EyesOnTarget,1,1,rifle3
mp_retake_ct_loadout_bonus_card_availability - 1,2
mp_retake_ct_loadout_bonus_card - #GameUI_Retake_Card_TheAWPortunity,1,1,rifle4
mp_retake_ct_loadout_enemy_card - #GameUI_Retake_Card_BehindEnemyLines,1,1,rifle1,grenade2
mp_retake_t_loadout_default_pistol_round - 0|3;#GameUI_Retake_Card_4BadGuysLeft,0,0,secondary0|1;#GameUI_Retake_Card_LookAway,0,0,secondary0,grenade2;#GameUI_Retake_Card_WhenThereIsSmoke,0,0,secondary0,grenade4
mp_retake_t_loadout_upgraded_pistol_round - 0|2;#GameUI_Retake_Card_BlindFire,0,0,secondary2,grenade2|2;#GameUI_Retake_Card_QueOta,0,0,secondary4|1;#GameUI_Retake_Card_SmokeScreen,0,0,secondary2,grenade4|1;#GameUI_Retake_Card_TecTecBoom,0,0,secondary3,grenade3
mp_retake_t_loadout_light_buy_round - 0|2;#GameUI_Retake_Card_BackInAFlash,1,1,smg2,grenade2|2;#GameUI_Retake_Card_AllIn,1,1,rifle0|1;#GameUI_Retake_Card_BoomBox,1,1,smg0,grenade3,grenade4|1;#GameUI_Retake_Card_SetThemFree,1,1,rifle2,grenade2
mp_retake_t_loadout_full_buy_round - 0|2;#GameUI_Retake_Card_OlReliable,1,1,rifle1,grenade2|1;#GameUI_Retake_Card_SmokeShow,1,1,rifle1,grenade4|1;#GameUI_Retake_Card_HotShot,1,1,rifle1,grenade0|1;#GameUI_Retake_Card_EyeSpy,1,1,rifle3,grenade3
mp_retake_t_loadout_bonus_card_availability - 1,1,2
mp_retake_t_loadout_bonus_card - #GameUI_Retake_Card_TheAWPortunity,1,1,rifle4
mp_retake_t_loadout_enemy_card - #GameUI_Retake_Card_FindersKeepers,1,1,rifle1,grenade2
mp_retake_max_consecutive_rounds_same_target_site - 2
mp_damage_headshot_only - 0
mp_damage_scale_ct_body - 1.0
mp_damage_scale_ct_head - 1.0
mp_damage_scale_t_body - 1.0
mp_damage_scale_t_head - 1.0
mp_damage_vampiric_amount - 0
mp_death_drop_c4 - 1
mp_death_drop_defuser - 1
mp_death_drop_grenade - 2
mp_death_drop_gun - 1
mp_deathcam_skippable - 1
mp_default_team_winner_no_objective - -1
mp_defuser_allocation - 0
mp_display_kill_assists - 1
mp_dm_bonus_percent - 50
mp_dm_bonus_respawn - 0
mp_dm_bonusweapon_dogtags - 0
mp_dm_dogtag_score - 0
mp_dm_kill_base_score - 10
mp_dm_teammode - 0
mp_dm_teammode_bonus_score - 1
mp_dm_teammode_dogtag_score - 0
mp_dm_teammode_kill_score - 1
mp_dogtag_despawn_on_killer_death - 1
mp_dogtag_despawn_time - 120
mp_dogtag_pickup_rule - 0
mp_drop_grenade_enable - 0
mp_drop_knife_enable - 0
mp_economy_reset_rounds - 0
mp_equipment_reset_rounds - 0
mp_force_assign_teams - 0
mp_force_pick_time - 15
mp_forcecamera - 1
mp_free_armor - 0
mp_freezetime - 6
mp_friendlyfire - 0
mp_ggprogressive_round_restart_delay - 15.0
mp_ggtr_always_upgrade - 0
mp_ggtr_bomb_defuse_bonus - 1
mp_ggtr_bomb_detonation_bonus - 1
mp_ggtr_bomb_pts_for_flash - 4
mp_ggtr_bomb_pts_for_he - 3
mp_ggtr_bomb_pts_for_molotov - 5
mp_ggtr_bomb_pts_for_upgrade - 2.0
mp_ggtr_bomb_respawn_delay - 0.0
mp_ggtr_end_round_kill_bonus - 1
mp_ggtr_halftime_delay - 0.0
mp_ggtr_last_weapon_kill_ends_half - 0
mp_give_player_c4 - 1
mp_global_damage_per_second - 0.0
mp_guardian_bot_money_per_wave - 800
mp_guardian_force_collect_hostages_timeout - 50
mp_guardian_loc_icon - missing cvar specified in bspconvar_whitelist.txt
mp_guardian_loc_string_desc -
mp_guardian_loc_string_hud - #guardian_mission_type_kills
mp_guardian_loc_weapon -
mp_guardian_player_dist_max - 2000
mp_guardian_player_dist_min - 1300
mp_guardian_special_kills_needed - 10
mp_guardian_special_weapon_needed - awp
mp_guardian_target_site - -1
mp_guardian_force_collect_hostages_timeout - 50
mp_guardian_give_random_grenades_to_bots - 1
mp_guardian_ai_bt_difficulty_adjust_wave_interval - 1
mp_guardian_ai_bt_difficulty_max_next_level_bots - 3
mp_guardian_ai_bt_difficulty_cap_beginning_round - 2
mp_guardian_ai_bt_difficulty_initial_value - 2
mp_halftime - 0
mp_halftime_pausetimer - 0
mp_heavyassaultsuit_aimpunch - 1.0
mp_heavyassaultsuit_cooldown - 5
mp_heavyassaultsuit_deploy_timescale - 0.8
mp_heavyassaultsuit_speed - 130
mp_heavybot_damage_reduction_scale - 1.0
mp_hostagepenalty - 10
mp_hostages_max - 2
mp_hostages_spawn_force_positions -
mp_hostages_spawn_same_every_round - 1
mp_items_prohibited -
mp_limitteams - 2
mp_match_can_clinch - 1
mp_match_end_changelevel - 0
mp_max_armor - 2
mp_maxmoney - 16000
mp_maxrounds - 0
mp_molotovusedelay - 15.0
mp_only_cts_rescue_hostages - 1
mp_plant_c4_anywhere - 0
mp_playercashawards - 1
mp_radar_showall - 0
mp_randomspawn - 0
mp_randomspawn_dist - 0
mp_randomspawn_los - 1
mp_respawn_immunitytime - 4.0
mp_respawn_on_death_ct - 0
mp_respawn_on_death_t - 0
mp_respawnwavetime_ct - 10.0
mp_respawnwavetime_t - 10.0
mp_round_restart_delay - 7.0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime_hostage - 0
mp_solid_teammates - 1
mp_starting_losses - 0
mp_startmoney - 800
mp_suicide_penalty - 1
mp_t_default_grenades -
mp_t_default_melee - weapon_knife
mp_t_default_primary -
mp_t_default_secondary - weapon_glock
mp_tagging_scale - 1.0
mp_taser_recharge_time - -1
mp_teamcashawards - 1
mp_teammates_are_enemies - 0
mp_technical_timeout_per_team - 0
mp_technical_timeout_duration_s - 0
mp_timelimit - 5
mp_use_respawn_waves - 0
mp_warmup_pausetimer - 0
mp_warmuptime - 30
mp_warmuptime_all_players_connected - 0
mp_weapon_self_inflict_amount - 0
mp_weapons_allow_heavy - -1
mp_weapons_allow_heavyassaultsuit - 0
mp_weapons_allow_map_placed - 0
mp_weapons_allow_pistols - -1
mp_weapons_allow_rifles - -1
mp_weapons_allow_smgs - -1
mp_weapons_allow_typecount - 5
mp_weapons_allow_zeus - 1
mp_weapons_glow_on_ground - 0
mp_weapons_max_gun_purchases_per_weapon_per_match - -1
mp_win_panel_display_time - 3
occlusion_test_async - 0
spec_freeze_panel_extended_time - 0.0
spec_freeze_time - 3.0
spec_replay_bot - 0
spec_replay_enable - 0
spec_replay_leadup_time - 5.3438
sv_accelerate - 5.5
sv_air_pushaway_dist - 0
sv_airaccelerate - 12
sv_allow_votes - 1
sv_alltalk - 0
sv_arms_race_vote_to_restart_disallowed_after - 0
sv_auto_adjust_bot_difficulty - 1
sv_auto_full_alltalk_during_warmup_half_end - 1
sv_autobunnyhopping - 0
sv_autobuyammo - 0
sv_bot_buy_decoy_weight - 1
sv_bot_buy_flash_weight - 1
sv_bot_buy_grenade_chance - 33
sv_bot_buy_hegrenade_weight - 6
sv_bot_buy_molotov_weight - 1
sv_bot_buy_smoke_weight - 1
sv_bots_force_rebuy_every_round - 0
sv_bots_get_easier_each_win - 0
sv_bots_get_harder_after_each_wave - 0
sv_bounce - 0
sv_buy_status_override - -1
sv_deadtalk - 0
sv_disable_immunity_alpha - 0
sv_disable_radar - 0
sv_disable_show_team_select_menu - missing cvar specified in bspconvar_whitelist.txt
sv_duplicate_playernames_ok - 0
sv_enablebunnyhopping - 0
sv_env_entity_makers_enabled - 1
sv_extract_ammo_from_dropped_weapons - 0
sv_falldamage_scale - 1
sv_falldamage_to_below_player_multiplier - 1
sv_falldamage_to_below_player_ratio - 0
sv_force_reflections - 0
sv_friction - 5.2
sv_grassburn - 0
sv_gravity - 800
sv_guardian_extra_equipment_ct -
sv_guardian_extra_equipment_t -
sv_guardian_health_refresh_per_wave - 50
sv_guardian_heavy_all - 0
sv_guardian_heavy_count - 0
sv_guardian_max_wave_for_heavy - 0
sv_guardian_min_wave_for_heavy - 0
sv_guardian_refresh_ammo_for_items_on_waves -
sv_guardian_reset_c4_every_wave - 0
sv_guardian_respawn_health - 50
sv_guardian_spawn_health_ct - 100
sv_guardian_spawn_health_t - 100
sv_health_approach_enabled - 0
sv_health_approach_speed - 10
sv_hegrenade_damage_multiplier - 1
sv_hegrenade_radius_multiplier - 1
sv_hide_roundtime_until_seconds - missing cvar specified in bspconvar_whitelist.txt
sv_highlight_distance - 500
sv_highlight_duration - 3.5
sv_ignoregrenaderadio - 0
sv_infinite_ammo - 0
sv_knife_attack_extend_from_player_aabb - 0
sv_maxspeed - 320
sv_maxvelocity - 3500
sv_occlude_players - 1
sv_outofammo_indicator - 0
sv_show_ragdoll_playernames - missing cvar specified in bspconvar_whitelist.txt
sv_show_team_equipment_force_on - 0
sv_staminajumpcost - .080
sv_staminalandcost - .050
sv_stopspeed - 80
sv_talk_enemy_dead - 0
sv_talk_enemy_living - 0
sv_teamid_overhead_maxdist - 0
sv_teamid_overhead_maxdist_spec - 0
sv_versus_screen_scene_id - 0
sv_vote_to_changelevel_before_match_point - 0
sv_warmup_to_freezetime_delay - 4
sv_water_movespeed_multiplier - 0.8
sv_water_swim_mode - 0
sv_wateraccelerate - 10
sv_waterfriction - 1
sv_weapon_encumbrance_per_item - 0.85
sv_weapon_encumbrance_scale - 0
tv_delay - 10
tv_delay1 - 15
weapon_accuracy_nospread - 0
weapon_air_spread_scale - 1.0
weapon_max_before_cleanup - 0
weapon_recoil_scale - 2.0
weapon_reticle_knife_show - 1
weapon_sound_falloff_multiplier - 1.0
sv_camera_fly_enabled - missing cvar specified in bspconvar_whitelist.txt
Executing dedicated server config file
exec: couldn't exec server.cfg
Stopping 0 worker threads
Starting 1 worker threads
1 threads. 1,729,366 ticks
exec: couldn't exec gamemode_deathmatch_server.cfg
PrecacheScriptSound 'Survival.VO.Taunt4a' failed, no such sound script entry
PrecacheScriptSound 'Snowball.Bounce' failed, no such sound script entry
CHostage::Precache: missing hostage models for map de_lake. Adding the default models.
PrecacheScriptSound 'balkan_epic_blank' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.omw_to_plant_a_04' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_ramp_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_back_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_platform_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_catwalk_03' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_enemy_spawn_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_doubledoors_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_front_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_overpass_03' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_palace_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_stairs_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_snipers_nest_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_connector_01' failed, no such sound script entry
PrecacheScriptSound 'professional_epic.loc_door_01' failed, no such sound script entry
Commentary: Could not find commentary data file 'maps/de_lake_commentary.txt'.
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Initializing Steam libraries for INSECURE Internet server. Authentication and VAC not requested.
[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
src/clientdll/applicationmanager.cpp (4252) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
src/clientdll/applicationmanager.cpp (4252) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
No minidump written, nothing to upload.
src/clientdll/applicationmanager.cpp (4252) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
src/clientdll/applicationmanager.cpp (4252) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
src/clientdll/applicationmanager.cpp (4417) : Assertion Failed: m_vecInstallBaseFolders.Count() > 0
src/clientdll/applicationmanager.cpp (4417) : Assertion Failed: m_vecInstallBaseFolders.Count() > 0
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
RecordSteamInterfaceCreation (PID 38): SteamGameServer013 /
RecordSteamInterfaceCreation (PID 38): SteamUtils010 /
Setting breakpad minidump AppID = 730
dlopen failed trying to load:
/home/road_runner/.steam/sdk32/steamclient.so
with error:
/home/road_runner/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Setting breakpad minidump AppID = 740
RecordSteamInterfaceCreation (PID 38): SteamGameServer013 /
RecordSteamInterfaceCreation (PID 38): SteamUtils010 /
RecordSteamInterfaceCreation (PID 38): SteamNetworking006 /
RecordSteamInterfaceCreation (PID 38): SteamGameServerStats001 /
RecordSteamInterfaceCreation (PID 38): STEAMHTTP_INTERFACE_VERSION003 /
RecordSteamInterfaceCreation (PID 38): STEAMINVENTORY_INTERFACE_V003 /
RecordSteamInterfaceCreation (PID 38): STEAMUGC_INTERFACE_VERSION014 /
RecordSteamInterfaceCreation (PID 38): STEAMAPPS_INTERFACE_VERSION008 /
Logging into Steam gameserver account with logon token '4231YF0Dxxxxxxxxxxxxxxxxxxxxxxxx'
Initialized low level socket/threading support.
RecordSteamInterfaceCreation (PID 38): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 38): SteamNetworkingSocketsSerialized004 /
RecordSteamInterfaceCreation (PID 38): SteamGameServer012 / GameServer
RecordSteamInterfaceCreation (PID 38): STEAMHTTP_INTERFACE_VERSION003 / HTTP
Set SteamNetworkingSockets P2P_STUN_ServerList to '' as per SteamNetworkingSocketsSerialized
SteamDatagramServer_Init succeeded
RecordSteamInterfaceCreation (PID 38): SteamGameServer013 /
RecordSteamInterfaceCreation (PID 38): SteamUtils010 /
RecordSteamInterfaceCreation (PID 38): SteamNetworking006 /
RecordSteamInterfaceCreation (PID 38): SteamGameServerStats001 /
RecordSteamInterfaceCreation (PID 38): STEAMHTTP_INTERFACE_VERSION003 /
RecordSteamInterfaceCreation (PID 38): STEAMINVENTORY_INTERFACE_V003 /
RecordSteamInterfaceCreation (PID 38): STEAMUGC_INTERFACE_VERSION014 /
RecordSteamInterfaceCreation (PID 38): STEAMAPPS_INTERFACE_VERSION008 /
RecordSteamInterfaceCreation (PID 38): SteamGameCoordinator001 /
RecordSteamInterfaceCreation (PID 38): SteamGameServer013 / GameServer
RecordSteamInterfaceCreation (PID 38): SteamUtils010 / Utils
Connection to Steam servers successful.
Public IP is Some IP
Assigned persistent gameserver Steam ID [G:1:*******].
Gameserver logged on to Steam, assigned identity steamid:*****************
Set SteamNetworkingSockets P2P_STUN_ServerList to 'Some IP' as per SteamNetworkingSocketsSerialized
VAC secure mode disabled.
GC Connection established for server version 1277, instance idx 1
meta
Unknown command "meta"

Ive tryed old and new versions of Metamod (devbuilds too)
Im running CSGO in a Docker Contianer the host runns Debian The Container Ubuntu

Dota 2 linux segfault

Hi, I'm trying to run dota 2 dedicated server with metamod on ubuntu 16.04 (x64) but when i try to start server with metamod added it dies almost immediately with "Segmentation fault (core dumped)" error. If I remove mm binaries server starts without any problems.

I've tried using clean system as well as rebuilding metamod myself (without any errors) with no luck. I'm not too good with linux debugging so I can't track the error myself. Do you have any idea what's going on?

Complete log using WSL (same happens on a real machine):

stanr@DESKTOP-LMMI8P3:/mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64$ /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/dota2 -dedicated

Console initialized.
Using breakpad crash handler
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
Setting breakpad minidump AppID = 373310
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/stanr/.steam/sdk64/steamclient.so
with error:
/home/stanr/.steam/sdk64/steamclient.so: cannot open shared object file: No such file or directory
dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: cannot open shared object file: No such file or directory
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
ERROR: HangWatchdogInternal_BeginScope() - Hang watchdog not implemented for this platform!
ERROR: HangWatchdogInternal_EndScope() - Hang watchdog not implemented for this platform!
---------------
Path ID:             File Path:
ADDONS               "/mnt/c/Projects/Stuff/dota2/game/dota_addons/"
CONTENT              "/mnt/c/Projects/Stuff/dota2/content/dota/addons/metamod/"
CONTENT              "/mnt/c/Projects/Stuff/dota2/content/dota/"
CONTENT              "/mnt/c/Projects/Stuff/dota2/content/core/"
CONTENTADDONS        "/mnt/c/Projects/Stuff/dota2/content/dota_addons/"
CONTENTROOT          "/mnt/c/Projects/Stuff/dota2/content/"
DEFAULT_WRITE_PATH   "/mnt/c/Projects/Stuff/dota2/game/dota/addons/metamod/"
EXECUTABLE_PATH      "/mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/"
GAME                 "/mnt/c/Projects/Stuff/dota2/game/dota/pak01.vpk" (vpk) /mnt/c/Projects/Stuff/dota2/game/dota/pak01.vpk
GAME                 "/mnt/c/Projects/Stuff/dota2/game/core/pak01.vpk" (vpk) /mnt/c/Projects/Stuff/dota2/game/core/pak01.vpk
GAME                 "/mnt/c/Projects/Stuff/dota2/game/dota/shaders_pc.vpk" (vpk) /mnt/c/Projects/Stuff/dota2/game/dota/shaders_pc.vpk
GAME                 "/mnt/c/Projects/Stuff/dota2/game/core/shaders_pc.vpk" (vpk) /mnt/c/Projects/Stuff/dota2/game/core/shaders_pc.vpk
GAME                 "/mnt/c/Projects/Stuff/dota2/game/dota/addons/metamod/"
GAME                 "/mnt/c/Projects/Stuff/dota2/game/dota/"
GAME                 "/mnt/c/Projects/Stuff/dota2/game/core/"
GAMEBIN              "/mnt/c/Projects/Stuff/dota2/game/dota/addons/metamod/bin/linuxsteamrt64/"
GAMEBIN              "/mnt/c/Projects/Stuff/dota2/game/dota/addons/metamod/bin/"
GAMEBIN              "/mnt/c/Projects/Stuff/dota2/game/dota/bin/linuxsteamrt64/"
GAMEBIN              "/mnt/c/Projects/Stuff/dota2/game/dota/bin/"
GAMEBIN              "/mnt/c/Projects/Stuff/dota2/game/core/bin/linuxsteamrt64/"
GAMEBIN              "/mnt/c/Projects/Stuff/dota2/game/core/bin/"
GAMEROOT             "/mnt/c/Projects/Stuff/dota2/game/"
MOD                  "/mnt/c/Projects/Stuff/dota2/game/dota/pak01.vpk" (vpk) /mnt/c/Projects/Stuff/dota2/game/dota/pak01.vpk
MOD                  "/mnt/c/Projects/Stuff/dota2/game/dota/"
PLATFORM             "/mnt/c/Projects/Stuff/dota2/game/core/pak01.vpk" (vpk) /mnt/c/Projects/Stuff/dota2/game/core/pak01.vpk
PLATFORM             "/mnt/c/Projects/Stuff/dota2/game/core/"
SHADER_SOURCE        "/mnt/c/Projects/Stuff/dota2/src/shaders/dota/addons/metamod/"
SHADER_SOURCE        "/mnt/c/Projects/Stuff/dota2/src/shaders/dota/"
SHADER_SOURCE        "/mnt/c/Projects/Stuff/dota2/src/shaders/core/"
SHADER_SOURCE        "/mnt/c/Projects/Stuff/dota2/src/shaders/dota_addons/"
SHADER_SOURCE        "/mnt/c/Projects/Stuff/dota2/src/shaders/dota_core/"
SHADER_SOURCE_MOD    "/mnt/c/Projects/Stuff/dota2/src/shaders/dota/addons/metamod/"
SHADER_SOURCE_ROOT   "/mnt/c/Projects/Stuff/dota2/src/shaders/"
command line arguments:
-dedicated
Network System Initialized
192.168.2.144: eth1
10.8.0.6: eth0
127.0.0.1: lo
Segmentation fault (core dumped)

Crash on server shutdown

Sometimes when the server shutdown, I get a crash. The server is restarted with the _restart command. MetaMod 1.11.1144

Backtrace:

#0  0xf00df78b in SourceHook::CPageAlloc::Free(void*) () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/metamod.2.l4d2.so
#1  0xf00e0560 in SourceHook::Impl::GenContext::~GenContext() () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/metamod.2.l4d2.so
#2  0xf00e635f in SourceHook::Impl::CHookManagerAutoGen::~CHookManagerAutoGen() () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/metamod.2.l4d2.so
#3  0xf7cfbdf5 in __cxa_finalize () from /lib32/libc.so.6
#4  0xf00d1b03 in __do_global_dtors_aux () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/metamod.2.l4d2.so
#5  0xf7ef0c3c in ?? () from /lib/ld-linux.so.2
#6  0xf7ef1643 in ?? () from /lib/ld-linux.so.2
#7  0xf7dff45c in _dl_catch_exception () from /lib32/libc.so.6
#8  0xf7dff500 in _dl_catch_error () from /lib32/libc.so.6
#9  0xf7ecaa71 in ?? () from /lib32/libdl.so.2
#10 0xf7eca411 in dlclose () from /lib32/libdl.so.2
#11 0xf6b1a4ac in mm_UnloadLibrary(void*) () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/server.so
#12 0xf6b1851f in mm_UnloadMetamodLibrary() () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/server.so
#13 0xf6b19de9 in ServerPlugin::Unload() () from /home/user/l4d2_coop/left4dead2/addons/metamod/bin/server.so
#14 0xf720811c in CPlugin::Unload() () from /home/user/l4d2_coop/bin/engine_srv.so
#15 0xf72088b9 in CServerPlugin::UnloadPlugins() () from /home/user/l4d2_coop/bin/engine_srv.so
#16 0xf71fb6d5 in SV_ShutdownGameDLL() () from /home/user/l4d2_coop/bin/engine_srv.so
#17 0xf7215142 in CModAppSystemGroup::Main() () from /home/user/l4d2_coop/bin/engine_srv.so
#18 0xf726a028 in CAppSystemGroup::Run() () from /home/user/l4d2_coop/bin/engine_srv.so
#19 0xf7215faf in CDedicatedServerAPI::ModInit(ModInfo_t&) () from /home/user/l4d2_coop/bin/engine_srv.so
#20 0xf74ba845 in CDedicatedAppSystemGroup::Main() () from bin/dedicated_srv.so
#21 0xf74db498 in CAppSystemGroup::Run() () from bin/dedicated_srv.so
#22 0xf74db498 in CAppSystemGroup::Run() () from bin/dedicated_srv.so
#23 0xf7485197 in main () from bin/dedicated_srv.so
#24 0x08048722 in main ()

Fix GetCommandLineValue

ICvar::GetCommandLineValue was removed in csgo.
alliedmodders/hl2sdk#61
Problem code:
https://github.com/alliedmodders/metamod-source/blob/master/core/provider/provider_ep2.cpp#L322
We can replicate original GetCommandLineValue in provider. Original:
https://github.com/VSES/SourceEngine2007/blob/master/src_main/vstdlib/cvar.cpp#L461

My code version to pull in metamod master and 1.10

const char *BaseProvider::GetCommandLineValue(const char *key, const char *defval)
{
	if (key[0] == '-' || key[0] == '+')
	{
		return CommandLine()->ParmValue(key, defval);
	}
#if SOURCE_ENGINE == SE_CSGO
	size_t len = strlen(key);
	char *search = new char[len + 2];
	search[0] = '+';
	memcpy(&search[1], key, len + 1);
	const char *value = CommandLine()->ParmValue(search, defval);
	delete[] search;
	return value;
#else
	else if (icvar)
	{
		const char *val;
		if ((val = icvar->GetCommandLineValue(key)) == NULL)
		{
			return defval;
		}

		return val;
	}

	return NULL;
#endif
}

And i noticed that function return NULL if no icvar interface, but i think it must to return defval in this case, isn't it? (bug?)

[Dota 2] Unable to load plugins

Hey.
When i'm using regular steam dota setup MM fails to load addons because of whitespaces in a path, but when i'm using path without them MM still fails to load plugins but silently.
The only way to load plugins is by manually typing "meta load /absolute/path/to/plugin.so", relative paths don't work either.

Not sure when exactly it stopped working.

Linux, x64

Linux Dota 2 Metamod segfault on shutdown

Thread 1 "dota2" received signal SIGSEGV, Segmentation fault.
0x00007fffefc13de0 in ?? ()
(gdb) bt
#0  0x00007fffefc13de0 in ?? ()
#1  0x00007ffffcb59572 in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libvstdlib.so
#2  0x00007ffff44de323 in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#3  0x00007ffff44debdc in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#4  0x00007ffff3e61968 in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#5  0x00007ffff3e67e04 in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#6  0x00007ffff320cfa3 in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#7  0x00007ffffd4e29e2 in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#8  0x00007ffffd4d81bb in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#9  0x00007ffff4668606 in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#10 0x00007ffff359f083 in ?? ()
   from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/../../dota/bin/linuxsteamrt64/libserver.so
#11 0x00007ffff66e3a78 in ISource2Server::Shutdown (this=0x7ffff63e9de0)
    at /mnt/c/Projects/Stuff/metamod/loader/gamedll.cpp:439
#12 0x00007ffffd7d7cad in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#13 0x00007ffffd7d89df in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#14 0x00007ffffd59e481 in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#15 0x00007ffffd4c8bab in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#16 0x00007ffffd4c9149 in Source2Main () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#17 0x000000000800118f in ?? ()
#18 0x00007ffffe870830 in __libc_start_main (main=0x80010c0, argc=8, argv=0x7ffffffde3c8, init=<optimized out>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffffffde3b8) at ../csu/libc-start.c:291
#19 0x0000000008001225 in _start ()
(gdb)

If I remove all MM plugins backtrace becomes smaller

Thread 1 "dota2" received signal SIGSEGV, Segmentation fault.
0x00007ffffcb61832 in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libvstdlib.so
(gdb) bt
#0  0x00007ffffcb61832 in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libvstdlib.so
#1  0x00007ffff0825f90 in ?? () from /mnt/c/Projects/Stuff/dota2/game/dota/bin/linuxsteamrt64/libhost.so
#2  0x00007ffffd7d7cad in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#3  0x00007ffffd7d89df in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#4  0x00007ffffd59e481 in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#5  0x00007ffffd4c8bab in ?? () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#6  0x00007ffffd4c9149 in Source2Main () from /mnt/c/Projects/Stuff/dota2/game/bin/linuxsteamrt64/libengine2.so
#7  0x000000000800118f in ?? ()
#8  0x00007ffffe870830 in __libc_start_main (main=0x80010c0, argc=8, argv=0x7ffffffde3c8, init=<optimized out>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffffffde3b8) at ../csu/libc-start.c:291
#9  0x0000000008001225 in _start ()
(gdb)

At that point I thought it's dota issue, but if I remove metamod completely dota starts and stops properly without segfaulting.

Tested on WSL Ubuntu and Debian 9 Minimal.

Build fails with XCode 10, which removed libstdc++ headers

To reproduce:

  1. Checkout Metamod:Source on a Mac machine with XCode 10+
  2. Run configure.py
  3. Run ambuild in obj-mac-x86

Expected:
Build finishes without error

Actual:

warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

...

fatal error: 'new' file not found
#include <new>

Note that Apple wrongly suggests setting -std=libc++, which is invalid for clang and will cause the build to fail.

Possible fix:
Transition to libc++ as default libc on Mac targets by changing cxx.cflags in AMBuildScript.

Add '-stdlib=libc++', bump -mmacosx-version-min to 10.9.

Need to bump -mmacosx-version-min or build fails with error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later). Note that 10.7 is not sufficient as clang will warn that warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9.

bring back support for IServerPluginCallbacks v3 and v4

Hi I saw we had to revert 4e5ddf8 in 0e35864 due to #101

Are there any plans to bring it back?
This is a critical feature for us and we'd be happy to invest some time from our side to find a solution to avoid a fork, but would need some guidance on how to make this work (personally I don't have access to a Windows machine)

Could we conditionally enable them only for Linux or certain games?

Metamod won't load after game update

After the most recent game update for Military Conflict Vietnam, Metamod shows the following error in the metamod-fatal.log:

Detected engine 25 but could not load: The specified module could not be found.

Ship Win64 binaries (for Source 2)

We currently don't ship 64-bit Windows binaries. I don't believe we can easily build them at the same time at the 32-bit ones due to limitations in the MSVC toolchain and AMBuild, but worst case, we could ship a separate package, built on a separate slave instance.

Source 2 needs bins in linuxsteamrt64 instead of linux64

For Source 2, the binaries need to be available in addons/metamod/bin/linuxsteamrt64 instead of addons/metamod/bin/linux64 (how we currently ship).

I'm not sure how to best create a copy of them in AMBuild. The linux64 folder is still needed for Source 1 64-bit.

website down

Website seems down, and I don't know anywhere else to put this.

[Contagion] Could not get IServerPluginCallbacks interface

Metamod doesn't seem to load on Contagion.
Error is: Could not get IServerPluginCallbacks interface from plugin "../contagion/addons/metamod/bin/server"

Tested with SM 1.10.6524 and MM 1.11.1145 on Windows 10 with a default installation. Not sure if this matters but Contagion is only available on Windows and 64 Bit only.

Fix Dota2 Please

peaple are waiting for metamod fixes for using with Dota2
please make some magic for us

Failed to open (the proper server.so for CSGO?) metamod.2.csgo.so?

We built a new server for our game servers (HP Proliant DL360p Gen8 with Debian 10.9) But for months this was noted in the server consoles for SM for god knows how long. It was noted this has to do with the 64bit class, but for CSGO there is its own file to load, yet somehow the file is not being called on. I just got the source, I will take a peek sometime, but something tells me it is not going to be that obvious, but to be unable to detect what engine is running seems to be a simple thing to do when one is a regular programmer? But the message below is seen in both CSGO and CSS server with MM:S.

 failed to dlopen /home/gameuser/servers/csgo_sh/csgo/addons/metamod/bin/linux64/server.so error=/home/gameuser/servers/csgo_sh/csgo/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
Unable to load plugin "addons/metamod/bin/linux64/server"

At first I noticed the files were not there, so I staged them to the location for this CS:GO server. To my surprise there is a file in there JUST for CS:GO but it never calls it. To me this is an issue, as it seems CS:GO is really not getting the FULL function of MM:S as it should and may not be talking to SM properly either as it relies on the functions it is calling for to be there. Yet, the server still runs, but to me it seems to run a bit buggy with hit and misses mostly misses) causing me headaches for days on end. We look for error free servers, but this just depends on how good of a core we can build our servers on.

Best Regards,
Krillin

"srcds_linux" received signal SIGSEGV, Segmentation fault.

Platform: Ubuntu 22.04

Mod: Day of Defeat: Source.

Metamod:Source Version Information
Metamod:Source version 1.11.0-dev+1145
Plugin interface version: 16:14
SourceHook version: 5:5
Loaded As: Valve Server Plugin
Compiled on: Jul 11 2021 22:33:04
Built from: 0bb53f2
Build ID: 1145:0bb53f2
http://www.metamodsource.net/

SourceMod Version Information:
SourceMod Version: 1.11.0.6926
SourcePawn Engine: 1.11.0.6926, jit-x86 (build 1.11.0.6926)
SourcePawn API: v1 = 5, v2 = 16
Compiled on: Dec 20 2022 14:00:51
Built from: alliedmodders/sourcemod@fd63fff8
Build ID: 6926:fd63fff8
http://www.sourcemod.net/

I'm also running RCBot2:
meta list
Listing 3 plugins:
[01] RCBot2 (1.4 (apg-nosoop-caxanga334)-2cb61a96) by Cheeseh, RoboCop, nosoop, caxanga334
[02] SourceMod (1.11.0.6926) by AlliedModders LLC
[03] SDK Tools (1.11.0.6926) by AlliedModders LLC

The server is running 18 bots (no humans) and crashes at random times.

Output from gdb:
Thread 1 "srcds_linux" received signal SIGSEGV, Segmentation fault.
0xf2905149 in CPhysicsProp::CreateVPhysics() () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
(gdb) where
#0 0xf2905149 in CPhysicsProp::CreateVPhysics() () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#1 0xf290a24c in CPhysicsProp::Spawn() () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#2 0xf29189a4 in CPhysicsPropMultiplayer::Spawn() () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#3 0xf299d507 in DispatchSpawn(CBaseEntity*) () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#4 0xf288430d in SpawnAllEntities(int, HierarchicalSpawn_t*, bool) () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#5 0xf2885326 in MapEntity_ParseAllEntities(char const*, IMapEntityFilter*, bool) () from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#6 0xf285ccdf in CServerGameDLL::LevelInit(char const*, char const*, char const*, char const*, bool, bool) ()
from /home/dodsserver/serverfiles/dod/bin/server_srv.so
#7 0xee9a00c8 in __SourceHook_MFHCls_SGD_LevelInit::Func(char const*, char const*, char const*, char const*, bool, bool) ()
from /home/dodsserver/serverfiles/dod/addons/metamod/bin/metamod.2.dods.so
#8 0xeb98073f in SourceModBase::LevelInit(char const*, char const*, char const*, char const*, bool, bool) ()
from /home/dodsserver/serverfiles/dod/addons/sourcemod/bin/sourcemod.2.dods.so
#9 0xeb9824a1 in __SourceHook_FHCls_IServerGameDLLLevelInitfalse::CMyDelegateImpl::Call(char const*, char const*, char const*, char const*, bool, bool) ()
from /home/dodsserver/serverfiles/dod/addons/sourcemod/bin/sourcemod.2.dods.so
#10 0xee9a0046 in __SourceHook_MFHCls_SGD_LevelInit::Func(char const*, char const*, char const*, char const*, bool, bool) ()
from /home/dodsserver/serverfiles/dod/addons/metamod/bin/metamod.2.dods.so
#11 0xf67b5330 in CServerPlugin::LevelInit(char const*, char const*, char const*, char const*, bool, bool) () from /home/dodsserver/serverfiles/bin/engine_srv.so
#12 0xf6728d03 in Host_Changelevel(bool, char const*, char const*) () from /home/dodsserver/serverfiles/bin/engine_srv.so
#13 0xf67347d5 in CHostState::State_ChangeLevelMP() () from /home/dodsserver/serverfiles/bin/engine_srv.so
#14 0xf6734c41 in CHostState::FrameUpdate(float) () from /home/dodsserver/serverfiles/bin/engine_srv.so
#15 0xf6734d19 in HostState_Frame(float) () from /home/dodsserver/serverfiles/bin/engine_srv.so
#16 0xf67c64ee in CEngine::Frame() () from /home/dodsserver/serverfiles/bin/engine_srv.so
#17 0xf67c37b6 in CDedicatedServerAPI::RunFrame() () from /home/dodsserver/serverfiles/bin/engine_srv.so
#18 0xf737b432 in ?? ()
#19 0xf67c38ad in CModAppSystemGroup::Main() () from /home/dodsserver/serverfiles/bin/engine_srv.so
#20 0xf6804820 in CAppSystemGroup::Run() () from /home/dodsserver/serverfiles/bin/engine_srv.so
#21 0xf67c459f in CDedicatedServerAPI::ModInit(ModInfo_t&) () from /home/dodsserver/serverfiles/bin/engine_srv.so
#22 0xf737b1b3 in ?? ()
#23 0xf739cb10 in ?? ()
#24 0xf739cb10 in ?? ()
#25 0xf73453f6 in ?? ()
#26 0x080489b9 in main ()

Failed to load plugin "addons/metamod/bin/server"

I been trying to get metamod to work on my installation so I can play on a listen server.
I'm in a 64bit Linux, I have the latest build 1144 in the addons folder and I'm using -insecure. plugin_load returns:
Failed to load plugin "addons/metamod/bin/server
Unable to load plugin "addons/metamod/bin/server
Would be great to know what's causing it to fail.

After upgrade Fedora to 33, metamod not working.

[root@localhost bin]# pwd
/root/CSGODS/csgo/addons/metamod/bin
[root@localhost bin]# cat metamod-fatal.log 
L 08/05/2021 - 16:09:08: Detected engine 11 but could not load: /root/CSGODS/bin/libgcc_s.so.1: version `GCC_7.0.0' not found (required by /lib/libstdc++.so.6)
L 08/05/2021 - 16:14:56: Detected engine 11 but could not load: /root/CSGODS/bin/libgcc_s.so.1: version `GCC_7.0.0' not found (required by /lib/libstdc++.so.6)
L 08/05/2021 - 17:55:14: Detected engine 11 but could not load: /root/CSGODS/bin/libgcc_s.so.1: version `GCC_7.0.0' not found (required by /lib/libstdc++.so.6)
[root@localhost bin]# cat /etc/os-release 
NAME=Fedora
VERSION="34 (Server Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Server Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/34/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=34
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=34
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server
[root@localhost bin]# uname -a
Linux localhost.localdomain 5.13.6-200.fc34.x86_64 #1 SMP Wed Jul 28 15:31:21 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost bin]# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.2.1-20210728/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC) 

Please with some help.

[SDK 2013 MP / Windows] Dedicated server won't start anymore with MM v1.12 git-1166

Game/version: Zombie Panic! Source v3.2.6
Engine branch: Source SDK 2013 Multiplayer
Dedicated server AppID: 17505
Platform: Windows

Starting a Zombie Panic! Source dedicated server with Metamod: Source v1.12 git-1166 is no longer possible and causes an engine error popup to appear with the text: "NUM_FOR_EDICT: bad pointer".

A community server operator sent me crash dumps and the call stack is pointing here when the game rules class is creating the team_manager entities.

This issue cannot be reproduced with build 1165 and lower. Tested both with and without a SourceMod installation.

Failed to load plugin "addons/metamod/bin/server.so"

Hi,

i'm trying to run a CS:GO Server on Ubuntu 22.04. Currently, I'm unable to load metasource. The error is create pipe failed.Failed to load plugin "addons/metamod/bin/server.so". Not sure how I could debug this.

Server is hibernating
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API] SteamAPI_Init(): Loaded '/home/steam/steamcmd/linux32/steamclient.so' OK.
[S_API FAIL] SteamAPI_Init() failed; create pipe failed.Failed to load plugin "addons/metamod/bin/server.so"
maxplayers set to 64

Using 1.11.0-git1148

Insurgency Update has broken MetaMod

L 05/04/2018 - 17:49:26: [META] Could not open folder "/home/xxx/games/insurgency/insurgency/????`M??" (No such file or directory)
L 05/04/2018 - 17:49:26: [META] Loaded 0 plugins.

open("/home/xxx/games/insurgency/insurgency/\310\21s\367", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/xxx/games/insurgency/insurgency/\210\354\317\362`\255\347\362\1", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

The bytes in the path appear to change suggesting it's referencing incorrect memory address.

A bit lost on setting this up with CSS listenserver

Good afternoon!

I'm trying to get this running on my PopOS 22.04 (x64) installation to play CSS on a listenserver. CSS is the current latest steam version. However, I currently have no idea how to move things along due to this error in the logs:

L 08/26/2023 - 03:22:22: Detected engine 5 but could not load: libvstdlib_srv.so: cannot open shared object file: No such file or directory

I have installed the 32 bit dependencies as listed in the documentation and it doesn't seem to help. Is there anything else I should be doing? I tried with both the latest stable and the latest downloadable dev build.

Thank you!

Metamod is not shipping Linux64 Blade Symphony binaries

Hello
I work for Puny Human Games, we've worked with Alliedmodders before to bring support back to Blade Symphony in our new engine branch and it's working beautifully for x86 Windows (Thank you so much for the help!)

I have done some testing and I have not been able to get the same running on Linux, the latest Metamod build for Linux completely ommits binaries for Blade Symphony on any targets, the same for Sourcemod

Let me know what we can do on our end to help the team to achieve support for Linux64 for Blade

Metamod doesn't seem to run w/ Windows 64bit srcds_x64.exe of Insurgency using DEV 1.11 MM-1105

So I opened an issue thread on sourcemod after the recent insurgency update (5-4-18) which is resolved after I got the 32bit srcds.exe working for DEV 1.11 MM-1105 and Sourcemod 1.10.0-git6275-windows.

However now, anytime I run the same start command with the srcds_x64.exe, metamod and sourcemod don't load. Is this something that can be fixed on metamod side or does NWI have to update the 64bit exe to make it compatible?

I'd really like to take advantage of any 64bit performance gains so it would be nice if MM/SM ran with it.

64-bit server.so fails to load on a Counter-Strike: Source server

I've got a Counter-Strike: Source server packaged in a Docker container that has MetaMod:Source installed. I've got two Synology NAS on which I'm trying to get it up and running, a DS916+ and a DS620slim. Curiously, despite the same container being used on both devices, I get a crash every time I try to bring it up on the DS916+ while it comes up fine on the DS620slim.

The particular error I see when I try to bring it up on the DS916+ indicate that it's (incorrectly I believe) trying to load the 64-bit version of the Metamod binary instead of the 32-bit binary:

failed to dlopen /opt/game/cstrike/../cstrike/addons/metamod/bin/linux64/server.so error=/opt/game/cstrike/../cstrike/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
failed to dlopen /opt/game/hl2/../cstrike/addons/metamod/bin/linux64/server.so error=/opt/game/hl2/../cstrike/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
failed to dlopen /opt/game/bin/../cstrike/addons/metamod/bin/linux64/server.so error=/opt/game/bin/../cstrike/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64

It's possible the issue is somehow triggered by the difference in kernel versions between the two devices--3.10.105 on the DS916+ vs. 4.4.59+ on the DS620slim--but I'm not sure what the exact mechanism would be if that's the case.

How to install for Dota 2?

Hi
I followed the instructions of copying over files to dota 2 beta/game/dota/addons/metamod and modifying the gameinfo.gi file to add GameBin dota/addons/metamod/bin. I used the 1.11 Dev release. However I couldn't get it to work (no output for meta command)
Am I doing something wrong?

Server crash

OS:
Centos 7.3.1611

Engine:
CSGO

SM & MM:S
Sourcemod v1.8.0.6040
Metamod 1.10.7-git961

When I use ForceChangeLevel in the plugins or use changelevel in the server console:
threadtools.cpp (3294) : Assertion Failed: Illegal termination of worker thread 'Thread(0x7088DA48/0x00000810/0x'

It seems to me that the bug lies in the latest version of Metamod Build 961 and you have to go back to the previous old version 959. Please fix problem newest version Metamod.

Unable to load plugin "addons/metamod/bin/linux64/server"

What is this error?

 failed to dlopen /home/serverarena/steamcmd/server/csgo/addons/metamod/bin/linux64/server.so error=/home/serverarena/steamcmd/server/csgo/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
Unable to load plugin "addons/metamod/bin/linux64/server" 

MetaMod doesn't appear to exist

Hi there,
So I have a Debian server machine running a TF2, HL2DM and SDK2013 server. These servers all work perfectly together, and I have never had issues in the past. However, recently I decided I wanted to install SourceMod. I discovered I would need MetaMod for this, so I got to work on installing that. I downloaded the latest stable Linux version, copied it over, and then had a /addons folder in my /tf2 folder. Everything was working perfectly. I started the server, and ran "meta version". However, I was greeted with "Unknown command "meta"". Does anyone know what could cause this?

PS i also tried it with HL2DM. Same issue.

PPS i tried the VPK maker thing with both games, as well as the non-stable dev build with tf2. nothing changed.

Unable to load metamod.

L 08/17/2020 - 05:07:36: Detected engine 17 but could not load: /home/nmrihserver/serverfiles/nmrih/addons/metamod/bin/metamod.2.sdk2013.so: undefined symbol: __pow_finite

getting this error trying to install metamod no more room in hell

GCC4.9+ de-virtualization issues.

https://travis-ci.org/alliedmodders/metamod-source/jobs/405106127

 ./core/sourcehook/test/test_sourcehook/test_sourcehook -v
TestList passed
No error: ModuleInMemory
No error: Part 1
No error: Part 2
FAIL: Should be:
  State_F1_HookAdded; Param1=1
  State_F1_Called
  State_F1_PreHandler_Called; Param1=0xffdf5072
FAIL: Is:
  State_F1_HookAdded; Param1=1
  State_F1_Called
  State_F1_Called
TestBasic FAILED: Part 3
FAIL: Should be:
  State_EatYams_Called; Param1=0
  State_EatYams_Called; Param1=1
  State_EatYams_Handler_Called; Param1=0
  State_EatYams_Called; Param1=0
  State_EatYams_Handler_Called; Param1=1
  State_EatYams_Called; Param1=1
FAIL: Is:
  State_EatYams_Called; Param1=0
  State_EatYams_Called; Param1=1
  State_EatYams_Called; Param1=0
  State_EatYams_Called; Param1=1
TestVafmtAndOverload FAILED: Part 1
No error: Part 1
No error: Part 1.1
No error: Part 2
FAIL: Should be:
  State_Func1H_Called; Param1=0x9edd090
  State_Func1_Called; Param1=0x9edd090
  State_Func2H_Called; Param1=0x9edd090
  State_Func2_Called; Param1=0x9edd098
  State_Func3H_Called; Param1=0x9edd090
  State_Func3_Called; Param1=0x9edd090
  State_Func1H_Called; Param1=0x9edd090
  State_Func1_Called; Param1=0x9edd090
  State_Func2H_Called; Param1=0x9edd090
  State_Func2_Called; Param1=0x9edd098
FAIL: Is:
  State_Func1_Called; Param1=0x9edd090
  State_Func2_Called; Param1=0x9edd098
  State_Func3_Called; Param1=0x9edd090
  State_Func1_Called; Param1=0x9edd090
  State_Func2_Called; Param1=0x9edd098
TestThisPtrOffs FAILED: Part 3
FAIL: Should be:
  State_Func1H_Called
  State_Func1_Called
  State_Func2_Called
  State_Func2H_Called
  State_Func3H_Called
  State_Func3_Called
FAIL: Is:
  State_Func1_Called
  State_Func2_Called
  State_Func3_Called
TestPlugSys FAILED: Part 1.1
No error: Part 1
No error: Part 2.1
No error: Part 3
No error: Part 4
No error: Part 5
No error: Part 6
TestBail passed
FAIL: Should be:
  State_H_C1_F; Param1=0x811391c
  State_H_C1_G; Param1=0x811391c
  State_H_C2_F; Param1=0x8113918
  State_H_C2_G; Param1=0x8113918
  State_H_C3_F; Param1=0x8113914
  State_H_C3_G; Param1=0x8113914
  State_H_C4_F; Param1=0x8113910
  State_H_C4_G; Param1=0x8113910
  State_H_C5_F; Param1=0x811390c
  State_H_C5_G; Param1=0x811390c
  State_H_C6_F; Param1=0x8113908
  State_H_C6_G; Param1=0x8113908
  State_H_C7_F; Param1=0x8113904
  State_H_C7_G; Param1=0x8113904
  State_H_C8_F; Param1=0x8113900
  State_H_C8_G; Param1=0x8113900
  State_C8_G; Param1=0x8113900
  State_C8_F; Param1=0x8113900
  State_C7_G; Param1=0x8113904
  State_C7_F; Param1=0x8113904
  State_C6_G; Param1=0x8113908
  State_C6_F; Param1=0x8113908
  State_C5_G; Param1=0x811390c
  State_C5_F; Param1=0x811390c
  State_C4_G; Param1=0x8113910
  State_C4_F; Param1=0x8113910
  State_C3_G; Param1=0x8113914
  State_C3_F; Param1=0x8113914
  State_C2_G; Param1=0x8113918
  State_C2_F; Param1=0x8113918
  State_C1_G; Param1=0x811391c
  State_C1_F; Param1=0x811391c
FAIL: Is:
  State_C1_F; Param1=0x811391c
TestReentr FAILED: 1
No error: Part 1
No error: Part 1.1
FAIL: Should be:
  State_Func1H_Called; Param1=0x9eded50
  State_Func1_Called; Param1=0x9eded50
  State_Func2H_Called; Param1=0x9eded50; Param2=200
  State_Func2_Called; Param1=0x9eded50; Param2=-2023406815
  State_Func3H_Called; Param1=0x9eded50
  State_Func3_Called; Param1=0x9eded50
  State_Return; Param1=3
  State_Func4H_Called; Param1=0x9eded50; Param2=400
  State_Func4_Called; Param1=0x9eded50; Param2=305419896
  State_Return; Param1=4
FAIL: Is:
  State_Func1_Called; Param1=0x9eded50
  State_Func2_Called; Param1=0x9eded50; Param2=200
  State_Func3_Called; Param1=0x9eded50
  State_Return; Param1=3
  State_Func4_Called; Param1=0x9eded50; Param2=400
  State_Return; Param1=4
TestManual FAILED: Part 2
FAIL: Should be:
  State_H1_Func1; Param1=77
  State_H2_Func1; Param1=5
  State_Func1; Param1=0
  State_HP_Func1; Param1=0; Param2=0x9eddae0
FAIL: Is:
  State_Func1; Param1=77
TestRecall FAILED: Part 1
TestMulti FAILED: g_callcount[0] != 0
No error: Part 1
No error: Part 2
FAIL: Should be:
  State_Result_InHook; Param1=0
  State_Result; Param1=20
  State_Result_InHook; Param1=10
  State_Result; Param1=20
  State_Result_InHook; Param1=11
  State_Result; Param1=20
  State_Result_InHook; Param1=12
  State_Result; Param1=20
FAIL: Is:
  State_Result; Param1=0
  State_Result; Param1=10
  State_Result; Param1=11
  State_Result; Param1=12
TestRef FAILED: Part 3
No error: Part 1
FAIL: Should be:
  State_Func1_Pre1; Param1=0x9eddb5c
  State_Func1; Param1=0x9edd4dc
  State_Func1_Ret; Param1=0x9eddb5c
FAIL: Is:
  State_Func1; Param1=0x9edd4dc
  State_Func1_Ret; Param1=0x9edd4dc
TestRefRet FAILED: Part 2
FAIL: Should be:
  State_Func1_Pre; Param1=0xffdf5088
  State_D1_Func1; Param1=0xffdf5088
  State_Func1_Pre; Param1=0xffdf508c
  State_D1_Func1; Param1=0xffdf508c
  State_D2_Func1; Param1=0xffdf5090
FAIL: Is:
  State_D1_Func1; Param1=0xffdf5088
  State_D1_Func1; Param1=0xffdf508c
  State_D2_Func1; Param1=0xffdf5090
TestVPHooks FAILED: Part 1
TestCPageAlloc passed
No error: GlobCtors
No error: Test0 Part1
FAIL: Should be:
  State_Deleg_0; Param1=1; Param2=0x9edd560; Param3=0; Param4=
  State_Func0; Param1=0x9edd560; Param2=
  State_Deleg_0; Param1=3; Param2=0x9edd560; Param3=1; Param4=
  State_Func0; Param1=0x9edd560; Param2=
FAIL: Is:
  State_Func0; Param1=0x9edd560; Param2=
  State_Func0; Param1=0x9edd560; Param2=
/home/travis/.travis/job_stages: line 78:  6108 Segmentation fault      (core dumped) ./core/sourcehook/test/test_sourcehook/test_sourcehook -v
The command "./core/sourcehook/test/test_sourcehook/test_sourcehook -v" exited with 139.```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.