How does adding multiple patches work and other questions

G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

Can anyone tell me how multiple patching works for nethack? i.e. if I
wanted to use joe's foohack and fred's barhack, I would think they
would overwrite (or add) original code. If so, does the second patch
blow away the first one? Can you safely add multiple patches unlimited
or do you have some kind of limit to worry about? i.e. only so many
times you can write over foo.c etc...

Second, do the patches affect the bones files? Would they still be
compatible with hearse, etc?

Thanks for your help in advance

tiny k
 
Archived from groups: rec.games.roguelike.nethack (More info?)

"tiny k" <kdlittle88@yahoo.com> wrote in news:1108856655.130630.165230
@o13g2000cwo.googlegroups.com:

> Can anyone tell me how multiple patching works for nethack? i.e. if I
> wanted to use joe's foohack and fred's barhack, I would think they
> would overwrite (or add) original code. If so, does the second patch
> blow away the first one? Can you safely add multiple patches unlimited
> or do you have some kind of limit to worry about? i.e. only so many
> times you can write over foo.c etc...

The patch program is fairly good about recovering from altered source
files. It is generally pretty hard to predict if two patches will screw
each other up. If two patches modify the same section of code you can get
problems, but the patch program should let you know what pieces of the
patch it wasn't able to install and generate files so you can try patch
the source yourself.

> Second, do the patches affect the bones files? Would they still be
> compatible with hearse, etc?

Some do and some don't. It's dependent on the patch.
 
Archived from groups: rec.games.roguelike.nethack (More info?)

"tiny k" <kdlittle88@yahoo.com> writes:

> Can anyone tell me how multiple patching works for nethack? i.e. if I
> wanted to use joe's foohack and fred's barhack, I would think they
> would overwrite (or add) original code. If so, does the second patch
> blow away the first one?

If the two patches are to different parts of the code there shouldn't be
a problem. If both patches modify the same area, you might have to
merge them by hand.

> Can you safely add multiple patches unlimited or do you have some kind
> of limit to worry about? i.e. only so many times you can write over
> foo.c etc...

There isn't a numeric limit; you just have to make sure the patches
don't get in each other's way.

> Second, do the patches affect the bones files? Would they still be
> compatible with hearse, etc?

Some do, some don't. Usually the author of the patch will tell you
whether it affects bones or save files. If the bones aren't affected,
you can happily use Hearse.
 
Archived from groups: rec.games.roguelike.nethack (More info?)

On 2/19/05 6:44 PM, tiny k wrote:
> Can anyone tell me how multiple patching works for nethack? i.e. if I
> wanted to use joe's foohack and fred's barhack, I would think they
> would overwrite (or add) original code. If so, does the second patch
> blow away the first one? Can you safely add multiple patches unlimited
> or do you have some kind of limit to worry about? i.e. only so many
> times you can write over foo.c etc...

Other people have already answered this; the only thing I would have to
add is that if the diff file is created with the correct flag (-C I
believe), then the patch program will take note of the context that the
added lines are supposed to be in, so if a previous patch has added five
lines of code, thus shifting everything below it five lines down, the
program will compensate and add the code in at the right place.
>
> Second, do the patches affect the bones files? Would they still be
> compatible with hearse, etc?

Usually the author of the patch will note on the webpage where you
download it whether the patch is save- and bones- compatable.

--
Kevin Wayne

"I came to Casablanca for the waters."
"Waters? What waters? We're in the desert?"
"I was misinformed."