Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » SSGM plugin issues
SSGM plugin issues [message #270971] Thu, 05 July 2007 13:11 Go to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
1) Is there a good reason why plugins are not allowed to have their own purchase hooks? Or is that just an omission on WhiteDragon's part?

2) Again, is there a good reason why plugins cannot listen for DragonGuard events except by monitoring the SSGMlog?

3) How would I go about creating a plugin that provides services (functions, classes,...) to other plugins? Or, can plugins only use services provided by SSGM itself?

P.S. Is DragonGuard still alive and kicking? Or, did BIATCH's release pre-empt that project?


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.

[Updated on: Thu, 05 July 2007 13:17]

Report message to a moderator

Re: SSGM plugin issues [message #270974 is a reply to message #270971] Thu, 05 July 2007 13:23 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
3) Download the LuaPlugin Razz

-MathK1LL
Re: SSGM plugin issues [message #270999 is a reply to message #270974] Thu, 05 July 2007 15:45 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
MathK1LL wrote on Thu, 05 July 2007 15:23

3) Download the LuaPlugin Razz

-MathK1LL

1) That is NOT what I am talking about. I just want to have it so that one native SSGM plugin can use functions provided by another.
2) I tried RenLua, but I got like 2-3 SFPS with it installed.


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 plugin issues [message #271014 is a reply to message #270971] Thu, 05 July 2007 16:57 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 831
Registered: February 2003
Location: California
Karma: 1
Colonel
=HT=T-Bird


1) Is there a good reason why plugins are not allowed to have their own purchase hooks? Or is that just an omission on WhiteDragon's part?


You can make purchase hooks. There just isn't an example of one.

=HT=T-Bird


3) How would I go about creating a plugin that provides services (functions, classes,...) to other plugins? Or, can plugins only use services provided by SSGM itself?


You could have SSGM load both plugins and then have one plugin use GetModuleHandle to get the address of the other plugin and export functions from it. This will only work on windows though.

=HT=T-Bird


Is DragonGuard still alive and kicking?


No.


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: SSGM plugin issues [message #271017 is a reply to message #271014] Thu, 05 July 2007 17:04 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Whitedragon wrote on Thu, 05 July 2007 18:57

=HT=T-Bird


1) Is there a good reason why plugins are not allowed to have their own purchase hooks? Or is that just an omission on WhiteDragon's part?


You can make purchase hooks. There just isn't an example of one.


Well, not without stomping on what other plugins might do with them.

Whitedragon wrote on Thu, 05 July 2007 18:57

=HT=T-Bird


3) How would I go about creating a plugin that provides services (functions, classes,...) to other plugins? Or, can plugins only use services provided by SSGM itself?


You could have SSGM load both plugins and then have one plugin use GetModuleHandle to get the address of the other plugin and export functions from it. This will only work on windows though.


Hacky, but workable (and I could probably do it on Linux too, it's just a matter of figuring out how).

Whitedragon wrote on Thu, 05 July 2007 18:57

=HT=T-Bird


Is DragonGuard still alive and kicking?


No.

Well then, I would like to see the DragonGuard hook in SSGM either a) deleted or b) used by BIATCH.


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.

[Updated on: Thu, 05 July 2007 17:04]

Report message to a moderator

Re: SSGM plugin issues [message #271019 is a reply to message #271017] Thu, 05 July 2007 17:08 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 831
Registered: February 2003
Location: California
Karma: 1
Colonel
=HT=T-Bird wrote on Thu, 05 July 2007 20:04

Whitedragon wrote on Thu, 05 July 2007 18:57

=HT=T-Bird


1) Is there a good reason why plugins are not allowed to have their own purchase hooks? Or is that just an omission on WhiteDragon's part?


You can make purchase hooks. There just isn't an example of one.


Well, not without stomping on what other plugins might do with them.


You can have multiple purchase hooks. Unlike the player join, player leave, console output, chat, and host chat hooks which only allow one hook. That's why they were implemented in plugins like they are.


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: SSGM plugin issues [message #271027 is a reply to message #271019] Thu, 05 July 2007 17:45 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Whitedragon wrote on Thu, 05 July 2007 19:08

=HT=T-Bird wrote on Thu, 05 July 2007 20:04

Whitedragon wrote on Thu, 05 July 2007 18:57

=HT=T-Bird


1) Is there a good reason why plugins are not allowed to have their own purchase hooks? Or is that just an omission on WhiteDragon's part?


You can make purchase hooks. There just isn't an example of one.


Well, not without stomping on what other plugins might do with them.


You can have multiple purchase hooks. Unlike the player join, player leave, console output, chat, and host chat hooks which only allow one hook. That's why they were implemented in plugins like they are.

In other words, you can have as many plugins hook purchases as you want?


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 plugin issues [message #271036 is a reply to message #270971] Thu, 05 July 2007 18:44 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 831
Registered: February 2003
Location: California
Karma: 1
Colonel
Yes. You can have as many purchase hooks as you want, whether they're in a plugin or SSGM itself.

Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: SSGM plugin issues [message #271154 is a reply to message #271036] Fri, 06 July 2007 04:34 Go to previous message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Whitedragon wrote on Thu, 05 July 2007 20:44

Yes. You can have as many purchase hooks as you want, whether they're in a plugin or SSGM itself.

Ah, that makes sense.


Since DragonGuard is dead, what is going to be done with SSGM's DragonGuard hook? Are you already planning to delete it? Or, should I talk to StealthEye about having BIATCH take advantage of it?


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.
Previous Topic: ***The Sound Thing I Have been Seeing***
Next Topic: Interesting, max importer
Goto Forum:
  


Current Time: Wed May 15 14:37:18 MST 2024

Total time taken to generate the page: 0.00716 seconds