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
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jan 14, 2008 2:05 am   

[2.18] %db() bug **Problem located**
 
I don't know why it is, but I've been having this problem lately. If I keep CMUD up and running, %db stops working. For instance, one of my aliases shows this:

Code:
%if( %0, %0, %db( @Level_Info_DB, ReportChannel)) " ~@RL~@rast etc..."


When I start up CMUD, it works fine. Reports on the hour, every hour. But after a couple of hours of runtime, it doesn't work anymore. Instead of sending:

Code:
gt @RL@rast etc...

which is default, it sends
Code:
 @RL@rast etc...

dropping what's in %db(@Level_Info_DB, ReportChannel). And while:
Code:
#SHOW @Level_Info_DB.ReportChannel

reports gt,
Code:
#SHOW %db(@Level_Info_DB, ReportChannel)

returns a blank.

I'm not sure if it has anything to do with my earlier bug report of aliases affecting %eval, and I doubt that it that is the case, since other functions work well, not to mention nothing has really changed except the uptime. Has anyone else experienced this problem? If need be, I can send my package, and someone can check to see if that's the problem...

Charneus


Last edited by charneus on Mon Jan 14, 2008 6:01 am; edited 1 time in total
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Jan 14, 2008 3:49 am   
 
Your first example needs updating, assuming that that's the full line. It seems to be, given the way you talk about it sending something.

But since it's failing when the line begins with a command as well, it might not solve the problem.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jan 14, 2008 4:01 am   
 
Fang Xianfu wrote:
Your first example needs updating, assuming that that's the full line. It seems to be, given the way you talk about it sending something.

But since it's failing when the line begins with a command as well, it might not solve the problem.
Right. That's not the problem. I was using that as an example, and in this case, without a start command, it still works. The main issue lies with %db(@blah, blah) not working after a while. It doesn't matter if you put #EXEC, #CALL, #SHOW, or whatever in front of it. It does not work. Even still, I know I need to update the start commands. *shrug*

Charneus
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jan 14, 2008 6:04 am   
 
I managed to (once again) find the problem with the function.

If you have a database open (I use one for my findmob script), it disables usage of %db. You can also close the database, but it still won't allow %db to work unless you type #DBCLOSE on the command line. Figured it out when I closed CMUD and realized I still had my database open.

Databases should have no effect on the internal command %db. Just like aliases should have no effect on %eval. Something to look into.

Charneus
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jan 14, 2008 5:58 pm   
 
Hmm, it shouldn't be disabling %db. When you have a database open, the %db function can be used to access the current record of the database. But that shouldn't effect the other normal operation of %db. I'll look into it.
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Apr 24, 2008 10:07 pm   
 
Fixed for v2.23
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