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
➜ MUDs
➜ General
➜ Need help with $
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Taishar
(3 posts) Bio
|
Date
| Tue 14 Sep 2004 01:52 AM (UTC) |
Message
| I recently started a brand new RoT 1.4 code and seem to have parser problems with the mud reading $ as S. I was wondering if there was a way to root this out or if anyone may have an idea why the mud is reading $ as S. Thanks
| Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Tue 14 Sep 2004 03:59 AM (UTC) |
Message
| What OS are you running under and where is it reading $ as S? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Taishar
(3 posts) Bio
|
Date
| Reply #2 on Tue 14 Sep 2004 08:36 AM (UTC) |
Message
| I believe it is a unix/linux based server. The command isn't reading within the actual MUD. Via say via channels via socials. It's been tested out on multiple mud clients but it's the MUD code itself reading the $ and repeating it as a S. So when you sedit a social instead of $n being read for input it displays Sn hmmms loudly.
| Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Tue 14 Sep 2004 03:25 PM (UTC) |
Message
| But when you read it from area files, it seems to read the $ symbol correctly? Like the builtin socials, do their $ symbols work?
This could be a "feature" of the RoT codebase, but I can't think why they'd do that... |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Tue 14 Sep 2004 09:22 PM (UTC) |
Message
| Here is what might be happening, although I haven't looked at the RoT code.
If the display routine always converts $n to "player name" then it might have something in its input routine to change $ to S so that you don't have something like this:
Hello $n there.
... come out with a substitution. Sounds like a hack to me, but I would search for '$' in the code (with the quotes) and see if you can find where it does it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #5 on Tue 14 Sep 2004 10:23 PM (UTC) |
Message
| I'd be kind of surprised if it were a MUD codebase bug... I mean, you'd think they'd have noticed it or something. :-)
But it very well could be, so I'd suggest doing what Nick suggested. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Taishar
(3 posts) Bio
|
Date
| Reply #6 on Wed 15 Sep 2004 04:19 AM (UTC) |
Message
| Alright I'll start to see if I can find that and see what is going on. As for the BUG, I don't think all of the RoTs have it but this particular modified version might be an exception, it's a little one, but very frustrating :P
To answer Ksilyan's question a bit:
Examples of how it converts $ to S
say $
You say (OOC) 'S'
sedit cnoarg hmm $n mutters hmmm loudly.
New message is now:
Sn mutters hmmm loudly.
[Global Social] 'Sn mutters hmmm loudly.'
It's the oddest thing I've seen thus far working with it :P | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #7 on Wed 15 Sep 2004 06:18 PM (UTC) |
Message
| No, I see that it does that run-time, but what about when it reads in the files at boot? Do the socials work before you modify them? (and do they use the $ symbol?) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Marowi
(65 posts) Bio
|
Date
| Reply #8 on Fri 17 Sep 2004 05:06 AM (UTC) |
Message
| I've never used the codebase before, but is it possible that they've attempted a symbol -> text converter, to stop the '$1LL`/' people. i.e. '$' is translated to 'S' in its every instance? | 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.
20,235 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top