SSGM plugin issues [message #270971] |
Thu, 05 July 2007 13:11 |
=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 #270999 is a reply to message #270974] |
Thu, 05 July 2007 15:45 |
=HT=T-Bird
Messages: 712 Registered: June 2005
Karma: 0
|
Colonel |
|
|
MathK1LL wrote on Thu, 05 July 2007 15:23 | 3) Download the LuaPlugin
-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 |
|
Whitedragon
Messages: 832 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 |
=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 |
|
Whitedragon
Messages: 832 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 |
=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 |
|
Whitedragon
Messages: 832 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 |
=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.
|
|
|