adding patches to the nethack source--

G

Guest

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

I'm relatively new to patching, and my last attempt came up with about
several hundred errors. I was wondering, the pre-made patches, what is
the +#ifdef command about and do I leave it in or what?

please help!!!

thanks
 
G

Guest

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

Nethacker wrote:

> I'm relatively new to patching, and my last attempt came up with about
> several hundred errors. I was wondering, the pre-made patches, what is
> the +#ifdef command about and do I leave it in or what?

I don't want to rain on your parade, but it sounds like you need to learn
some more C before undertaking any NetHack patching, and maybe also the
manpage for the "patch" command (the '+' is not part of the source code,
it's part of the patch syntax).

#ifdef is a C preprocessor command.

--
Benjamin Lewis

Seeing is deceiving. It's eating that's believing.
-- James Thurber
 
G

Guest

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

On Mon, 13 Jun 2005, Nethacker wrote:

> I'm relatively new to patching, and my last attempt came up with about
> several hundred errors. I was wondering, the pre-made patches, what is
> the +#ifdef command about and do I leave it in or what?

The utility "patch" takes care of patching the source, you do not need to
do it by hand. Pay attention only to messages about failed patches, and if
you do not know how to resolve such conflicts, ask here, quoting the
specific problem. To toggle the parts of the patch guarded by #ifdef
commands, there usually is a #define line in include/config.h .

Have you ever compiled a working NetHack binary from the unpatched source?

--
Philipp Lucas
phlucas@online-club.de
 
G

Guest

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

Benjamin Lewis wrote:

> I don't want to rain on your parade, but it sounds like you need to learn
> some more C before undertaking any NetHack patching, and maybe also the
> manpage for the "patch" command (the '+' is not part of the source code,
> it's part of the patch syntax).

well, I kind of gathered the thing with the +, and I know enough simple
coding to kind of (and I say kind of) understand the script. But I was
mostly wondering about the #ifdef command. what does it do? (and what
does it mean when there's a ! in the patch command?)

> #ifdef is a C preprocessor command.

I kind of figured it might be lol
 
G

Guest

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

"Nethacker" <TedStudley@gmail.com> wrote:

>what was that patch thing you talked about? I need that.

A standard utility which is available for most platforms. If it is not
already installed on your system, you probably use Windows; in this case,
the cygwin utilities will work.

Furthermore, read Section 4.11 of the FAQ for this group: "What are
patches, and how do I apply them?"

--
Philipp Lucas
phlucas@online-club.de
 

TRENDING THREADS