Metamod plugin writing
I need a TUT for how to start make an metamod plugin step by step .I use msvc2010 and i tried again and again and always get errors and when is compiled then is not loaded by metamod on server .I tried even metamod/stub_plugin to compile and i dont did it. If anyone want to help me because I'm tired of trying get a good compiled plugin and this stop me from continue coding a metamod plugin.
|
Re: Metamod plugin writing
Example as mine:
C:\amxx\amxmodx-source C:\amxx\metamod-1.19 C:\amxx\hlsdk-2.3-p3\ This pattern metamod plugin: C:\amxx\metamod-1.19\stub_plugin\meta_api.cpp Or for test: PHP Code:
C:\amxx\metamod-1.19\stub_plugin\msvc\stub_mm.sln You need to add hlsdk folder stub_plugin - properties - VC ++ You can add all C:\amxx\hlsdk-2.3-p3\utils; C:\amxx\hlsdk-2.3-p3\ricochet; C:\amxx\hlsdk-2.3-p3\pm_shared; C:\amxx\hlsdk-2.3-p3\network; C:\amxx\hlsdk-2.3-p3\game_shared; C:\amxx\hlsdk-2.3-p3\engine; C:\amxx\hlsdk-2.3-p3\dmc; C:\amxx\hlsdk-2.3-p3\dlls; C:\amxx\hlsdk-2.3-p3\dedicated; C:\amxx\hlsdk-2.3-p3\common; C:\amxx\hlsdk-2.3-p3\cl_dll; ( multiplayer ) meta list will display like this: PHP Code:
|
Re: Metamod plugin writing
I use msvc 2010
and about this Code:
stub_plugin - properties - VC ++ Code:
Executable Directories |
Re: Metamod plugin writing
Include Directories
|
Re: Metamod plugin writing
i get compiled with this error
Code:
sdk_util.cpp(40): warning C4793: 'UTIL_LogPrintf' : function compiled as native : Code:
void UTIL_LogPrintf( char *fmt, ... ) [ 5] <stub_mm. badf load stub_mm.dl v - ini - - |
Re: Metamod plugin writing
i tried now with no sdk_util.cpp
i get a clean compile but is still not loading my metamod plugin Code:
[ 5] <stub_mm. badf load stub_mm.dl v - ini - - it could be because of using msvc2010 on windows xp sp2 ? when i compile amxmodx modules, are loaded. So where can be the problem ? please someone help me ... i'm sick of it ... |
Re: Metamod plugin writing
1 Attachment(s)
I will try my best to explain more clear
OK, now let's start write out sample code for the metamod, I want to call ClientConnect,and it is a dll function, we can find it at the dllapi.cpp,so we can edit the file like this: Code:
and compile it run the server with this plugin, connect to the server and you could see this on the server console https://forums.alliedmods.net/attach...1&d=1359734058 |
Re: Metamod plugin writing
Nice thread. Any similar tuts for linux?
|
Re: Metamod plugin writing
sorry for the Linux I only know a little about windows
|
Re: Metamod plugin writing
I'm having the same problem here. The stub plugin compiles fine with or without K.K.Lv's code in MSVC 2010 but refuses to load through metamod-p. I'm sure metamod-p is working properly because it loads other plugins without issue.
Does anyone have a working MSVC project for a basic plugin like the stub example? |
All times are GMT -4. The time now is 10:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.