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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Wed Feb 04, 2009 5:56 am   

Script parameter list disappears after updating item
 
Repeatedly, after updating an alias or function that have local variables declared as parameters (in lieu of %1,...,%N), the list is removed on update. It has to be re-inserted and then the item must be saved again. Unfortunately, this doesn't happen always so there is no way to predict the behavior. However, it has happened enough times now and has become annoying enough, to warrant a post.
_________________
Sic itur ad astra.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Wed Feb 04, 2009 3:37 pm   
 
There is no way to give us a small example of how to reproduce this?
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sun Feb 08, 2009 6:55 pm   
 
Well, the problem is that one can't tell that it has happened until after one attempts to run the script. When one saves the setting, the parameter list is in its place. One becomes aware of the problem when the message saying that $<varname> is missing when trying to execute. I will keep trying to capture the problem. The one thing that occurs to me is that it usually happens after one saves the setting with syntax errors. Then, after going back to the setting and fixing the errors, the save will lose the parameter list. This is not a 100% thing, but I have noticed a correlation.
_________________
Sic itur ad astra.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Feb 09, 2009 6:01 pm   
 
You'll need to give us the script that you are using for this. Keep in mind that if you enter the parameter list in the editor, and then use an #ALIAS command to "redefine" an alias, then it will clear the parameter list.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Thu Feb 12, 2009 1:07 am   
 
I never use the #ALIAS command. There is no particular setting with a parameter list which is affected. It can be any of the ones that I update. As I said, there is a correlation between saving an alias (or function) setting with a syntax error and later when the error is fixed and the setting is saved again, the list will disappear. I can't prove that there is a direct connection, though. The setting must be saved for this to happen, merely looking at it doesn't affect it.
_________________
Sic itur ad astra.
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Feb 12, 2009 1:11 am   
 
I tried creating a syntax error in an alias with a parameter list and could not get it to fail.

I'm afraid that until you are able to come up with a specific procedure for reproducing this (or someone else is able to), then there isn't much I can do about it. I can't fix it if I can't reproduce it, sorry.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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