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
jobs
Beginner


Joined: 16 Jul 2002
Posts: 12
Location: Denmark

PostPosted: Mon Apr 23, 2007 3:29 pm   

[V1.29] Copy/Paste into Cmud
 
Hi there,

I have a problem with copy/pasting text from notepad into Cmud. The text gets all mangled up. Line spacing and such is removed and it all is thrown together into one big block of text.

Some lines are moved from the middle and to the very end of the text and so on.

In Zmud it works like a charm, but not in Cmud. I tried checking several options and such without any luck.

Any ideas on what could be wrong?

Running Windows Vista Ultimate.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Apr 23, 2007 3:53 pm   
 
Do you mean when you paste text into the Script Text box in the Package Editor, or onto the command line? I can't get it to fail using some test code. Seeing exactly what you're trying to paste might help.
Reply with quote
jobs
Beginner


Joined: 16 Jul 2002
Posts: 12
Location: Denmark

PostPosted: Mon Apr 23, 2007 4:44 pm   
 
Fang Xianfu wrote:
Do you mean when you paste text into the Script Text box in the Package Editor, or onto the command line? I can't get it to fail using some test code. Seeing exactly what you're trying to paste might help.


Sorry for not being more descriptive. I wrote something in notepad that I wanted to paste into a mail within a MUD. The Mail editor in the MUD always worked with pasted text within Zmud, but in Cmud it messes up seriously.

So to answer your question, it is the command line I paste into and it looks fine in the command line, but upon hitting ENTEr and sending the text to the mail system in the MUD, it gets messed up. All line breaks are gone and som lines are, somehow, moved to the ed of the mail.

I will include the text I am trying to paste into the MUD below here.


Code:
 Greetings,

 I write this letter in the hope that I might finally
be listened to on this subject.

 A few days ago our racks were CLEANED by a thief and
we have no way to find out who did it. I cannot accept
this situation anymore.

 We NEED a system to prevent such theft from happening
and we needed it ages ago. It is not my intention to
sound rude or anything, and I know the old 'wiz and
code it yourself' applies here as well, but I am not
a coder and I have no interest in leaving mortal life
behind.

 I have been elected to lead a guild and as it is now, I
cannot do that. The only major problem we have is theft
and I cannot deal with it as it is now.

 What is needed is an active wizard to maintain the guild
code. I care not if this active wizard can spend hours daily
or only a few hours weekly. But we need one that is around
and actively working on the guild.

 A system like the cadet racks would be the best solution
for us. One where the member earns points for loot brought
back and spends those earned point when taking out items
from the rack.

 As it is now, a newbie can go here, join and clean the
racks without anyone being able to do anything about it.

 The game has problems enough with keeping people around and
for the gladiators to see their weeks work of EQ gathering go
down the drain because some swine decides to clean the racks
is not beneficial for anyone.

 So PLEASE help us out.


 Avatar Ligonier, High Overseer


The reason why I move the first line of a new sentence into the line is that Zmud would otherwise remove the first CAPPED letetr in each new sentence. I tried not doing this in Cmud and it gives the same result.

The result of pasting the above letter to a letter inside the MUD is this:


Code:
Message: 23
From   : Avatar
Subject: test
To     :
CC     : Avatar
Date   : Mon Apr 23 18:43:03 2007

Greetings ,
I write this letter in the hope that I might finally
be listened to on this subject.
A few days ago our racks were CLEANED by a thief and
we have no way to find out who did it. I cannot accept
this situation anymore.
We NEED a system to prevent such theft from happening
and we needed it ages ago. It is not my intention to
sound rude or anything, and I know the old 'wiz and
code it yourself' applies here as well, but I am not
a coder and I have no interest in leaving mortal life
I have been elected to lead a guild and as it is now, I
cannot do that. The only major problem we have is theft
and I cannot deal with it as it is now.
What is needed is an active wizard to maintain the guild
or only a few hours weekly. But we need one that is around
and actively working on the guild.
A system like the cadet racks would be the best solution
for us. One where the member earns points for loot brought
back and spends those earned point when taking out items
from the rack.
As it is now, a newbie can go here, join and clean the
racks without anyone being able to do anything about it.
The game has problems enough with keeping people around and
for the gladiators to see their weeks work of EQ gathering go
down the drain because some swine decides to clean the racks
is not beneficial for anyone.
So PLEASE help us out.
Avatar Ligonier, High Overseer
code. I care not if this active wizard can spend hours daily
behind.

[1-23 adefFhHmnpqrRsux.!?] (current: 23) --


Note how the code. I care not if this active wizard can spend hours daily
behind.
line is moved from within a sentence in the middle of the text and to the end AFTER my name in the mail.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Apr 23, 2007 5:02 pm   
 
When you paste a multiline command into the CMUD command line, it gets parsed and treated as a CMUD script. To send the text to the MUD verbatim, you need to press Ctrl-R to toggle the Parse option on the command line.

The Editor in CMUD is better used for this kind of thing. Press Ctrl-Shift-Enter to open the editor and paste your multi-line text into it. Look in the Editor Options and make sure the Parse option is turned OFF. Then press Ctrl-Shift-Enter again to send the whole thing to the MUD. Because the Editor and the Command Line have separate "parse" options, it's easy to use the Editor for multiline text or for MUD coding. The command line can then be used for CMUD scripts.

Or, like I said, if you don't want to use the Editor, then pressing Ctrl-R to toggle parsing on and off is the other option.

zMUD "worked" because zMUD doesn't have a robust multi-line script syntax like CMUD does. CMUD isn't zMUD.
Reply with quote
jobs
Beginner


Joined: 16 Jul 2002
Posts: 12
Location: Denmark

PostPosted: Mon Apr 23, 2007 7:34 pm   
 
Zugg wrote:
When you paste a multiline command into the CMUD command line, it gets parsed and treated as a CMUD script. To send the text to the MUD verbatim, you need to press Ctrl-R to toggle the Parse option on the command line.

The Editor in CMUD is better used for this kind of thing. Press Ctrl-Shift-Enter to open the editor and paste your multi-line text into it. Look in the Editor Options and make sure the Parse option is turned OFF. Then press Ctrl-Shift-Enter again to send the whole thing to the MUD. Because the Editor and the Command Line have separate "parse" options, it's easy to use the Editor for multiline text or for MUD coding. The command line can then be used for CMUD scripts.

Or, like I said, if you don't want to use the Editor, then pressing Ctrl-R to toggle parsing on and off is the other option.

zMUD "worked" because zMUD doesn't have a robust multi-line script syntax like CMUD does. CMUD isn't zMUD.


Just tried out the editor and it worked like a charm :)

Thank you for the VERY fast feedback.
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