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


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri May 16, 2008 7:41 pm   

Request: additional parameter for #TYPE
 
I would like for the #TYPE to have it 1 additional optional parameter - name of the output window
#TYPE filenum pattern window
because to show some text from a file in a child window, currently you have either put entire (#FILE-#TYPE-#CLOSE) sequence in a setting withing child window or enclose it (sequence) with #EXECWIN. The
problem is that you can access opened file only from window that issued the #FILE command and can't redirect #TYPE output on the fly. So the following syntax will not work:

#FILE ....
:child: #TYPE ...
#CLOSE ...

#FILE ...
#EXECWIN child {#TYPE ...}
#CLOSE

You must use #EXECWIN child {#FILE ....;#TYPE ...;#CLOSE ...} while the only 1 additional parameter to the #TYPE command could easily solve the problem and add some flexibility to scripting.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Tue May 20, 2008 9:40 pm   
 
Now I can see from where the problem with #TYPE and child windows is come from. It looks like CMUD allows to have 10 opened files per window. Not per session or package, but per window, including child windows. I wonder why it was not mentioned in help. (or it is a bug?)
Code:

for "TestSession" session:
=================
#FILE 1 Test1.txt
:Child: #FILE 1 "TestSession\Test2.txt"
#CLOSE 1
:Child: #CLOSE 1


Main window output:
=============
Opened Test1.txt as file 1
Closed X:\Program Files\CMUD\TestSession\Test1.txt on file 1


Child window output:
=============
Opened Test2.txt as file 1
Closed X:\Program Files\CMUD\TestSession\Test2.txt on file 1


Nevertheless, it does not affect my original request. The #TYPE command right now is just not flexible enough.

UPDATE: sorry, I've fixed wrong filename in output text. Rolling Eyes
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Fri May 30, 2008 1:28 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
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Sat May 31, 2008 1:31 pm   
 
Would be nice, but going to be low priority unless a bunch of people come out and say they would use it.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Sat May 31, 2008 7:48 pm   
 
From one side, it definitely will have low priority. From other side, I don't think it'll take too much time to add an extra parameter, and different window handling already polished in #SAY and :window: commands.
Anyway, I just wanted to bump this thread because Zugg had not read it. Wink

Btw, Dumas, your vote for this request already have increase chances it will be implemented. Smile
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Sun Jun 01, 2008 3:15 am   
 
Yeah, but unfortunately my scripting attempts ended before CMUD was even released. I focus most of my mudding attention on mapping.
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