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
kiraile
Newbie


Joined: 31 Jan 2003
Posts: 4
Location: Germany

PostPosted: Fri Dec 21, 2007 7:27 pm   

importing .txt files
 
hi

i am having a problem importing scripts from txt files. i just cant seem to find how to do it.
the package editor has a menu option but t does nothing unless i have a trgger/alias highlighted and then it just pastes the script into the trigger.

what i want to do is import the full script and not 1 trigger at a time.
any ideas?
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Fri Dec 21, 2007 7:40 pm   
 
For most things you can open the text file. select all, copy, then paste into the command line and hit enter.

It has been a while since I tried to import a text file the correct way but I think it goes like this.

Nevermind... There doesn't appear to be a correct way other than what I just mentioned. Maybe someone else will see what I missed.

Be sure to check your database variables after the import as you may still need to import them manually...
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Fri Dec 21, 2007 7:44 pm   
 
BTW make sure that word wrap is turned OFF in the text editor that you are copying from.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
kiraile
Newbie


Joined: 31 Jan 2003
Posts: 4
Location: Germany

PostPosted: Fri Dec 21, 2007 7:48 pm   
 
thats how i resorted to doig it.
not ideal but at least it works.
thanks
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Dec 21, 2007 8:52 pm   
 
CMUD doesn't export text files, so it also doesn't import them.

This doesn't really matter, though, since zMUD's exported text files were just command-line parseable text anyway. Pasting it onto the command line will work fine. You can also use the editor to use more advanced features like sending line-by-line.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Fri Dec 21, 2007 10:27 pm   
 
I haven't tested it but couldn't one use the #READ command to accomplish this?
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Dec 21, 2007 10:46 pm   
 
You could, yes, but that'd require putting the file in a directory where CMUD will find it, or using an absolute path. It'd probably be more convenient to use the GUI.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jan 07, 2008 10:08 pm   
 
The Actions/Execute Script menu command will also do this.
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