Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ Problem presumably with carriage returns in mudtitle.
Problem presumably with carriage returns in mudtitle.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Limousinedriver
(11 posts) Bio
|
Date
| Thu 29 Apr 2004 05:20 AM (UTC) Amended on Thu 29 Apr 2004 06:42 AM (UTC) by Nick Gammon
|
Message
|
becomes
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. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Thu 29 Apr 2004 05:46 AM (UTC) |
Message
| What exactly is the problem? The two things you posted look identical to me... |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 29 Apr 2004 06:44 AM (UTC) |
Message
| 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. :) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Limousinedriver
(11 posts) Bio
|
Date
| Reply #3 on Thu 29 Apr 2004 06:15 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #4 on Fri 30 Apr 2004 10:02 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Limousinedriver
(11 posts) Bio
|
Date
| Reply #5 on Sat 01 May 2004 07:20 AM (UTC) |
Message
| 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.
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sat 01 May 2004 07:25 AM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Limousinedriver
(11 posts) Bio
|
Date
| Reply #7 on Sat 01 May 2004 06:18 PM (UTC) |
Message
| 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 ^^ | Top |
|
Posted by
| Limousinedriver
(11 posts) Bio
|
Date
| Reply #8 on Sun 02 May 2004 06:17 AM (UTC) |
Message
| Thanks guy! That really really helped me out!
Hurray, one headache down...several million more smaug-related headaches to go :P | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
19,262 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top