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


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Jan 30, 2010 8:09 am   

[3.13] Window captions and variables and functions "bug"
 
Quick and simple.

1. Escape to untitled session.
2. #VAR test "testvar"
3. #WIN TestWin
4. Change the caption for TestWin to @test.

As you can see, it's clearly not scoping the variable from the main window. Don't know if this is intended or not, but it'd be nice to be able to store a variable in one window and let other windows have access to it.

Charneus
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sat Jan 30, 2010 2:30 pm   
 
If I remember correctly variables are not supposed to be visible across windows generally.
If you want the variable test to be seen across windows you should place it within a shared package.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sat Jan 30, 2010 4:08 pm   
 
or in a module
_________________
Discord: Shalimarwildcat
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Jan 30, 2010 5:32 pm   
 
Sigh. Of course. The problem is, it's just one variable, and I shouldn't have to do that for one variable. One thing I'm concerned about is if I place the script (which just logs channels) into a module, the script itself will try to activate in the chat window as well. Oh well...

Charneus
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sat Jan 30, 2010 11:23 pm   
 
can each window run its own #log file?
_________________
Discord: Shalimarwildcat
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jan 31, 2010 1:01 am   
 
It's more than just that, shalimar. I have each channel captured to its own individual file. Regardless, for whatever reason, it seems to be working now, and I hadn't made any changes to it... very weird...
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