Register forum user name Search FAQ

Gammon Forum

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.
 Entire forum ➜ ROM ➜ Running the server ➜ Lopes Color Code

Lopes Color Code

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


Posted by Bannon   (1 post)  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)
Top

Posted by Nick Gammon   Australia  (23,120 posts)  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
Top

Posted by Gimlei   (1 post)  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.
Top

Posted by Drithentir   Canada  (15 posts)  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.

Top

Posted by LunaticStriker   USA  (17 posts)  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?
Top

Posted by Drithentir   Canada  (15 posts)  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 :(
Top

Posted by Thornan   (8 posts)  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.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  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
Top

Posted by Lurgha   (3 posts)  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
Top

Posted by Zeno   USA  (2,871 posts)  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
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.


26,018 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.