[s] [PATCH] Jedi Class V0.2

G

Guest

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

I've just finished version 0.2 of the Jedi Class patch for S007E7F1.

Changes are:
- now diffed against an unpatched tree of S instead of my productive one
- added placeholder tiles for new monsters
- added a few missing #ifdef
- patch sys/unix/Makefile.dat instead of dat/Makefile

Thanks to Jym for pointing out these errors.

Things still to do:
- create real tiles
- patch the Makefiles of other architectures than unix

If you know something about these things I'd owe you a beer if you help
me out there ;)

Get the patch on:
http://www.crash-override.net/patchesslashem.html
(Yes, I restructured a bit since the last time)

Greetings,
Benjamin
--
The Nethack IdleRPG! Idle to your favorite Nethack messages!
http://pallas.crash-override.net/nethackidle/
 
G

Guest

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

On 08 Jul 2005 08:34:29 GMT
Benjamin 'blindcoder' Schieder <blindcoder@scavenger.homeip.net> wrote:

#I've just finished version 0.2 of the Jedi Class patch for S007E7F1.
#
#Changes are:
#- now diffed against an unpatched tree of S instead of my productive one
#- added placeholder tiles for new monsters
#- added a few missing #ifdef
#- patch sys/unix/Makefile.dat instead of dat/Makefile
#
#Thanks to Jym for pointing out these errors.
#
#Things still to do:
#- create real tiles
#- patch the Makefiles of other architectures than unix
#
#If you know something about these things I'd owe you a beer if you help
#me out there ;)
#
#Get the patch on:
# http://www.crash-override.net/patchesslashem.html
# (Yes, I restructured a bit since the last time)
#
#Greetings,
# Benjamin
#--
#The Nethack IdleRPG! Idle to your favorite Nethack messages!
#http://pallas.crash-override.net/nethackidle/
do you know if the patch will work with 0.0.8E0?
 
G

Guest

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

On 08 Jul 2005 08:34:29 GMT
Benjamin 'blindcoder' Schieder <blindcoder@scavenger.homeip.net> wrote:

#I've just finished version 0.2 of the Jedi Class patch for S007E7F1.
#
#Changes are:
#- now diffed against an unpatched tree of S instead of my productive one
#- added placeholder tiles for new monsters
#- added a few missing #ifdef
#- patch sys/unix/Makefile.dat instead of dat/Makefile
#
#Thanks to Jym for pointing out these errors.
#
#Things still to do:
#- create real tiles
#- patch the Makefiles of other architectures than unix
#
#If you know something about these things I'd owe you a beer if you help
#me out there ;)
#
#Get the patch on:
# http://www.crash-override.net/patchesslashem.html
# (Yes, I restructured a bit since the last time)
#
#Greetings,
# Benjamin
#--
#The Nethack IdleRPG! Idle to your favorite Nethack messages!
#http://pallas.crash-override.net/nethackidle/
and file should I patch? the makefile? config.h? I am kind of new to patching things,
but I have compiled nethack (not slashem though) from source...
 
G

Guest

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

On Fri, 08 Jul 2005 17:44:52 +0200
Benjamin Schieder <blindcoder@scavenger.homeip.net> wrote:

#Just apply the patch and add these lines to config.h:
##define JEDI
##define LIGHTSABERS
thanks.
I typed $ patch jedi.patch
(where jedi is the name of the patch) and nothing seemed to happen.
man'ing patch told me that I should patch a specific file. so, I
decided to type $ patch jedi.patch config.h
and got:
patch: **** Only garbage was found in the patch input.
I moust be doing something wrong. sorry for the lack of knowledge...
 
G

Guest

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

On Fri, 8 Jul 2005 17:53:55 +0200
Jym <moyen@loria.fr> wrote:

#Under usual unix system, you should gho into your slash'em directory and
#then run "patch -p1 < <patchfile>" this will do all the changes you need
#(man patch for more details).
#
#Then you'll have to compile everything following the usual procedure
#(including running sys/unix/setup.sh since Makefile.dat as been modified
#and not dat/Makefile (alternatively, you could just change the correct
#line in your dat/Makefile if you already have make a lot of change in your
#Makefiles (eg to support graphical interface))).
#
#Under DOS/Windows... I don't know...
#
#--
#Hypocoristiquement,
#Jym.
#
#Adresse mail plus valide à partir de septembre 2005.
#Utiliser l'adresse de redirection permanente :
#Jean-Yves.Moyen `at` ens-lyon.org


thanks, -p1 is what I was missing. thanks.
 
G

Guest

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

On Fri, 08 Jul 2005 18:21:54 +0200
Benjamin Schieder <blindcoder@scavenger.homeip.net> wrote:

