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

[MCV][Linux] Metamod doesn't load - incorrect library names? #200

Open
Gazyi opened this issue Dec 20, 2024 · 1 comment
Open

[MCV][Linux] Metamod doesn't load - incorrect library names? #200

Gazyi opened this issue Dec 20, 2024 · 1 comment

Comments

@Gazyi
Copy link

Gazyi commented Dec 20, 2024

OS: Ubuntu 22.04.5 LTS
Game Version:

Protocol version 13800 [1980/1980]
Exe version 1.38.0.0 (vietnam)
Exe build: 15:04:58 Dec 16 2024 (9499) (1012110)

Metamod Verisons: 1.12.0.1211 and 2.0.0.1280
Metamod error log:
Detected engine 11 but could not load: libvstdlib_client.so: cannot open shared object file: No such file or directory
Detected engine 11 but could not load: libtier0_client.so: cannot open shared object file: No such file or directory

Dedicated server package doesn't have libvstdlib_client.so and libtier0_client.so, but there're libvstdlib.so and libtier0.so. Copying/renaming them makes Metamod load, but console doesn't print out anything on meta version.

@DrAbcOfficial
Copy link

This is caused by mm_FindPattern in mm_DetermineBackendS1 on Linux not working as expected and thus misidentifying MCV as CSGO

My temporary solution is:
serverplugin.cpp

		/* Backend should already filled in if loaded as gamedll */
		if (gamedll_bridge == NULL)
		{
			mm_GetGameName(game_name, sizeof(game_name));

			mm_backend = mm_DetermineBackendS1(engineFactory, gsFactory, game_name);
			if (mm_backend == MMBackend_Mock)
				strcpy(game_name, "mock");
			 if(mm_backend == MMBackend_CSGO)
				mm_backend = MMBackend_MCV;
		}

		if (mm_backend == MMBackend_UNKNOWN)
		{
			mm_LogFatal("Could not detect engine version");
			return false;
		}

However, this doesn't completely solve the problem, as there are also some issues with library paths in gamedata and KeyValuesSystem symbols

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants