Gammon Forum
Entire forum
SMAUG
SMAUG coding
Compass Display Snippet and my own stupidity
Compass Display Snippet and my own stupidity
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Fri 22 Aug 2003 06:07 AM (UTC) |
Message
| I would remove (or comment-out) that code from nanny, and change the sequence of states so that it skips that state, and also set the race as the default when it creates a new character. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Rob Harper
(108 posts) bio
|
Date
| Reply #1 on Fri 22 Aug 2003 06:42 AM (UTC) |
Message
| Ahh, thanks nick, orignally thats what I did (removing the asking part). My problem is I dont know where to set the default race so that it knows to make every new charecter "Human". | top |
|
Posted by
| Jach
USA (25 posts) bio
|
Date
| Reply #2 on Sat 23 Aug 2003 12:29 AM (UTC) |
Message
| This may be my own blatant idiocy but I've installed the Compass Display Snippet from Samson and am running into a small problem.
After editing the color codes and changing the basic spacing I've hit a snag. What's happening is when the room I'm in has only N,S,E, or W exits everything is fine. However, when the room has NW or SW exits everything on that line, after that exit gets shifted 1 space to the right. This only affects the N, NE and S, SE exit display.
I know there is a way to stop this, but I seem to be unable to figure it out. Any help will be greatly appreciated. |
"Adults are obsolete children."
Dr. Seuss | top |
|
Posted by
| Rob Harper
(108 posts) bio
|
Date
| Reply #3 on Sat 23 Aug 2003 03:13 AM (UTC) |
Message
| How the hell did my message merge with this one... | top |
|
Posted by
| Jach
USA (25 posts) bio
|
Date
| Reply #4 on Sat 23 Aug 2003 03:14 AM (UTC) |
Message
| Good question...I'm curious myself. |
"Adults are obsolete children."
Dr. Seuss | top |
|
Posted by
| Greven
Canada (835 posts) bio
|
Date
| Reply #5 on Sat 23 Aug 2003 03:33 AM (UTC) |
Message
| As for your compass display stuff, is any part of it referencing strlen for the formatting part? Cause if so, and you added some colors, it will count the color code as well, but that seems unlikely if only N, Ne and S, Se are affected. Are you using something like "%-2s" to format the spacing? |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | top |
|
Posted by
| Jach
USA (25 posts) bio
|
Date
| Reply #6 on Sat 23 Aug 2003 07:44 AM (UTC) |
Message
| Ok...it was my stupidity. After thinking about it away from the computer I realized my mistake. Thanks for the reply anyway.
One more thing however, Players still aren't able to save. I've done just about everything suggested in all the threads I searched up and it still isn't working. I'm running the winsmaug distribution downloaded from this site and compiling with Visual Studio 6 on an XP machine. I tried compiling with Cygwin and it still didn't work. Any further suggestions would be greatly appreciated. |
"Adults are obsolete children."
Dr. Seuss | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #7 on Sun 24 Aug 2003 05:12 AM (UTC) |
Message
| If you are using Visual Studio, do a debug build and put a breakpoint on the save code, then see what happens. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Jach
USA (25 posts) bio
|
Date
| Reply #8 on Sun 24 Aug 2003 07:05 AM (UTC) |
Message
| Did that and got nothing...everything compiled normally but still won't save. Unless I did it wrong, which is a possibility since I just got back from work and am extremely tired. |
"Adults are obsolete children."
Dr. Seuss | top |
|
Posted by
| Jach
USA (25 posts) bio
|
Date
| Reply #9 on Sun 24 Aug 2003 08:59 PM (UTC) |
Message
| Problem solved. Thanks for the help. |
"Adults are obsolete children."
Dr. Seuss | 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,017 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.