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
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Nov 27, 2007 9:26 pm   

[2.13] %numparam()
 
I haven't been able to trace this one yet. I had this function start returning null in all usages to which I put it. I noticed this when some of my very old scripts failed. After tracking it to numparam I created a new alias and it returned null there as well. Closing CMud, and relaunching to test it further corrected the problem. This seems to indicate some sort of hidden bug.

I am wondering if anyone else has encountered such a problem with the current beta. We would probably have to confine ourselves to commands and functions that stop working, but work perfectly from a fresh launch. Perhaps if a few reports of such occurences come together a pattern can be found that might lead to a test procedure.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Nov 27, 2007 9:46 pm   
 
I seem to remember this or something similar being reported before. I think I might even have experienced it myself a long while ago.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Nov 27, 2007 10:01 pm   
 
Did you possibly move a script from one package to another or anything like that?

When something stops working like this, instead of relaunching CMUD, try going into the Package Editor and find the alias/script that isn't working and click the Compiled tab to force it to recompile and see if that helps. I'd definitely like to nail down this bug if we can find it.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Nov 27, 2007 10:37 pm   
 
All the scripts it failed in prior to the relaunch were compiled. In fact I was adding #SHOW at different points in those old scripts to find the problem, and they got recompiled every time. I am racking my brain for everything I possibly did before noticing the failure, but all I can come up with was launch, write some script, walk away to think about the design, repeat the last 2 for a few days. Finally connect to check for news, and realize something is broken. I seriously don't think I did much more then write a little bit of script and save changes periodically for 3 days in that launch; and that is what has me most concerned.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Nov 27, 2007 11:13 pm   
 
I had an odd %numparam bug from an old package too a few versions ago. Even though a reinstall fixed it I didn't feel a dodgy default.pkg was necessarily the cause.
These posts are probably what Fang is thinking about
http://forums.zuggsoft.com/forums/viewtopic.php?t=28647
http://forums.zuggsoft.com/forums/viewtopic.php?t=28631
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Nov 28, 2007 2:25 pm   
 
It's not a problem with compiling the script. I have a script in a secondary package. The script works from one mud session package but not from another. I had gotten it fixed by deleting the default.pkg and the mud package and regenerating them, as discussed in those other threads. But it seems to have stopped working again in one of my sessions since then.
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Nov 28, 2007 5:45 pm   
 
Rahab: check to make sure your package is enabled in both session windows. But I think this is different than what Vijilante is posting if your package doesn't work at all from another session. What Vijilante is saying is that his script stops working suddenly when connected to a single session for a long time, but that reloading CMUD fixes it.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Nov 28, 2007 9:31 pm   
 
Yes, the package is definitely enabled, and I've confirmed that %numparam simply isn't working in the one session. It is probably another "corrupted" session file. I will try (tomorrow) removing the session package and replace it. That fixed it last time. Not sure why it happened again.
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Nov 28, 2007 10:38 pm   
 
No, don't just fix it. Please help me try to figure out this bug. Send me the *.PKG file that isn't working and give me the steps to reproduce the problem that shows %numparam not working.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Nov 29, 2007 6:47 pm   
 
Ok, this is weird. I know %numparam wasn't working in this session yesterday, but today it is. I don't think I've done anything that could have affected it, except deleted a few unused variables. If it happens again, I'll try to track it down.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Nov 29, 2007 10:27 pm   
 
Still no joy on finding this for me. I have an alias that just does #SHOW %numparam(), and I keep checking it periodically as I write and test scripts. It has been perfectly solid with CMud running for a day so far. I just hope I am checking it often enough, while I am working, to be able to track it back to something when it does fail.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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