Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] DDE Channel
[SSGM 4.0 Plugin] DDE Channel [message #473305] Mon, 20 August 2012 21:08 Go to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Incase anyone else is missing the DDE functionality from prior versions of scripts, here it is again.

I think I'm the only person that actually used it but who knows Satisfied

  • Attachment: DDE.rar
    (Size: 6.05KB, Downloaded 98 times)


-Jelly Administrator
-Exodus Administrator

[Updated on: Thu, 23 August 2012 01:28]

Report message to a moderator

Re: [SSGM 4.0 Plugin] DDE Channel [message #473312 is a reply to message #473305] Tue, 21 August 2012 03:27 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
nice Thumbs Up

I had use it in old ssgm, atm i don't Razz but is good, maybe we will see a bot using DDE.


Creator of Mutant Co-Op
Developer of LuaTT
Re: [SSGM 4.0 Plugin] DDE Channel [message #473316 is a reply to message #473305] Tue, 21 August 2012 06:31 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Console_Output() already accepts formatted input so there's no need to write a Console() wrapper function to add support for this.

This:
bool initvalue;


Should mean that initivalue gets initalized with a random value, the first use of initvalue is:

void DDEChan::Initialize()
{
	if (initvalue == 1) { return; }
	initvalue = 1;

If I remember correctly bool will be initalized with a garbage value which is compared to 1, which is why this works but will break if initvalue is garbage filled with 1. Instead you should set initvalue to false before using it like so:

bool initvalue = false;


see:
http://www.velocityreviews.com/forums/t448719-uninitialized-bool.html
http://cboard.cprogramming.com/c-programming/134960-confused-about-uninitialized -bool-variable.html


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Tue, 21 August 2012 06:40]

Report message to a moderator

Re: [SSGM 4.0 Plugin] DDE Channel [message #473345 is a reply to message #473305] Tue, 21 August 2012 15:07 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
ah cool, thanks!

tbh I just changed around some stuff from the mute plugin because I was too lazy to configure a new plugin


-Jelly Administrator
-Exodus Administrator
Re: [SSGM 4.0 Plugin] DDE Channel [message #473347 is a reply to message #473305] Tue, 21 August 2012 16:21 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)
I never bothered to look at what the DDE channel actually did. Are you able to explain a little about it, please?


Re: [SSGM 4.0 Plugin] DDE Channel [message #473350 is a reply to message #473305] Tue, 21 August 2012 17:31 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
DDE stands for Dynamic Data Exchange, it's a way of 2 programs to communicate to each other.

http://msdn.microsoft.com/en-us/library/ms648774.aspx explains it quite well.

Since mIRC supports DDE as well as the FDS, I use it to send commands from my banning system (which is an mIRC based bot) directly to the FDS without any "middleman" program like renrem. Quite useful still, although it's considered an obsolete technology.


-Jelly Administrator
-Exodus Administrator
Re: [SSGM 4.0 Plugin] DDE Channel [message #473352 is a reply to message #473305] Wed, 22 August 2012 00:02 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Yeah you should be using sockets instead, which mIRC also supports in a somewhat broken way

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] DDE Channel [message #473353 is a reply to message #473350] Wed, 22 August 2012 02:09 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)
raven wrote on Tue, 21 August 2012 20:31

DDE stands for Dynamic Data Exchange, it's a way of 2 programs to communicate to each other.

http://msdn.microsoft.com/en-us/library/ms648774.aspx explains it quite well.

Since mIRC supports DDE as well as the FDS, I use it to send commands from my banning system (which is an mIRC based bot) directly to the FDS without any "middleman" program like renrem. Quite useful still, although it's considered an obsolete technology.



Thank you, that's very interesting.



Re: [SSGM 4.0 Plugin] DDE Channel [message #473371 is a reply to message #473305] Thu, 23 August 2012 01:29 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Updated for Xpert because he apparently can't do it himself.

Satisfied


-Jelly Administrator
-Exodus Administrator
Re: [SSGM 4.0 Plugin] DDE Channel [message #473380 is a reply to message #473371] Thu, 23 August 2012 12:41 Go to previous message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
raven wrote on Thu, 23 August 2012 04:29

Updated for Xpert because he apparently can't do it himself.

Satisfied


Nice lie. Don't make me post logs biotch!


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Previous Topic: [SSGM 4.0 Plugin] TeamDonate Plugin
Next Topic: Serverside Flood Protection
Goto Forum:
  


Current Time: Wed Nov 06 08:20:15 MST 2024

Total time taken to generate the page: 0.00782 seconds