#> #Just apply the patch and add these lines to config.h:
#> ##define JEDI
#> ##define LIGHTSABERS
#> thanks.
#> I typed $ patch jedi.patch
#
#The patch program needs the patch on stdin or the -i parameter. Try this:
#cd /path/to/slashemsrc
#patch -p1 -i jedi.patch
#
#-p1 tells patch to strip 1 level of directories from the patchfile which is
#necessary with my patch.
#
#Greetings,
# Benjamin
#
#--
# ____ _ _ ____ _ _ _ _____ __ __
# / ___|| | / \ / ___|| | | ( ) ____| \/ |
# \___ \| | / _ \ \___ \| |_| |/| _| | |\/| |
# ___) | |___ / ___ \ ___) | _ | | |___| | | |
# |____/|_____/_/ \_\____/|_| |_| |_____|_| |_|
# play online: telnet://slashem.crash-override.net
# view scores: http://slashem.crash-override.net
# watch deaths: irc://irc.freenode.net#slashem
okay, thanks. the patch seemed to work, but a completely unrelated compile error:
/usr/bin/ld: cannot find -ltermlib
collect2: ld returned 1 exit status
I should probably just quit. I googled it, and it says ltermlib is obsolete.
so I edited the makefile, and...
do.o(.text+0x25d9): In function `goto_level':
: undefined reference to `substitute_tiles'
files.o(.text+0x17df): In function `parse_config_line':
: undefined reference to `Sdlgl_parse_options'
o_init.o(.text+0xf): In function `shuffle_tiles':
: undefined reference to `glyph2tile'
o_init.o(.text+0x43): In function `shuffle_tiles':
: undefined reference to `glyph2tile'
options.o(.text+0x448): In function `initoptions':
: undefined reference to `Sdlgl_parse_options'
restore.o(.text+0xd80): In function `dorecover':
: undefined reference to `substitute_tiles'
windows.o(.data+0x8): undefined reference to `sdlgl_softw_procs'
collect2: ld returned 1 exit status
make: *** [Sysunix] Error 1
just great. I guess I will have to settle for 0.0.7E6
 
G

Guest

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

On Fri, 08 Jul 2005 21:10:01 +0200
Benjamin Schieder <blindcoder@scavenger.homeip.net> wrote:

#ltermlib and replace it by
#-lncurses
and that is where the second error comes in...
 
G

Guest

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

On Fri, 08 Jul 2005 22:12:53 +0200
Benjamin Schieder <blindcoder@scavenger.homeip.net> wrote:

#Do you have SDL and the SDL OpenGL bindings installed? If not, you might want to
#remove them from include/config.h and Makefile.
I have the SDL bindings installed, I am trying to compile for SDL.
I assume the jedi will turn up as a knight on the tiles interface,
and that's OK, because I barely know what a jedi looks like anyways.
(probably more like a monk.)
OT: I am also trying to compile with Big 3D tiles, and that probably conflicts.
(so I took it out) but that wasn't the main problem.
 
G

Guest

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

noah bedford wrote:
> #I've just finished version 0.2 of the Jedi Class patch for S007E7F1.
> do you know if the patch will work with 0.0.8E0?

No idea, but 008E0 is development tree anyway and not considered "usable".
From what I heard about the changes in 008E0 it should be fine, though.


Greetings,
Benjamin

--
_ _ _ _ _
| \| |___| |_| |_ __ _ __| |__
| .` / -_) _| ' \/ _` / _| / /
|_|\_\___|\__|_||_\__,_\__|_\_\
| | (_)_ _ _ ___ __
| |__| | ' \ || \ \ /
|____|_|_||_\_,_/_\_\
Play Nethack anywhere with an x86 computer:
http://www.crash-override.net/?nethacklinux
 
G

Guest

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

> #Get the patch on:
> # http://www.crash-override.net/patchesslashem.html
> # (Yes, I restructured a bit since the last time)
> and file should I patch? the makefile? config.h? I am kind of new to patching things,
> but I have compiled nethack (not slashem though) from source...

Just apply the patch and add these lines to config.h:
#define JEDI
#define LIGHTSABERS

oh, and by the way: try to keep your quotes small and to the point.
Avoid repeating the whole text of a message. Messages are hard to read that way
and tend to become huge without adding any real value.


Greetings,
Benjamin

--
Benjamin 'blindCoder' Schieder
Registered Linux User #289529: http://counter.li.org
finger blindcoder@scavenger.homeip.net | gpg --import
--
/lusr/bin/brain: received signal: SIGIDIOT
 
G

Guest

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

On Fri, 8 Jul 2005, noah bedford wrote:

> On 08 Jul 2005 08:34:29 GMT
> Benjamin 'blindcoder' Schieder <blindcoder@scavenger.homeip.net> wrote:
>
> #I've just finished version 0.2 of the Jedi Class patch for S007E7F1.
> #
> #Get the patch on:
> # http://www.crash-override.net/patchesslashem.html
> # (Yes, I restructured a bit since the last time)

> and file should I patch? the makefile? config.h? I am kind of new to patching things,
> but I have compiled nethack (not slashem though) from source...

