Giter Club home page Giter Club logo

bots-united / metamod-p Goto Github PK

View Code? Open in Web Editor NEW
97.0 20.0 31.0 558 KB

Metamod is a plugin/DLL manager that sits between the Half-Life Engine and an HL Game mod, allowing the dynamic loading/unloading of mod-like DLL plugins to add functionality to the HL server or game mod. Metamod-P is enhanced version of Metamod. It has dynamic link-entities and automatic detection of Mod DLL and other improvement to allow it work with future Half-Life Engine updates and new Mods and updates.

Home Page: http://metamod-p.sourceforge.net/

C 35.09% C++ 63.44% Shell 0.02% Makefile 1.35% Awk 0.09%

metamod-p's Introduction

metamod-p's People

Contributors

afwn90cj93201nixr2e1re avatar duk0 avatar frisasky avatar frisasky1 avatar jkivilin avatar thestormn avatar tschumann avatar

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

Watchers

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

metamod-p's Issues

1.38 Doesn't work with ReHLDS + ReGameDLL_CS ?

tmux console log

Auto-restarting the server on crash                                                                                                                                [7/7]

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 15:11:44 Apr  1 2018 (1450)
STEAM Auth Server
Server logging data to file logs/L0405005.log
L 04/05/2018 - 19:13:22: Log file started (file "logs/L0405005.log") (game "cstrike") (version "48/1.1.2.7/Stdio/1450")
Server IP address 164.132.202.76:27015

   Metamod version 1.21p38 Copyright (c) 2001-2013 Will Day
     Patch: Metamod-P (mm-p) v38 Copyright (c) 2004-2018 Jussi Kivilinna
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.

L 04/05/2018 - 19:13:22: [META] Metamod v1.21p38  2018/02/11
L 04/05/2018 - 19:13:22: [META] by Will Day
L 04/05/2018 - 19:13:22: [META]    http://www.metamod.org/
L 04/05/2018 - 19:13:22: [META]  Patch: Metamod-P (mm-p) v38
L 04/05/2018 - 19:13:22: [META]  by Jussi Kivilinna
L 04/05/2018 - 19:13:22: [META]     http://metamod-p.sourceforge.net/
L 04/05/2018 - 19:13:22: [META] compiled: Feb 11 2018, 11:05:06 EET (optimized)
L 04/05/2018 - 19:13:22: [META] WARNING: GameDLL-Autodetection: Couldn't find gamedll in '/home/server1/ffa/cstrike/dlls'.
L 04/05/2018 - 19:13:22: [META] Recognized game 'cstrike'; using dllfile 'cs_amd64.so'
L 04/05/2018 - 19:13:22: [META] WARNING: dll: Couldn't load game DLL /home/server1/ffa/cstrike/dlls//home/server1/ffa/cstrike/dlls/cs_amd64.so: /home/server1/ffa/cstrik
e/dlls//home/server1/ffa/cstrike/dlls/cs_amd64.so: cannot open shared object file: No such file or directory
L 04/05/2018 - 19:13:22: [META] ERROR: Failure to load game DLL; exiting...
L 04/05/2018 - 19:13:22: [META] WARNING: GetEntityAPI2 called with null pFunctionTable
==================
Game DLL version mismatch
DLL version is 140, engine version is 140
The game DLL for cstrike appears to be outdated, check for updates
==================
Host_Error:

L 04/05/2018 - 19:15:22: FATAL ERROR (shutting down): Host_Error:


FATAL ERROR (shutting down): Host_Error:


./hlds_run: line 255: 12419 Segmentation fault      $HL_CMD

sys_error.log :

L 05/04/2018 - 19:17:16: (map "(null)") Host_Error:

It's working fine when i rollback to 1.37

Banned for flood connect

With adminslots.amxx enable
amx_reservation 1
amx_hideslots 0
If i try to connect without slot flag when the server is full (31/32)
trying like 10 consecutive connect and "You have been banned from this server."
And is banned permanently...
Someone known why? ...

Sven Co-op v5 support

No big issue but I believe Sven v5 had their /dlls renamed from hl.dll and hi_i386.so as server.so and server.dll for MM-P to work. I only managed to allow P-37 to work by renaming those newly named dlls back to its original name.

Vanheer and some other HLDS coders used your MM-P src code but made a bad job as they lag more than your official version.

However now that Sven v5 is a Standalone version, it maybe likely that it could break the support for Metamod in the future.

Error when compile with gcc 4.9

Compile with latest git i got following errors

