Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri May 30, 2008 5:31 pm   

how to use the COM interface with zmapper
 
Taking Zugg's advice many months ago, I bought zmapper in order to use the COM interface to manipulate some map properties that cannot be reached with zscript. I am finally getting around to trying to figure this out. I have never worked with COM and don't have a clear idea of how to use it.

I have examined the help files on zmapper, and see the long set of objects, methods, properties, etc. I feel confident I can work with them once I get past the first step. I've looked at the help files for #com, %comcreate, and %comget, and I think I understand them. What I don't see anywhere is exactly what I need to do to get started. I obviously have to do a %comcreate, but what do I use as the argument to %comcreate to get something from zmapper? I don't see that anywhere in the documentation. And one other question--do I need to have zmapper running when I interact with it in cmud?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri May 30, 2008 9:51 pm   
 
Last question first, as usual. If you have purchased, or are in a trial for zMapper it is automatically loaded.

The correct way to get started is actually to use the %map predefined variable. For example
Code:
Room=%map.CurRoom
#SHOW @Room.Name
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jun 02, 2008 5:10 pm   
 
Excellent! I'm all set now. Is this documented anywhere? %map is not listed under predefined variables.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jun 02, 2008 5:17 pm   
 
When you install zMapper, there should be a *.HLP help file installed with it. Double-click that help file to open it and you can find the COM object reference documentation in it.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jun 02, 2008 5:54 pm   
 
I did look at the zmapper documentation. As I said above, it nicely lists all of the functions, properties, methods, etc. that can be used through the COM interface, but it doesn't mention the %map predefined variable or any other way of actually accessing those functions and properties from zmud/cmud.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jun 02, 2008 7:13 pm   
 
Hmm, you are right. I'll try to improve that in the cMapper documentation. The reason it's not mentioned in the main CMUD documentation is because it only works if you have zMapper installed. But I'll try to get a chance to add it to the PreDefined topic and just make a note that it requires zMapper.

The other predefined variable is %room which points to the RoomObject for the current room that you are in.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net