About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Dimension
Newbie


Joined: 17 Sep 2004
Posts: 2

PostPosted: Fri Sep 17, 2004 11:22 am   

Echoing a text file
 
I'm having the darnedest time trying to figure this out.

I just like to echo a text file to the mud screen. I don't want to send any commands, I just want the text displayed in an echo.

Thanks for your help.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Sep 17, 2004 12:50 pm   
 
#TYPE 1
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
Dimension
Newbie


Joined: 17 Sep 2004
Posts: 2

PostPosted: Fri Sep 17, 2004 3:36 pm   
 
thanks

its more like

#file 1 readme.txt
#type 1

but I figured it out... I just thought there would be a dedicated command.

kinda like #send
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Sep 18, 2004 3:56 pm   
 
Since I showed the #TYPE command referring to a filenumber, rather than a filename, I didn't think you'd need to be told to open the file.

There is a dedicated command, #TYPE. There just isn't one that allows you to use a filename. Of course, you could easily create one yourself using #ALIAS.

#ALIAS type {#FILE 1 %-1;#TYPE 1;#CLOSE 1}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
Thrillhouse8
Beginner


Joined: 21 Sep 2004
Posts: 18

PostPosted: Sun Sep 26, 2004 10:36 am   problem with opening files
 
I might not be in my right mind at the moment, but I can't seem to read from files. If I open a file using #file X filename.txt, it displays that I've opened filename.txt as file X. It creates a shortcut to a blank file on my desktop, and it seems to read from that blank file, instead of the one intended(located with the base zmud/zmud.exe directory). I ran into a similiar problem with a script I've, although it's a .dat file, in that it does not actually read from the file.
Reply with quote
Thrillhouse8
Beginner


Joined: 21 Sep 2004
Posts: 18

PostPosted: Thu Sep 30, 2004 8:06 am   hrm
 
well, i copied the actual files to the desktop, and zmud can read from them fine now. is there a reason behind this, that it would read c:\....\desktop\text.txt but not c:\zmud\text.txt?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Sep 30, 2004 9:57 am   
 
Most likely the shortcut you launched zMud with is on your desktop, and does not have the working directory field set correctly. Right-click on the shortcut and select Properties. Fill in the working directory field with the correct location.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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