Problem presumably with carriage returns in mudtitle.

Posted by Limousinedriver on Thu 29 Apr 2004 05:20 AM — 9 posts, 25,606 views.

#0

What is
wrong 
here?


becomes


What is
       wrong
            here?


This is only when the loading screen 'mudtitle.*' is up. I can't seem to figure out what it is. If it's carriage returns (current suspicion) how do I insert one using notepad?

Any help regarding this frustration is appreciated.
Amended on Thu 29 Apr 2004 06:42 AM by Nick Gammon
USA #1
What exactly is the problem? The two things you posted look identical to me...
Australia Forum Administrator #2
I added [code] so we could see the problem.

What client are you using? Most clients will treat a newline as starting a new line (ie. an implied carriage-return).

However you are right, it seems to be missing a carriage-return. You will probably find this causing grief in other places, a lot of Unix code assumes that a newline is all that is required at the end of a line, not a carriage-return as well.

As for adding them, use the utility Dos2Unix (free download on this site) to fix up the line-endings. Or change clients. :)
#3
Well, that's just it. The problem happens with both CCTerm and Telnet. I'm surprised, because I don't notice this problem with other Smaug-implementations using those two programs.


Also, I did use the dos2unix, unix2dos utilities. It didn't fix the problem.

So, I'm really confused about this.
Australia Forum Administrator #4
You want unix2dos - that will change \n to \r\n - you probably need to restart the MUD afterwards. However there is no logical reason that won't work.
#5
I tried using the unix2dos. I rebooted the mud, it still isn't working.

Could you possibly suggest an editor that I could use? I'm using Win98. Is there an editor that you used on these title files that I could use?

I dunno, I'm really at my wit's end on this one.

Australia Forum Administrator #6
Try UltraEdit.

It does those conversions, and has a hex mode so you can see exactly what is in the file.

Are you sure you changed the right file? Try changing the text as well.
#7
I'll give it a shot, thanks!

Also, the changes did happen to the right file. And I didn't need to reboot SMAUG either ^^
#8
Thanks guy! That really really helped me out!

Hurray, one headache down...several million more smaug-related headaches to go :P