Page 1 of 1

Bind C++ plugin to Python plugin

Posted: Wed Apr 12, 2023 9:27 am
by Articha
As in the name said, I want to have 2 plugins: one C++, and one Python. The reason for this is DB. I want to create DB with ease (On Python) with some other features, where O(n) equals (or near) to one in python, while other logic write in C++. So, how do I get DB information from Source.Python plugin into MetaSource? Or, may be, there's some other way?

Note: do not suggest ctypes module or something like that. I want my C++ code interact with CS:GO directly (through some API, like MetaSource, of course):
Ctypes module: C++ module => Python module => Source.Python => MetaSource => CS:GO SDK
MetaSource module: C++ module => MetaSource => CS:GO SDK

My overall mod must be like semi-C++ semi-Python. That would be beautiful

Crypto in cs:go plugin?

Posted: Tue Apr 18, 2023 7:31 am
by Articha
What? Crypto-currency in CS:GO plugin? You sure?
I'm concerned about complexity between 2 languages, but Python and C++ related to each other, because Python based on C. By the way, Source.Python anyway based on C(++?) CS:GO SDK, so conversions Python —> C unavoidable.
My question is alternative to ctypes module, because conversion C —> Python —> C much worse than clear C.