Under usual unix system, you should gho into your slash'em directory and
then run "patch -p1 < <patchfile>" this will do all the changes you need
(man patch for more details).

Then you'll have to compile everything following the usual procedure
(including running sys/unix/setup.sh since Makefile.dat as been modified
and not dat/Makefile (alternatively, you could just change the correct
line in your dat/Makefile if you already have make a lot of change in your
Makefiles (eg to support graphical interface))).

Under DOS/Windows... I don't know...

--
Hypocoristiquement,
Jym.

Adresse mail plus valide à partir de septembre 2005.
Utiliser l'adresse de redirection permanente :
Jean-Yves.Moyen `at` ens-lyon.org
 
G

Guest

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

noah bedford wrote:
> I typed $ patch jedi.patch
> (where jedi is the name of the patch) and nothing seemed to happen.

"patch -p1<jedi.patch" should do it.


--
If geiger counter does not click,
the coffee, she is just not thick
 
G

Guest

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

> #Just apply the patch and add these lines to config.h:
> ##define JEDI
> ##define LIGHTSABERS
> thanks.
> I typed $ patch jedi.patch

The patch program needs the patch on stdin or the -i parameter. Try this:
cd /path/to/slashemsrc
patch -p1 -i jedi.patch

-p1 tells patch to strip 1 level of directories from the patchfile which is
necessary with my patch.

Greetings,
Benjamin

--
____ _ _ ____ _ _ _ _____ __ __
/ ___|| | / \ / ___|| | | ( ) ____| \/ |
\___ \| | / _ \ \___ \| |_| |/| _| | |\/| |
___) | |___ / ___ \ ___) | _ | | |___| | | |
|____/|_____/_/ \_\____/|_| |_| |_____|_| |_|
play online: telnet://slashem.crash-override.net
view scores: http://slashem.crash-override.net
watch deaths: irc://irc.freenode.net#slashem
 
G

Guest

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

> okay, thanks. the patch seemed to work, but a completely unrelated compile error:
> /usr/bin/ld: cannot find -ltermlib
> collect2: ld returned 1 exit status
> I should probably just quit. I googled it, and it says ltermlib is obsolete.
> so I edited the makefile, and...
> do.o(.text+0x25d9): In function `goto_level':
> : undefined reference to `substitute_tiles'
> files.o(.text+0x17df): In function `parse_config_line':
> : undefined reference to `Sdlgl_parse_options'
> o_init.o(.text+0xf): In function `shuffle_tiles':
> : undefined reference to `glyph2tile'
> o_init.o(.text+0x43): In function `shuffle_tiles':
> : undefined reference to `glyph2tile'
> options.o(.text+0x448): In function `initoptions':
> : undefined reference to `Sdlgl_parse_options'
> restore.o(.text+0xd80): In function `dorecover':
> : undefined reference to `substitute_tiles'
> windows.o(.data+0x8): undefined reference to `sdlgl_softw_procs'
> collect2: ld returned 1 exit status
> make: *** [Sysunix] Error 1
> just great. I guess I will have to settle for 0.0.7E6

Ah, that's a common linux problem.
Edit the file src/Makefile, search for the line with -ltermlib and replace it by
-lncurses
That should help.


Greetings,
Benjamin

--
The Nethack IdleRPG! Idle to your favorite Nethack messages!
http://pallas.crash-override.net/nethackidle/
 
G

Guest

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

> #ltermlib and replace it by
> #-lncurses
> and that is where the second error comes in...

Oh didn't notice that.
Do you have SDL and the SDL OpenGL bindings installed? If not, you might want to
remove them from include/config.h and Makefile.

Greetings,
Benjamin

--
____ _ _ ____ _ _ _ _____ __ __
/ ___|| | / \ / ___|| | | ( ) ____| \/ |
\___ \| | / _ \ \___ \| |_| |/| _| | |\/| |
___) | |___ / ___ \ ___) | _ | | |___| | | |
|____/|_____/_/ \_\____/|_| |_| |_____|_| |_|
play online: telnet://slashem.crash-override.net
view scores: http://slashem.crash-override.net
watch deaths: irc://irc.freenode.net#slashem
 
G

Guest

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

noah bedford wrote:
> #Do you have SDL and the SDL OpenGL bindings installed? If not, you might want to
> #remove them from include/config.h and Makefile.
> I have the SDL bindings installed, I am trying to compile for SDL.
> I assume the jedi will turn up as a knight on the tiles interface,
> and that's OK, because I barely know what a jedi looks like anyways.
> (probably more like a monk.)

It may not work at all then. I added tiles to sys/share/monster.txt but I think
there may be other tiles files I missed.

Can someone enlighten me there?

Greetings,
Benjamin
--
Benjamin 'blindCoder' Schieder
Registered Linux User #289529: http://counter.li.org
finger blindcoder@scavenger.homeip.net | gpg --import
--
/lusr/bin/brain: received signal: SIGIDIOT