 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sun Jan 27, 2008 1:02 pm
[2.18] #RESET affecting all sessions at once |
Edit: It's not just two of the same session, it applies to all open sessions. I.e. #RESET is global not local
Create a new session with a single variable, test, with a default value 'defval'. Set it to use the default value
#reset
#say @testvar
shows 'defval' as expected.
Now open a second instance of the session and type
#show @testvar
shows 'defval' as expected.
in the 2nd session type
testvar = 123
#show @testvar
shows '123' as expected.
in the 1st session type
#RESET
now in both sessions you'll find that @testvar is 'defval', when it should still be '123' in the 2nd session
This is causing some considerable irritation when multiplaying |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Last edited by Guinn on Sun Jan 27, 2008 9:57 pm; edited 2 times in total |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Jan 27, 2008 3:04 pm |
My intuition is that this is a result of the Shared setting, which causes only one copy of the package to be loaded in memory. Have you tried with that setting off?
|
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sun Jan 27, 2008 3:16 pm |
Makes no difference whether shared is checked or not
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sun Jan 27, 2008 9:56 pm |
Actually, it doesn't even need to be instances of the same package. Using #RESET in any session resets every session.
Definitely a bug as #RESET shouldn't be global. |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jan 28, 2008 5:47 pm |
You should add an argument to #RESET to tell it exactly which class folder or module/window to reset. #RESET without any arguments *does* reset all packages, because it has no way to tell which packages are actually part of a specific session. For example, you might be using shared packages between multiple sessions, etc. So, it is currently working as designed.
|
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sun Feb 03, 2008 5:44 pm |
Not sure what the syntax would be to just do the current window.
If I'm multiplaying I'll have 2 or 3 'blahMud' windows open.
I want the window it's being called from to reset, but if I use %window then it's not unique. |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Fri Feb 08, 2008 12:08 pm |
You can identify a window by using %id, but the problem then is that #RESET thinks you mean a file.
Can anyone help with the syntax to reset the current window, bearing in mind there may be two windows with the same name and I don't want to reset all instances.
Maybe if you need to use %id then #RESETFILE should reset files and #RESET should just be for settings? |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
|
|