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
pigpig2
Newbie


Joined: 15 Aug 2009
Posts: 6
Location: Hong Kong

PostPosted: Mon Aug 24, 2009 3:51 am   

Import & Copy Alias/Triggers create duplicate entries
 
I try to do a transfer of alias/triggers..etc to another package using export XML or "Copy To...". If I import/copy twice or more, it seems create duplicated entries instead of overwrite the old settings.

Please advise if there is some way to have a "replace" operation instead of duplicate entries

Thanks. Wink
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Aug 24, 2009 8:03 pm   
 
No, I believe there is not.
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Aug 25, 2009 4:05 pm   
 
The "Copy To" operation always does what it says "makes a *copy*". With the XML Import, it will overwrite settings with the same ID value as in the XML. If you remove the ID=xxx attributes from the XML, then CMUD will compare the name of the setting and the name of it's class (or window) parent to determine if it matches an existing setting and should overwrite instead of copy.

In other words, if you Export XML, then Import the XML into the same package, then it will overwrite the existing settings with the changes in the XML. But if you Import into a different window or package, then it will make a copy.

In general, CMUD tries *not* to overwrite settings because there is too big of a chance for losing a lot of scripts if it does that unexpectedly.
Reply with quote
pigpig2
Newbie


Joined: 15 Aug 2009
Posts: 6
Location: Hong Kong

PostPosted: Thu Aug 27, 2009 11:16 am   
 
Thanks for the quick explanation and now clear about the operations.

Cool
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