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 update gamedata #2066

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

sapphonie
Copy link
Contributor

NOT DONE YET

@amnestria
Copy link

Environment

  • Operating System version: Debian 11
  • Current SourceMod version: 1.12 Dev
  • Current Metamod: Source version: 1.12 Dev

Description

I am unable to load Metamod due to the following errors:

metamod-fatal.log

L 11/29/2023 - 00:06:50: Detected engine 25 but could not load: /home/container/vietnam/addons/metamod/bin/linux64/metamod.2.mcv.so: undefined symbol: g_pCVar

Console

Failed to load plugin "addons/metamod/bin/linux64/server"
Failed to dlopen /home/container/vietnam/addons/metamod/bin/server.so error=/home/container/vietnam/addons/metamod/bin/server.so: wrong ELF class: ELFCLASS32

@sapphonie
Copy link
Contributor Author

Environment

* Operating System version: Debian 11

* Current SourceMod version: 1.12 Dev

* Current Metamod: Source version: 1.12 Dev

Description

I am unable to load Metamod due to the following errors:

metamod-fatal.log

L 11/29/2023 - 00:06:50: Detected engine 25 but could not load: /home/container/vietnam/addons/metamod/bin/linux64/metamod.2.mcv.so: undefined symbol: g_pCVar

Console

Failed to load plugin "addons/metamod/bin/linux64/server"
Failed to dlopen /home/container/vietnam/addons/metamod/bin/server.so error=/home/container/vietnam/addons/metamod/bin/server.so: wrong ELF class: ELFCLASS32

Try this on metamod source 2.0

Copy link

@Gazyi Gazyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated some Windows signatures and offsets ( Build from 7 February 2024 ).

"LevelShutdown"
{
"library" "server"
"windows64" "IDK"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\xE8\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x48\x8D\x0D\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xE8"

/* Offset into LevelShutdown of gEntList */
"gEntList"
{
"windows64" "IDK"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "13"

"CreateGameRulesObject"
{
"library" "server"
"windows64" "\x55\x8B\xEC\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x6A\x01"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x30\x48\x8B\xF9\x48\x8B\x0D\x2A\x2A\x2A\x2A\x48\x85\xC9"

"CBaseTempEntity"
{
"library" "server"
"windows64" "\x48\x8D\x05\x51\xFD\x3C\x00"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\x48\x8D\x05\x2A\x2A\x2A\x2A\x48\x89\x51\x08\x48\x89\x01\x48\x8B\x05"

"FindEntityByClassname"
{
"library" "server"
"windows64" "\x55\x8B\xEC\x53\x56\x8B\xF1\x8B\x4D\x08\x57\x85\xC9\x74\x2A\x8B\x01\xFF\x50\x08\x8B\x00\x83\xF8\xFF\x75\x2A\xB8\xFF\x1F\x00\x00\x8D\x04\x40\x8B\x74\xC6\x10\xEB\x2A\x0F\xB7\xC0\x8D\x04\x40\x8B\x74\xC6\x10\xEB\x2A\x8B\xB6\x04\x00\x03\x00\x85\xF6\x74\x2A\x8B\x7D\x0C"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\x48\x89\x5C\x24\x08\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x20\x49\x8B\xF0\x48\x8B\xF9\x48\x85\xD2"

"EntityFactory"
{
"library" "server"
"windows64" "\x48\x83\xEC\x28\x8B\x05\xCE\xA9\x7F\x00"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\x48\x83\xEC\x28\x8B\x2A\x2A\x2A\x82\x00\xA8\x01"

"FireOutput"
{
"library" "server"
"windows64" "\x4C\x8B\xDC\x55\x41\x56\x41\x57\x49\x8D\xAB\xE8\xFE\xFF\xFF"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\x4C\x8B\xDC\x41\x54\x41\x55"

"LookupAttachment"
{
"library" "server"
"windows64" "\x55\x8B\xEC\x56\x8B\xF1\x83\xBE\xF4\x04\x00\x00\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x86\xF4\x04\x00\x00\x5E\x85\xC0\x74\x2A\x83\x38\x00\x74\x2A\xFF\x75\x08\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x40"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"windows64" "\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x48\x83\xB9\x38\x06\x00\x00\x00\x48\x8B\xFA\x48\x8B\xD9\x75\x2A\xE8\x2A\x2A\x2A\x2A\x48\x85\xC0\x74\x2A\x48\x8B\xCB\xE8\x2A\x2A\x2A\x2A\x48\x8B\x8B\x38\x06\x00\x00\x48\x85\xC9\x74\x2A\x48\x83\x39\x00\x74\x2A\x48\x8B\xD7\xE8\x2A\x2A\x2A\x2A"

"CommitSuicide"
{
"linux64" "511"
"windows64" "512"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one crashes Win DS, but it looks like a right function. Maybe it's a game bug.

@sapphonie
Copy link
Contributor Author

Updated some Windows signatures and offsets ( Build from 7 February 2024 ).

PR these to my fork, please, thanks. In the process of updating other things as well, but this should work as a stopgap. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants