[SM] includes
Ciao guys,
I am editing SM - core/logic/PluginSys.cpp and I have a problem with KeyValues. In core/smn_console.cpp KeyValues works fine, but not in PluginSys.cpp. I tried to include #include <KeyValues.h>, but compilation gives me error fatal error C1083: Cannot open include file: 'KeyValues.h': No such file or directory. I also tried to #include "HalfLife2.h" and that gave me error \sourcemod\core\logic\../HalfLife2.h(45) : fatal error C1083: Cannot open include file: 'KeyValues.h': No such file or directory. Can you help me please? I don't know what else should I try/do... |
Re: [SM] includes
You shouldn't edit the files from sdk.
Just add all the directories the compiler requires to the make file Example for linux (Makefile): Quote:
Quote:
If you do not know where a certain file is , open Total Commander, press ALT+F7 and set the sdk directory and the file name, it'll show you the file's directory Are you sure that want to make an extension ?, it is a lot easier to make it all in source pawn |
Re: [SM] includes
The logic binary (core/logic) does not include anything from the HL2SDK. It is for common or abstracted functionality that isn't dependent on the sdk. The result is that code inside core/logic gets compiled and distributed once, whereas code inside core gets compiled to 20 binaries (one per sdk).
TL;DR You can't directly use KeyValues in the logic bin. |
Re: [SM] includes
Can I use SMC in logic bin? I have a config which I need to load... :-(
I never tried SMC so I am even not sure how does it work... |
Re: [SM] includes
Quote:
Edit: The pointer you use is textparsers Edit2: This can help: https://github.com/alliedmodders/sou..._textparse.cpp |
Re: [SM] includes
Thx god! Now I just need to find out how does SMC work and how to use it in SM core :-D Thx guys!
Quote:
|
Re: [SM] includes
Quote:
|
Re: [SM] includes
Well, I am trying to stop some plugins from loading based on current map
map_plugins.cfg PHP Code:
PHP Code:
And if I put some plugins into disabled folder, there might by problems with dependencies on loading :-( I think the best way, how to choose which plugins load in this map is in core (not sure if extension can do that, but I doupt it). P.S.: This is big problem on multimod servers like mg+climb/course+deathrun |
All times are GMT -4. The time now is 11:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.