game_support.cpp: In function ‘const game_modinfo_t* lookup_game(const char*)’:
game_support.cpp:90:63: error: a function-definition is not allowed here before ‘{’ token
mBOOL DLLINTERNAL install_gamedll(char *from, const char *to) {
^
game_support.cpp:343:15: error: expected ‘}’ at end of input
return(mTRUE);
^
game_support.cpp:343:15: warning: control reaches end of non-void function [-Wreturn-type]
return(mTRUE);
^
Makefile:267: recipe for target 'opt.linux_i386/game_support.o' failed
make: *** [opt.linux_i386/game_support.o] Error 1

[MSVC] Plugins fail to load with "badf"

When compiling plugins using MSVC, they fail to load with "badf" status. This happens when using the binaries from the latest release or compiling from source in MSVC.

Adding this code to metamod fixes the problem:
wootguy@753cfb1
That code comes from hzqst's custom version of metamod-p. I don't know if this is the most correct fix. Are plugin authors supposed to be adding a special pragma if they'll be compling in MSVC?

There was a compile warning for that pragma implying that it would be ignored:
h_export.obj : warning LNK4197: export 'GiveFnptrsToDll' specified multiple times; using first specification
Maybe it just doesn't work in the latest Visual Studio.

Version outdated but is not.

Game DL version mismatch
DL version is 140, engine version is 140
The game DL for cstrike appears to be outdated, check for updates

request

Where can download the metamod-p linux version 2017-01-15 ?

Fucntion 'Server_GetBlendingInterface' not found, causing the server to crash

Hello there. Not sure if this issue is only TFC related, but whenever metamod tries to look for the signature of Server_GetBlendingInterface my server crashes. Either the function does not exist, or the pointer to it from memory is invalid (bad signature).

Below I attached the debug error:

L 09/05/2021 - 16:11:29: [META] (debug:6) Couldn't find Server_GetBlendingInterface in game DLL 'tfc': function not found

Rehlds support ?

i installed p38 but my server crashed. i use latest rehlds engines & dlls

error:

Game DLL version mismatch
DLL version is 140, engine version is 140
The game DLL for cstrike appears to be outdated, check for updates

Host_Error:

FATAL ERROR (shutting down): Host_Error:

Freezes on load with latest Steam CS 1.6 on Linux

it just freezes when it finishes loading a new game for me on a client, all im doing is adding the line
gamedll_linux "addons/metamod/dlls/metamod.so"
to liblist.gam. The metamod.so is the latest metamod-p from github. It doesnt matter where i put that line, it always freezes.

I tried it with ReGameDLL_CS, but then it crashes to desktop, even earlier in the loading stages

this is on a full fresh install of HL + CS

] version

Protocol version 48

Exe version 1.1.2.7/Stdio (cstrike)

Exe build: 19:53:35 Aug 3 2020 (8684)

[Sven Co-op 5.25] can't get amxmodx to load

System Distro: Ubuntu Linux 22.04 jammy
Game: Sven Co-op 5.25

I'm currently having the issue that metamod-p for some reason refuses to autoload amxmodx.so file which I added it under plugins.ini under addons/metamod/directory I have these files:

config.ini
plugins.ini
exec.cfg
init.cfg

in config.ini
I have this:

game_dll svencoop/dlls/server.so
plugins_file addons/metamod/plugins.ini
exec_cfg addons/metamod/exec.cfg

and in plugins.ini
its this:

linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux ../addons/amxmodx/dlls/amxmodx_mm_i386.so

Basically it doesn't work under Sven Coop dedicated server as I get only this:

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 225840
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Threaded networking started successfully.
Protocol version 48
Engine version 5.0.1.7 (svencoop)
Engine build: 10:27:30 Jun 12 2021 (8997)
STEAM Auth Server
Initializing IP networking
Local IP address: , SV port: 27015, CL port: -1
Steam P2P networking disabled.
   
   Metamod version 1.21p38 Copyright (c) 2001-2013 Will Day
     Patch: Metamod-P (mm-p) v38 Copyright (c) 2004-2018 Jussi Kivilinna
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.

However when I do this then the server outputs this:

meta refresh
L 06/06/2022 - 23:29:42: [META] Refreshing the plugins on demand...
L 06/06/2022 - 23:29:42: [META] ini: Begin re-reading plugins list: addons/metamod/plugins.ini
L 06/06/2022 - 23:29:42: [META] ini: Read plugin config for: <amxmodx_mm_i386.so>
L 06/06/2022 - 23:29:42: [META] ini: Finished reading plugins list: addons/metamod/plugins.ini; Found 1 plugins
L 06/06/2022 - 23:29:42: [META] dll: Updating plugins...
L 06/06/2022 - 23:29:42: [META] dll: Finished updating 1 plugins; kept 0, loaded 0, unloaded 0, reloaded 0, delayed 0
meta list
Currently loaded plugins:
      description      stat pend  file              vers      src   load  unlod
 [ 1] AMX Mod X        open  -    amxmodx_mm_i386.  v1.8.2    ini   Start ANY  
1 plugins, 0 running

So using meta refresh makes metamod-p recognize the amxmodx plugin but it cannot load it properly when I try to load the plugin manually.

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.