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
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri May 16, 2008 7:43 pm   

[2.25] #FILE in a child window
 
1) Create a test package. Name it, for ex., TPack
2) Open it and do the following:
Code:

#WIN Child
#ALIAS test_Main {#FILE 1 Test.txt;#CLOSE 1}
:Child: #ALIAS test_Child {#FILE 1 Test.txt;#CLOSE 1}


We have set up 2 similar aliases in the main and in the child window. Now call them


test_Main
:Child: test_Child


(I'm using WinXP and have CMUD data folder within Program Files)

test_Main output:
Opened Test.txt as file 1
Closed X:\Program Files\CMUD\TPack\Test.txt on file 1


test_Child output:
Opened Test.txt as file 1
Closed X:\Program Files\CMUD\Test.txt on file 1


You can see that #FILE in the child window is trying to open a file in CMUD folder, while #FILE in the main window correctly open a file in the session folder.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri May 30, 2008 1:29 pm   
 
Bump
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
Reply with quote
Zugg
MASTER


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

PostPosted: Fri May 30, 2008 4:51 pm   
 
This is normal. Your main window is associated with a character session and so the default folder is within the character's subfolder (TPack in your example). A Child window is not associated with a particular character...multiple character windows can share the same child window, for example. So there is no subfolder for it. So the default location is just the DataFiles location (which in your case is ProgramFiles/CMUD).

If you need to store in a specific file path, specify the full path in your #FILE command.

In zMUD, child windows were associated with a single session and didn't really have their own settings like in CMUD, so it was a bit different in zMUD. But it is working as intended in CMUD, sorry.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri May 30, 2008 5:03 pm   
 
Thanks for the explanation!
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
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