 |
cypren Wanderer
Joined: 03 Nov 2000 Posts: 59
|
Posted: Sat Feb 03, 2007 9:35 pm
COM plugins in CMUD |
Apologies in advance for posting this in the beta forum, but there doesn't yet seem to be a developer forum.
Has anyone found a way to get COM plugins working in CMUD yet? I can successfully get the library headers from the executable file and compile what looks like a working plugin, but I can't make CMUD load it. The old zMUD\Plugins\PluginName registry entries that used to work in zMUD (detailed in Zor's excellent guide on the dev forums) don't seem to have carried over. |
|
|
|
 |
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Sun Feb 04, 2007 5:02 am |
Did you read the following from Status of new features for CMUD?
| Quote: |
Plugins
CMUD does not yet load zMUD plugins. CMUD *does* implement most of the zMUD COM API, so if you have an external program using COM calls, they should still work with CMUD. However, plugins will need to be edited so that calls to API functions zMUD* are replaced with CMUD*. Also, CMUD plugins need to reference CMUDAPI.DLL rather than ZMUDAPI.DLL.
Existing zMUD plugins might need to be edited and recompiled to work with the CMUD API rather than with zMUD. I will try to come up with some way to use existing zMUD plugins if it is at all possible. |
|
|
|
|
 |
cypren Wanderer
Joined: 03 Nov 2000 Posts: 59
|
Posted: Sun Feb 04, 2007 6:14 am |
| Seb wrote: |
However, plugins will need to be edited so that calls to API functions zMUD* are replaced with CMUD*. Also, CMUD plugins need to reference CMUDAPI.DLL rather than ZMUDAPI.DLL.
Existing zMUD plugins might need to be edited and recompiled to work with the CMUD API rather than with zMUD. I will try to come up with some way to use existing zMUD plugins if it is at all possible. |
Yes, I did. My reading of this (and I could be misinterpreting) suggests that while CMUD cannot import zMUD plugins -- which is to say, those using the old IzMUDPlugin interface -- it can and should work with CMUD plugins -- those using the new ICMUDPlugin interface, which is what I'm attempting to load. I took the comments in that note to mean that Zugg intends to at some point add a backwards compatibility library to CMUD that allows the old IzMUDPlugin code to work without modification.
Am I just reading this wrong, and there's really no plugin support of any kind yet? |
|
|
|
 |
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Mon Feb 05, 2007 1:18 am |
Well, this is from a post made in November (search for zMapper in this Beta forum to find it):
| Zugg wrote: |
| zMapper will work within CMUD soon. In fact, CMUD will probably support zMapper before it supports other plugins. zMapper is definitely not obsolete, and a CMUD-enhanced version of zMapper will be written next year when we convert from ADO/MDAC database formats to SQL formats. |
Make of it what you will. I expect Zugg will clarify soon. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Feb 05, 2007 8:41 pm |
zMapper isn't a "normal" plugin, so that doesn't really have anything to do with this.
What I meant by the quotes about regarding plugins is that an external program that simply calls CMUD via COM should still work. But CMUD does not yet handle *any* of the IPlugin interfaces (neither IzMUDPlugin *nor* ICMUDPlugin).
In other words, CMUD will not yet *call* anything external. Your external program can only call CMUD itself via COM. But CMUD isn't going to call any of your ICMUDPlugin methods. |
|
|
|
 |
cypren Wanderer
Joined: 03 Nov 2000 Posts: 59
|
Posted: Mon Feb 05, 2007 8:54 pm |
| Zugg wrote: |
zMapper isn't a "normal" plugin, so that doesn't really have anything to do with this.
What I meant by the quotes about regarding plugins is that an external program that simply calls CMUD via COM should still work. But CMUD does not yet handle *any* of the IPlugin interfaces (neither IzMUDPlugin *nor* ICMUDPlugin).
In other words, CMUD will not yet *call* anything external. Your external program can only call CMUD itself via COM. But CMUD isn't going to call any of your ICMUDPlugin methods. |
Thanks for the clarification, Zugg. I've gone back to zMUD in the meantime until this feature is implemented; unfortunately, my parsing/line modification needs are far too complicated to be doable with triggers. Any word on when the ICMUDPlugin support should be coming? |
|
|
|
 |
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Mon Feb 05, 2007 9:15 pm |
The 2nd quote I posted was just to show that I thought plug-ins were not yet supported. I suppose I could have trimmed it.
|
|
|
|
 |
|
|
|