[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Running the server
. . -> [Subject]  Lopes Color Code

Lopes Color Code

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Bannon   (1 post)  [Biography] bio
Date Mon 07 May 2001 06:07 AM (UTC)
Message
Maybe this doesn't belong here, but I have had alot of success here so...

I have a copy of ROM24b6OLC running on my windows machine. I have been using MSVC++ to edit the code, and compiling with Cygwin. It works like a charm except my color code seems to be messed up. When it is used, the user sees this...

.[0;36m<20hp 100m 100mv>.[0m

Now I know those are ascii sequences, but I'm not at all familiar with lopes code, so I have idea whats wrong here. If you have a resource in mind, or possibly a point in the right direction I'd apreciate it.

--Bannon
Project Coordinator - Lythar... The World Beyond(tm)
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 07 May 2001 06:43 AM (UTC)
Message
Sounds like the <escape> character is not being sent correctly.

Your example:

.[0;36m<20hp 100m 100mv>.[0m

seems to substitute a dot for where I would expect <escape>.

The escape character in C looks like this: \033

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Gimlei   (1 post)  [Biography] bio
Date Reply #2 on Wed 26 May 2004 09:50 PM (UTC)
Message
I used to have the same problem with Lopes color as Bannon, when trying to run ROM on Windows XP, and it turned out that Nick's solution was very accurate:

Lopes code gave the escape char as '\e' and not '\033' as it should be. Grepping all the source files and replacing \e[ by \033[ fixed the problem.

Thanks very much for help, Nick!

P.S. Oh, and don't try to run ROM on Windows XP. It's... Just, don't.
[Go to top] top

Posted by Drithentir   Canada  (15 posts)  [Biography] bio
Date Reply #3 on Tue 13 Sep 2005 12:05 AM (UTC)
Message
Hi there,


Call me dumb, but when the instruction says

patch < patch-[your code base]-colour2.0 with the patch file in /src

What exactly do I type? code base is rom 2.4, the folder is called Rom24

I've tried patch < patch Rom24 color2.0, patch < patch-Rom24-color2.0, etc


Thanks for your help.

[Go to top] top

Posted by LunaticStriker   USA  (17 posts)  [Biography] bio
Date Reply #4 on Wed 14 Sep 2005 03:23 AM (UTC)
Message
Ya how do you do those patches? Do you need cygwin or is MSVC++ 6.0 good?
[Go to top] top

Posted by Drithentir   Canada  (15 posts)  [Biography] bio
Date Reply #5 on Wed 14 Sep 2005 10:24 AM (UTC)
Message
Linux or CYGWIN, thing is I don't understand the instruction :(
[Go to top] top

Posted by Thornan   (8 posts)  [Biography] bio
Date Reply #6 on Sun 30 Oct 2005 10:59 PM (UTC)
Message
To use that patch file for Rom24b6 you need to put the file
(patch-rom2.4-colour) inside the src directory. Then once it is in there you type this.

patch < patch-rom2.4-colour

and hit enter and BAM it patches everything it is required to patch. If it fails anywhere in the patching process it will create a file with the ext .rej on the end. You look in that file and it shows you what part failed then you go to the real file and input the data yourself.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Mon 31 Oct 2005 02:22 AM (UTC)
Message
If you only have Visual C++ you probably don't have a version of patch that will work, although I think I did a version for Windows a while back.

You are better off installing Cygwin, and using the patch command in that.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Lurgha   (3 posts)  [Biography] bio
Date Reply #8 on Sat 19 Nov 2005 04:50 AM (UTC)
Message
Can I apply such patches to the windows ROM version? Do I need to use any special program that runs in windows to do the patching? I have it up and running on win98se.

thanks, Jim
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #9 on Sat 19 Nov 2005 03:38 PM (UTC)
Message
Are you running Cygwin? If not, you need a compiler first before you even bother with a patch.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] 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.


23,328 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]