color (something we all want)

Posted by Syneris on Mon 28 May 2001 08:13 AM — 6 posts, 21,680 views.

#0
i manuall added the lope color patch v2.0
it compiles with many warnings in comm.c
warning C4129: 'e' : unrecognized character escape sequence
While running the server i get many bugs
BUG: Act: bad code 36.
this seems to happen whenever a mob, player or object is
displayed. here is an example of when i get the bug
player1 says hi and it displays
e[0;32mYou say 'e[1;32m <@@@> Te[0;32m'e[0m
player2 sees <@@@> n says ' <@@@> T'
the <@@@> seems to trigger the bug. once for each
time <@@@> is displayed.
there is no color.
Australia Forum Administrator #1
Can you give me the URL of the patch you used?

It seems to me that your problem is the \e problem, as it is essential for colour to work that this particular character is sent properly (it is the "escape" character).

#2
http://darkoth.kyndig.com/Code/colour_V2.0.tar.gz
using the file patch_rom24_colour2
patching to basic rom24 source code (windows)
repatched a fresh copy and that is still the
only problem it is having compiling
Australia Forum Administrator #3
The Microsoft compiler doesn't recognise the \e sequence as "escape".

You need to do a change-all from:

\e

to

\x1B

#4
thanks, that got color working.
still having the <@@@> problem
think it has to do with the $n and other $
for mobs/players/objs etc
the compiler showed no errors or warnings
when i built
Australia Forum Administrator #5
It's hard to say for me. Debugging other people's patches goes a bit outside the scope of what I am trying to offer on this forum, but maybe someone else knows the answer.