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)
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
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.
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.
Ya how do you do those patches? Do you need cygwin or is MSVC++ 6.0 good?
Linux or CYGWIN, thing is I don't understand the instruction :(
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.
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.
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
Are you running Cygwin? If not, you need a compiler first before you even bother with a patch.