ssgm dde hook problem [message #307937] |
Fri, 04 January 2008 21:17 |
neofmat
Messages: 42 Registered: February 2005
Karma: 0
|
Recruit |
|
|
Hello all,
I'm trying to run the example plugin via vs 2005. Everything works fine but the following function is not being called. I like to hide the custom chat hook commands from being passed to console. Anyone encountered that error ? I thought the example would work on its own without any modification :\
(ssgm_version.ini)
[Version]
SSGM=2.0.2
Scripts=3.4.1
BHS=3.4
//Hook into SSGM's DDE channel.
//Return false to stop it from being passed to the console.
DLLEXPORT bool SSGM_DDE_Hook(const char *DDE) {
printf("SSGM_DDE_Hook called %s\n",DDE);
TokenClass Text(DDE);
if (Text[1] == "test") {
printf("\"%s\" command called with parameters: \"%s\"\n",Text[1].c_str(),Text(2).c_str());
return false;
}
return true;
}
RxD
http://www.renxtreme.info
|
|
|
Re: ssgm dde hook problem [message #308022 is a reply to message #307937] |
Sat, 05 January 2008 09:21 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
It should work on it's own but I don't think it's recommended to be built right out of the box. Some assembly required (coding). I tried building it right out the box and the server crashed >_<
~MathK1LL
|
|
|
|
|
|
|
|
Re: ssgm dde hook problem [message #308778 is a reply to message #307937] |
Tue, 08 January 2008 14:11 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
Well if I am right (I might not be) you need to give the DDE channel a name in the ssgm.ini config file, and also possibly enable an option to make it run. But having never used it I can't say for sure.
Quote: | ; DDEName=
;
; Changes the name of the DDE channel. The DDE channel allows you to execute console commands on your server through DDE.
;
; The DDE channel uses the following settings:
; Service = Name specified below
; Topic = "FDSCommand"
; Item = "Command"
;
; So, for example, if you wanted to send a console command to the FDS from mIRC, you would type the following into mIRC:
; "/dde <DDEName> FDSCommand Command <Command here>"
;
; Set to 0 to disable.
; Windows FDS only.
DDEName=RenegadeFDS
|
Also note that it is for the Windows FDS only.
[Updated on: Tue, 08 January 2008 14:13] Report message to a moderator
|
|
|
|
Re: ssgm dde hook problem [message #308927 is a reply to message #308446] |
Tue, 08 January 2008 21:29 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
danpaul88 wrote on Mon, 07 January 2008 07:01 | Are you sure you don't want RenRem hooks instead, if your looking to try and get console commands?
|
O.O
/me is interested... lol
~MathK1LL
|
|
|
Re: ssgm dde hook problem [message #308998 is a reply to message #307937] |
Wed, 09 January 2008 01:56 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
I assume RenRem hooks exist, I don't really pay much attention to what's in SSGM these days.
As for preventing messages from going to clients, even if they get processed through DDE they still get sent to clients, you have to do some tricky manipulation to prevent that, which I have never bothered to try and do so don't ask me how it's done ^^ But I am not sure it would work in a plugin...
[Updated on: Wed, 09 January 2008 01:57] Report message to a moderator
|
|
|
Re: ssgm dde hook problem [message #309045 is a reply to message #307937] |
Wed, 09 January 2008 09:03 |
neofmat
Messages: 42 Registered: February 2005
Karma: 0
|
Recruit |
|
|
the default plugin example has the following comment so I'm hoping its possible.
//Hook into SSGM's DDE channel.
//Return false to stop it from being passed to the console.
Can someone pm me whitedragon's email please ? I can't seem to be able to register on black-cell.net :\
RxD
http://www.renxtreme.info
|
|
|
Re: ssgm dde hook problem [message #309343 is a reply to message #307937] |
Wed, 09 January 2008 17:05 |
=HT=T-Bird
Messages: 712 Registered: June 2005
Karma: 0
|
Colonel |
|
|
1) WD is available via IRC. (look in #the-lounge on BC or #bhs_support on NS)
2) Why, oh why, has nobody given the (coding) masses the ability to create proper console commands? (Ghostshaw and I have plans to change the situation outside the scripts.dll though.)
HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.
If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
|
|
|
|
|
Re: ssgm dde hook problem [message #309977 is a reply to message #309694] |
Fri, 11 January 2008 17:42 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
=HT=T-Bird wrote on Thu, 10 January 2008 16:12 | (and I hope we can get our little secret rolled out the door soon )
|
O.O
/me haxxes BI's coders' computers and steals this uber secret! =D
lol
~MathK1LL
|
|
|