Gammon Forum
Entire forum
SMAUG
SMAUG coding
Ansi title
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Pages: 1 2
Posted by
| Johny
USA (16 posts) bio
|
Date
| Tue 22 Feb 2005 10:46 PM (UTC) |
Message
| I already have my ansi title ready, I even added it to the greeting helpfile, but for some reason it won't work. I get the title screen as if it should show all the coding, like &W and &z.
Anyone mind helping me on this one? |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #1 on Wed 23 Feb 2005 02:23 AM (UTC) |
Message
| You have to define send_to_char as send_to_char_color, it's explained in the Smaug docs. It's also been answered here, so do a search. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Johny
USA (16 posts) bio
|
Date
| Reply #3 on Thu 24 Feb 2005 11:41 PM (UTC) |
Message
| I looked at it, and I'm not enitrely sure if mine is the same as how Nick Gammon explain it. Because he said hit CTRL V ESC or CTRL ESC or something to get a ^[ to appear, but when I checked my color.h file it said that I had to type \e in front of it...
Correct me if I misunderstood something. |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | top |
|
Posted by
| Johny
USA (16 posts) bio
|
Date
| Reply #4 on Thu 24 Feb 2005 11:56 PM (UTC) |
Message
| Yes, just moments after I post I post again. This time the code is gone, but the color still is gone as well, so I begin to try again. |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | top |
|
Posted by
| Greven
Canada (835 posts) bio
|
Date
| Reply #5 on Fri 25 Feb 2005 12:27 AM (UTC) |
Message
| What did you change already? You should be able to modify it to print the colors by changing this: /*
* Send the greeting.
*/
{
extern char *help_greeting;
if (help_greeting[0] == '.')
send_to_desc_color(help_greeting + 1, dnew);
else
send_to_desc_color(help_greeting, dnew);
}
|
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | top |
|
Posted by
| Johny
USA (16 posts) bio
|
Date
| Reply #6 on Fri 25 Feb 2005 12:35 AM (UTC) |
Message
| After working on my title for a bit unsucessfully past my last point, actually degrading in some points, I did a reboot mud now. After this reboot, it wouldn't allow me to reconnect the server. Not the best thing to happen. |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | top |
|
Posted by
| Greven
Canada (835 posts) bio
|
Date
| Reply #7 on Fri 25 Feb 2005 12:38 AM (UTC) |
Message
| Why is it not working? Is it not loaded, or does it crash when it loads? Try using GDB to see whats happening. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | top |
|
Posted by
| Asean Novari
USA (82 posts) bio
|
Date
| Reply #8 on Fri 25 Feb 2005 12:51 AM (UTC) Amended on Fri 25 Feb 2005 12:58 AM (UTC) by Asean Novari
|
Message
| I suggest using a normal notpad program of some sort to edit the greeting..
[0;0;30m
^ ^ ^ ^
|..|..|..|
|..|..|. Color of text
|..|. 0 = not bright 1 = bright
|. Prevent color bleed
escape char |
| top |
|
Posted by
| Johny
USA (16 posts) bio
|
Date
| Reply #9 on Fri 25 Feb 2005 12:52 AM (UTC) |
Message
| Where would I edit this?
It crashes when it loads.
*Doesn't know what GDB is*
It says Reading in area files or something then it crashes. |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #10 on Fri 25 Feb 2005 12:58 AM (UTC) |
Message
| |
Posted by
| Johny
USA (16 posts) bio
|
Date
| Reply #11 on Fri 25 Feb 2005 01:09 AM (UTC) |
Message
| Ok, how do I make the ESC char then? Everywhere I look it says type CTRL ESC and that just switches my windows.
Thank you Zeno for the GDB info, but what does it do?
I must've made myself look extremely stupid thanks to my slow computer, by now you've typed something new too I bet. |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #12 on Fri 25 Feb 2005 01:10 AM (UTC) |
Message
| I don't know how to make an ESC character in Windows, only in *nix.
GDB is a debugger, it'll tell you whats wrong. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Greven
Canada (835 posts) bio
|
Date
| Reply #13 on Fri 25 Feb 2005 01:22 AM (UTC) Amended on Fri 25 Feb 2005 01:31 AM (UTC) by Greven
|
Message
| You shouldn't have to use the manual color, if you use sent_to_desc_color, it will convert the color codes for you. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | top |
|
Posted by
| Johny
USA (16 posts) bio
|
Date
| Reply #14 on Fri 25 Feb 2005 01:29 AM (UTC) |
Message
| Ok, then how do I use send_to_char_color?
I also guess I can't get GDB for now, otherwise I'd have to wait for a day or two for my computer to reload. |
Johny the Homicidal Maniac
...More like...
Johny the Idiodical Maniac
Heh
Owner of Some Future Mud That Isn't Open to Public | 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.
44,042 views.
This is page 1, subject is 2 pages long: 1 2
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.