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


Joined: 07 Dec 2007
Posts: 6

PostPosted: Fri Dec 07, 2007 4:36 am   

[2.16] %numparam stops working, Found!
 
Didn't have any existing code that used it before the switch to 2.15, but used the examples listed in the helpfile and could not get either of them to work. Has the command worked in earlier versions?

Editted by Vijilante: I wanted to update the title so this doesn't get lost.
Reply with quote
ReedN
Wizard


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

PostPosted: Fri Dec 07, 2007 4:53 am   
 
Works just fine for me. I created an alias put a say statement with the function as in:

#say %numparam

and it worked like a charm when I called it.
Reply with quote
Xanxis
Newbie


Joined: 07 Dec 2007
Posts: 6

PostPosted: Fri Dec 07, 2007 4:57 am   
 
Tested it again and it is working now, but it definitely was not working before.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Dec 07, 2007 12:54 pm   
 
This is an old item we have been trying to track down. Something causes that function to stop working, but closing and relaunching CMud sets it back to right. I actually have an alias in my session to check it periodically, and I have yet to catch anything causing it to start failing.

In a way it is good to know the bug is still hiding. If we all keep looking for it one of us will ultimately be able to come up with a list of activities that caused it, and then we can narrow it down to some specific interraction.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Dec 08, 2007 11:31 pm   
 
Yay! Bump this into 2.16 and I have a way to replicate it now, but it requires dancing through another bug that seems to be specific to my packages and session. Basically I somehow managed to get a screwed up state in my session with COM that seems to be ongoing. I am looking into tracing that. Once this state gets screwed up the right way then the %numparam bug surfaces.

Hopefully I will have some good news about this soon.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Dec 08, 2007 11:48 pm   
 
Success! At least for this way to break %numparam. I am actually guessing the fault is somewhere in the MXP display because I reduced it right to this.

Procedure
1. Launch CMud
2. Close Sessions window
3. Enter at the command line
Code:
#SHOW %numparam()
#SHOW "<COMObject>"
#SHOW %numparam()


Now I can move on to trying to track down the whole interaction that is breaking COM.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Dec 09, 2007 9:59 am   
 
Confirmed.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Dec 11, 2007 6:13 pm   
 
Confirmed! Good catch. What's really serious about this is that it seems to break %numparam() for good after that. I used:
Code:
#ALIAS test {#SHOW %numparam();#SHOW "<COMObject>";#SHOW %numparam()}
test 123

to test is, and %numparam works the very first time, but then never again. So I'll definitely try to get this fixed for the public version.
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Dec 11, 2007 8:35 pm   
 
Found it! This was definitely obscure. It didn't actually have anything to do with MXP. It was just a typo in the code buried in an obscure place. It only effected %numparam after a line was sent to the screen. It could also cause %numparam to effect the AutoAppend option for aliases. Anyway, fixed in 2.17.
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