Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » ssgm dde hook problem
ssgm dde hook problem [message #307937] Fri, 04 January 2008 21:17 Go to next message
neofmat is currently offline  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;
}


Re: ssgm dde hook problem [message #308022 is a reply to message #307937] Sat, 05 January 2008 09:21 Go to previous messageGo to next message
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 #308025 is a reply to message #307937] Sat, 05 January 2008 09:50 Go to previous messageGo to next message
neofmat is currently offline  neofmat
Messages: 42
Registered: February 2005
Karma: 0
Recruit
u probably forgot to copy the Example.ini file to server directory.

Re: ssgm dde hook problem [message #308394 is a reply to message #307937] Mon, 07 January 2008 00:22 Go to previous messageGo to next message
neofmat is currently offline  neofmat
Messages: 42
Registered: February 2005
Karma: 0
Recruit
Any one else ? Is there ssgm forum somwhere ?

Re: ssgm dde hook problem [message #308429 is a reply to message #308394] Mon, 07 January 2008 05:12 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
neofmat wrote on Mon, 07 January 2008 02:22

Any one else ? Is there ssgm forum somwhere ?


Closest thing to it:

http://forums.black-cell.net/index.php?board=17.0



Re: ssgm dde hook problem [message #308446 is a reply to message #307937] Mon, 07 January 2008 07:01 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Probably a daft question, but did you actually turn DDE on? AFAIK it's disabled until manually enabled, hence the event would never get called because DDE is not enabled...

Are you sure you don't want RenRem hooks instead, if your looking to try and get console commands?


http://steamsignature.com/card/1/76561197975867233.png
Re: ssgm dde hook problem [message #308758 is a reply to message #307937] Tue, 08 January 2008 13:29 Go to previous messageGo to next message
neofmat is currently offline  neofmat
Messages: 42
Registered: February 2005
Karma: 0
Recruit
I did not turn on the DDE Surprised.. How do i do that ?

So excited to actually get it to work Very Happy


Re: ssgm dde hook problem [message #308778 is a reply to message #307937] Tue, 08 January 2008 14:11 Go to previous messageGo to next message
danpaul88 is currently offline  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.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 08 January 2008 14:13]

Report message to a moderator

Re: ssgm dde hook problem [message #308867 is a reply to message #307937] Tue, 08 January 2008 17:48 Go to previous messageGo to next message
neofmat is currently offline  neofmat
Messages: 42
Registered: February 2005
Karma: 0
Recruit
Just tried it but still dosn't work. I do see "dde channel initialize" on the console window but the chat hook commands still show up for all players :\ I just wana hide the custom chat commands.

Re: ssgm dde hook problem [message #308927 is a reply to message #308446] Tue, 08 January 2008 21:29 Go to previous messageGo to next message
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... Surprised lol




~MathK1LL
Re: ssgm dde hook problem [message #308998 is a reply to message #307937] Wed, 09 January 2008 01:56 Go to previous messageGo to next message
danpaul88 is currently offline  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...


http://steamsignature.com/card/1/76561197975867233.png

[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 Go to previous messageGo to next message
neofmat is currently offline  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 :\


Re: ssgm dde hook problem [message #309343 is a reply to message #307937] Wed, 09 January 2008 17:05 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =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 #309491 is a reply to message #309343] Thu, 10 January 2008 06:17 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

=HT=T-Bird wrote on Thu, 10 January 2008 01:05

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.)


I think jonwil didn't do that because it could be abused on the client scripts.dll to do things that start with a 'c'.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: ssgm dde hook problem [message #309694 is a reply to message #309491] Thu, 10 January 2008 16:12 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Cat998 wrote on Thu, 10 January 2008 07:17

=HT=T-Bird wrote on Thu, 10 January 2008 01:05

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.)


I think jonwil didn't do that because it could be abused on the client scripts.dll to do things that start with a 'c'.

Yeah, yeah...I know the drill...Rene needs a massive security upgrade...Razz (and I hope we can get our little secret rolled out the door soon Very Happy)


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 Go to previous message
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 Very Happy)


O.O
/me haxxes BI's coders' computers and steals this uber secret! =D

lol

~MathK1LL
Previous Topic: BR: IP Bot messages in console
Next Topic: FDS Status Reporter Plugin doesnt work
Goto Forum:
  


Current Time: Thu May 16 14:45:42 MST 2024

Total time taken to generate the page: 0.00887 seconds