Bind C++ plugin to Python plugin

All other Source.Python topics and issues.
User avatar
Articha
Member
Posts: 32
Joined: Tue Sep 21, 2021 12:13 pm
Location: Russia

Bind C++ plugin to Python plugin

Postby Articha » Wed Apr 12, 2023 9:27 am

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
User avatar
Articha
Member
Posts: 32
Joined: Tue Sep 21, 2021 12:13 pm
Location: Russia

Crypto in cs:go plugin?

Postby Articha » Tue Apr 18, 2023 7:31 am

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.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 24 guests