Raised This Month: $12 Target: $400
 3% 

Share extension interface with server addon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fakuivan
Senior Member
Join Date: Nov 2015
Old 01-25-2018 , 11:10   Share extension interface with server addon
Reply With Quote #1

I have a server addon (no mm) that I'd like to communicate with a sm extension. Is there any way I can expose an interface from the extension to this addon in a similar way to how it's done with extension to extension interfaces?
__________________
fakuivan is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-26-2018 , 05:36   Re: Share extension interface with server addon
Reply With Quote #2

I do not think VSPs can query for MM:S interfaces as they don't have access to the wrapped factories - this is yet another reason why VSPs should never be used.
__________________
asherkin is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 01-26-2018 , 09:22   Re: Share extension interface with server addon
Reply With Quote #3

VPSs have access to all server memory just like mms right? Should I be able to create a function that riceives a pointer to the interface on that VPSs, sigscan it and then call it passing the interface?
__________________
fakuivan is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 02-03-2018 , 07:27   Re: Share extension interface with server addon
Reply With Quote #4

Quote:
Originally Posted by fakuivan View Post
VPSs have access to all server memory just like mms right? Should I be able to create a function that riceives a pointer to the interface on that VPSs, sigscan it and then call it passing the interface?
yeah you should be able to do that but why do it the hard (and wrong) way when you can just build it as a MM:S plugin?

Last edited by donrevan; 02-03-2018 at 07:28.
donrevan is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 02-03-2018 , 17:04   Re: Share extension interface with server addon
Reply With Quote #5

Because it's a huge VPS and I don't feel like porting it over to a MM:S plugin. The whole package for a tf2 server running windows/linux it's 40MB, no textures/assets afaik.

I feel like a bridge is the most convenient way to merge it.
__________________
fakuivan is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 02-03-2018 , 17:05   Re: Share extension interface with server addon
Reply With Quote #6

Maybe I'll use Boost.Interprocess and see how that goes.
__________________
fakuivan is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode