| View previous topic :: View next topic |
| Author |
Message |
0ver.bi+e n00b


Joined: 15 Aug 2002 Posts: 60 Location: Columbus, OH
|
Posted: Thu Jan 16, 2003 4:42 am Post subject: Getting Heretic II to work in Gentoo 1.2 |
|
|
Greetings all,
I recently purchased Heretic II for Linux ($2, SUCROSE SWEET). Anyway, I was dismayed to find that many of the file library pointers were broken. So after frantically repairing the broken references, I found that, ultimately, my efforts were for naught as "cannot find libglade2x.so shared object file." Without this shared object file, I cannot load the LibGL file. No LibGL, no rad old-school linux gaming. Anyway, to make a long, lame story short, I am looking for some assistance in getting the game to work in my system. Below are some of my crucial system specs:
ATI Radeon All-In-Wonder 32MB
256 MB DDR-DRAM main memory
P.S. What file libraries should I have built to support the game?
Any and all assistance would be greatly appreciated. Thanks, bunches. _________________ "Nobody calls me CHICKEN!"
--Marty McFly |
|
| Back to top |
|
 |
RdsArts Apprentice


Joined: 08 Oct 2002 Posts: 190 Location: MI, USA
|
|
| Back to top |
|
 |
0ver.bi+e n00b


Joined: 15 Aug 2002 Posts: 60 Location: Columbus, OH
|
Posted: Sat Jan 18, 2003 2:28 am Post subject: Almost... |
|
|
The installer did help. THANKS. However, I have some bad news. I think my video drivers might be incompatible. (specifically for GL) I received this log from the heretic2 game startup in my terminal:
Added packfile /usr/local/games/heretic2/base/htic2-0.pak (4347 files)
Executing /root/.loki/heretic2/default.cfg
Executing /root/.loki/heretic2/config.cfg
NET Initialized
Console initialized.
VID: initial refresh glx
Loading /usr/local/games/heretic2/ref_glx.so
Loaded DLL /usr/local/games/heretic2/ref_glx.so as 0x9297ea8
Initializing VID module
ref_gl version: GL 2.0
Glimp_Init(...): +++++++++++++++++
Using SDL video subsystem
Loading GL driver from /usr/lib/libGL.so.1
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Could not set any video mode!
Any ideas for anyone who has Heretic II running on their system? I would appreciate any and all assistance. TIA! _________________ "Nobody calls me CHICKEN!"
--Marty McFly |
|
| Back to top |
|
 |
0ver.bi+e n00b


Joined: 15 Aug 2002 Posts: 60 Location: Columbus, OH
|
Posted: Sat Jan 18, 2003 5:47 pm Post subject: |
|
|
Does Xlib hav e something to do with my XWin configuration files? _________________ "Nobody calls me CHICKEN!"
--Marty McFly |
|
| Back to top |
|
 |
amigabill n00b

Joined: 05 May 2003 Posts: 59
|
Posted: Wed Aug 11, 2004 11:13 pm Post subject: install failed?? |
|
|
I'm trying to install Heretic II onmy fresh Gentoo 2004.2 install. The CD installer seems to go OK, but complains it cannot find "bin/x86/heretic2" and I don't seem to have a binary for the game installed. The link above to an updated install script is broken. :/ Any ideas? Has Heretic II engine been gpled so I can just get that elsewhere and use it with the game data from my Loki CD?
A friend saw the game in a budget pile somewhere and got it so "I could have something to use Linux for." Sure, it's old now, but I'd like to make it go... |
|
| Back to top |
|
 |
zakk l33t

Joined: 16 Jun 2003 Posts: 614 Location: Oakland, CA
|
Posted: Thu Aug 12, 2004 3:14 am Post subject: Re: install failed?? |
|
|
| amigabill wrote: | I'm trying to install Heretic II onmy fresh Gentoo 2004.2 install. The CD installer seems to go OK, but complains it cannot find "bin/x86/heretic2" and I don't seem to have a binary for the game installed. The link above to an updated install script is broken. :/ Any ideas? Has Heretic II engine been gpled so I can just get that elsewhere and use it with the game data from my Loki CD?
A friend saw the game in a budget pile somewhere and got it so "I could have something to use Linux for." Sure, it's old now, but I'd like to make it go... |
There is a loki mirror at
ftp://ftp.planetmirror.com/pub/lokigames/
Although Quake 2, which it is based on, is GPL'd, Heretic 2 is more than a mod, and doesn't work with that source. Raven has not released the Heretic 2 source. |
|
| Back to top |
|
 |
amigabill n00b

Joined: 05 May 2003 Posts: 59
|
Posted: Tue Aug 17, 2004 6:54 pm Post subject: |
|
|
Cool! Thanks! Can't get most of the .run scripts to go, apparently a change in tail command flag syntax ("tail +6" gives error, change it to "tail --lines=+6" seems to work better), after hacking the scripts tail syntax and recalculating the expected checksum one of them ran, it was a 1.06b game version installer if I remember correctly. The 1.06c update scripts all seem to seg fault on something, need some more time to tear that script apart and figure out what's wrong now, something in update.sh down inside something bombs out, this is also what happens on all the other non-running installers/updates/patches I found on this site with current Gentoo install and 2.6.7 kernel.
But I do have one last issue with the one I did get to run and install. When I run the heretic2 game command, it complains my screen is not set to 16bpp. I have 16bpp color modes set for my screens, as well as a number of resolutions for each colormode. I can switch resolutions with the ctrl+ and ctrl- key combos, but I have no idea how to change color mdoes that easily, and I don't like the idea of halting X/kde, editing default color mode in congif, restart X/kde just to play the game or switch back to the normal 24bpp desktop... Is there a nice key combo for that as well, or is it going to be a chore?
I appreciate your help! |
|
| Back to top |
|
 |
zakk l33t

Joined: 16 Jun 2003 Posts: 614 Location: Oakland, CA
|
Posted: Tue Aug 17, 2004 7:10 pm Post subject: |
|
|
At the moment, you can't switch to 16bpp whilst in X, 24 bpp should work fine if I recall correctly. Since it just has to get upscaled on the GL renderer at least. If however you end up
using the software renderer
With regard to the tail thing:
http://www.icculus.org/lgfaq/#chasingmyowntail
I'll try Heretic 2 later on my modern gentoo install and see
if it works, though I am using an nvidia card, not an ATi. |
|
| Back to top |
|
 |
hulmeman Apprentice


Joined: 02 Jul 2002 Posts: 184 Location: Duchy of Lancaster, England.
|
Posted: Sat Oct 16, 2004 1:37 am Post subject: |
|
|
Can anyone help me to get heretic2 running, using glibc-2.3? I've tried the updates (heretic2-1.06a-x86.run heretic2-1.06b-x86.run heretic2-1.06c-x86.run) only heretic2-1.06a-x86.run will work, but still compiles against glibc 2.1.
| Code: | # sh heretic2-1.06a-x86.run
Verifying archive integrity...OK
Uncompressing Heretic II 1.06a Patchtrap: usage: trap [-lp] [arg signal_spec ...] |
| Code: | # heretic2 +set vid_ref glx +set gl_driver /usr/lib/opengl/nvidia/lib/libGL.so +set vid_mode 6
Registered 11 signal handlers
========================== Heretic II ===========================
Added packfile /usr/local/games/heretic2/base/htic2-0.pak (4347 files)
Executing global default.cfg
Could not find /home/baz/.loki/heretic2/config.cfg
Unable to exec config.cfg
NET Initialized
Loaded DLL /usr/local/games/heretic2/base/client_effects.so as 0x8a26aa0
Setting default sound support "snd_sdl.so"
Loaded DLL /usr/local/games/heretic2/snd_sdl.so as 0x8a26ec0
Console initialized.
VID: initial refresh glx
Loading /usr/local/games/heretic2/ref_glx.so
Loaded DLL /usr/local/games/heretic2/ref_glx.so as 0x8a29f18
Initializing VID module
ref_gl version: GL 2.0
Glimp_Init(...): +++++++++++++++++
Loaded DLL /usr/lib/opengl/nvidia/lib/libGL.so as 0x8a2c0e0
Setting mode x11 for device mouse
Initialized 1024x768 16bit 60Hz display
Got GLX context 1024x768 0byte pp/bits/rgb 0
BEGIN R_SetMode()
R_SetMode() - CDS not allowed with this driver
Initializing OpenGL display
END R_SetMode(): mode set
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce4 Ti 4200/AGP/SSE/3DNOW!
GL_VERSION: 1.5.1 NVIDIA 61.11
GL_EXTENSIONS: GL_ARB_depth_texture GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_A
RB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_textur
e_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine G
L_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vert
ex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_bl
end_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fo
g_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point
_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_sh
ared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_
EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_te
xture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_cli
p GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp
GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_pac
ked_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_
texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_texture_shad
er GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_progra
m GL_NV_vertex_program1_1 GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod GL_SGIX_depth_texture GL_S
GIX_shadow GL_SUN_slice_accum
Internal signal handler called...
HereticII Heretic II Linux 1.06
Built with glibc-2.1
... received Signal 11 (SIGSEGV): Segmentation violation (ANSI) ...
SIGSEGV: attempting graceful exit...
Stack dump:
{
0x8097805 : heretic2 [0x8097805]
0xffffe420 : [0xffffe420]
}
Please send a full bug report to support@lokigames.com
Shutting down sound.
Shutting down input handling
Shutting down sound.
Thanks for playing Heretic II!
|
Thnx
Baz |
|
| Back to top |
|
 |
amigabill n00b

Joined: 05 May 2003 Posts: 59
|
Posted: Thu Jan 27, 2005 7:13 pm Post subject: |
|
|
| zakk wrote: |
I'll try Heretic 2 later on my modern gentoo install and see
if it works, though I am using an nvidia card, not an ATi. |
Did you ever get a chance to try and run this? |
|
| Back to top |
|
 |
Wolven Guru


Joined: 05 Aug 2003 Posts: 325 Location: Norway
|
Posted: Thu Jan 27, 2005 7:18 pm Post subject: |
|
|
| I would like to hear if you got it to run too. I bougth the game some time ago, but I've never gotten it to work. |
|
| Back to top |
|
 |
The Mountain Man l33t


Joined: 03 Sep 2003 Posts: 643
|
Posted: Thu Jan 27, 2005 8:00 pm Post subject: |
|
|
Curiously enough, the Windows version of Heretic II installs and runs flawlessly in Wine. _________________ I suck at signatures. |
|
| Back to top |
|
 |
karamazov n00b

Joined: 27 Jan 2005 Posts: 4
|
Posted: Thu Jan 27, 2005 9:21 pm Post subject: ebuild |
|
|
This works for me
| Code: |
inherit games
PREV=1.06b
DESCRIPTION="Heretic 2"
HOMEPAGE="http://www.activision.com/games/heroes/"
SRC_URI="ftp://ftp.planetmirror.com/pub/lokigames/updates/heretic2/heretic2-${PREV}-unified-x86.run
ftp://ftp.planetmirror.com/pub/lokigames/updates/heretic2/heretic2-${PV}-unified-x86.run
ftp://ftp.planetmirror.com/pub/lokigames/updates/heretic2/heretic2-maps-1.0.run
ftp://snuffleupagus.animearchive.org/loki/updates/heretic2/heretic2-${PREV}-unified-x86.run
ftp://snuffleupagus.animearchive.org/loki/updates/heretic2/heretic2-${PV}-unified-x86.run
ftp://snuffleupagus.animearchive.org/loki/updates/heretic2/heretic2-maps-1.0.run"
LICENSE="LOKI-EULA"
SLOT="0"
KEYWORDS="x86"
RESTRICT="nostrip"
DEPEND="virtual/glibc"
RDEPEND="${DEPEND}
=media-libs/freetype-1*"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
pkg_setup() {
if [ "`use videos`" ]; then
ewarn "The installed game takes about 500MB of space!"
else
ewarn "The installed game takes about 400MB of space!"
fi
cdrom_get_cds README
games_pkg_setup
}
src_unpack() {
export _POSIX2_VERSION=199209
mkdir ${PREV}
cd ${PREV}
unpack_makeself ${DISTFILES}/heretic2-${PREV}-unified-x86.run
cd -
mkdir ${PV}
cd ${PV}
unpack_makeself ${DISTFILES}/heretic2-${PV}-unified-x86.run
cd -
mkdir maps
cd maps
unpack_makeself ${DISTFILES}/heretic2-maps-1.0.run
cd -
}
src_install() {
dodir ${dir}
mkdir ${Ddir}/base
mkdir ${Ddir}/base/video
mkdir ${Ddir}/help
mkdir ${Ddir}/help/images
einfo "Copying files... this may take a while..."
exeinto /opt/heretic2
newexe ${CDROM_ROOT}/BIN/X86/GLIBC-2.1/HERETIC2 heretic2
insinto /opt/heretic2
cp ${CDROM_ROOT}/README ${Ddir}
cp ${CDROM_ROOT}/README.MORE ${Ddir}/README.more
cp ${CDROM_ROOT}/MANUAL.HTML ${Ddir}/Manual.html
cp ${CDROM_ROOT}/ICON.BMP ${Ddir}/icon.bmp
cp ${CDROM_ROOT}/ICON.XPM ${Ddir}/icon.xpm
for file in ${CDROM_ROOT}/BASE/VIDEO/*
do
dest=`basename "${file}" | tr [A-Z] [a-z]`
cp "$file" "${Ddir}/base/video/${dest}"
done
for file in ${CDROM_ROOT}/HELP/*.HTML
do
dest=`basename "${file}" | tr [A-Z] [a-z]`
cp "$file" "${Ddir}/help/${dest}"
done
for file in ${CDROM_ROOT}/HELP/IMAGES/*
do
dest=`basename "${file}" .GIF | tr [A-Z] [a-z]`.GIF
cp "$file" "${Ddir}/help/images/${dest}"
done
cd ${Ddir}
tar xzf ${CDROM_ROOT}/DATA.TAR || die "uncompressing data"
tar xzf ${CDROM_ROOT}/BIN-X86-GLIBC-2.1 --no-same-owner || die "uncompressing libs"
cd ${S}/${PREV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
cd ${S}/${PV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
cd ${S}/maps
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
# now, since these files are coming off a cd, the times/sizes/md5sums wont
# be different ... that means portage will try to unmerge some files (!)
# we run touch on ${D} so as to make sure portage doesnt do any such thing
find ${Ddir} -exec touch '{}' \;
dodir ${GAMES_BINDIR}
dogamesbin ${FILESDIR}/heretic2
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/heretic2
insinto /usr/share/pixmaps
newins ${CDROM_ROOT}/icon.xpm heretic2.xpm
prepgamesdirs
make_desktop_entry heretic2 "Heretic II" "heretic2.xpm"
}
|
|
|
| Back to top |
|
 |
amigabill n00b

Joined: 05 May 2003 Posts: 59
|
Posted: Mon Jan 31, 2005 4:11 pm Post subject: |
|
|
| The Mountain Man wrote: | | Curiously enough, the Windows version of Heretic II installs and runs flawlessly in Wine. |
Unfortunately that's not currently an otion. I own copies for Linux and for AmigaOS. I don't have the Windows version, and don't want to buy the game a third time just to play it on a second machine... |
|
| Back to top |
|
 |
The Mountain Man l33t


Joined: 03 Sep 2003 Posts: 643
|
Posted: Mon Jan 31, 2005 4:15 pm Post subject: |
|
|
I wasn't mentioning it as an option, only as a curiosity. _________________ I suck at signatures. |
|
| Back to top |
|
 |
wolf31o2 Retired Dev


Joined: 31 Jan 2003 Posts: 628 Location: Mountain View, CA
|
Posted: Tue Feb 01, 2005 8:00 pm Post subject: |
|
|
You should submit that ebuild to a bug report... ;] _________________ Ex-Gentoo Developer
Catalyst/Genkernel Development Lead
http://wolf31o2.org |
|
| Back to top |
|
 |
amigabill n00b

Joined: 05 May 2003 Posts: 59
|
Posted: Wed Feb 02, 2005 7:07 pm Post subject: |
|
|
The ebuild posted has got me a little further. It doesn't run as-is for me, there are case diffrences for things on my CDROM and such, I had to find the loki_patch program off the internet and put it where the ebuild wanted it to be, and yet it still fails for some reason. The failure is at:
...
cd ${S}/${PREV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
cd ${S}/${PV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
That last line, the second of three similar lines (I left off the third as I don't get to it) falls to the die "patching" part and the ebuild stops and errors out at that point. I can post the changes I've made to this ebuild, but it's mostly changing case of characters in the install CD's path/filename stuff, which is all caps in the ebuild posted above but my CD has mostly lower-case chars... I should probably copy/paste the actual error message and other info I've dug out of it so far, I'll try to remember to do that next time I get the motivation to fumble with it more. |
|
| Back to top |
|
 |
karamazov n00b

Joined: 27 Jan 2005 Posts: 4
|
Posted: Thu Feb 03, 2005 8:52 am Post subject: |
|
|
| amigabill wrote: | The failure is at:
...
cd ${S}/${PREV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
cd ${S}/${PV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
|
humm... without seeing actual errors coupla things to try/look at 1) is the ebuild named heretic2-1.06c.ebuild? 2) loki_patch on newer systems have issues. It is now in portage (wasn't when i made this) try using that one. |
|
| Back to top |
|
 |
amigabill n00b

Joined: 05 May 2003 Posts: 59
|
Posted: Fri Feb 04, 2005 2:35 am Post subject: |
|
|
> 1) is the ebuild named heretic2-1.06c.ebuild?
Well, I named it heretic2-1.06b.ebuild because the thing appears to get the b patches, not the c patches... I haven't tried changing it to 1.06c yet.
> 2) loki_patch on newer systems have issues. It is now in portage (wasn't when i made this) try using that one.
I emerged this which installed into /usr/bin/loki_patch. The emerge process failed finding loki_patch as it was looking for it in /usr/portage/games-fps/heretic2/files/loki_patch. I make a link there, though I may edit the ebuild to look in the /usr/bin path instead as emerge world updates hose the heretic2 dir in /usr/portage/games-fps and takes the link with it, editing the path in the ebuild will save me one small step that I really should have in a shell script anyway.
I emerge -uD world the other day and had to redo my heretic2 dir in portage, but am now I'm back to the error I mentioned before, which is:
| Code: |
...
* Found CD #1 root at /mnt/cdrom
>>> Unpacking source...
>>> Unpacking heretic2-1.06b-unified-x86.run to /var/tmp/portage/heretic2-1.06b/work/1.06b
mkdir: cannot create directory `1.06b': File exists
>>> Unpacking heretic2-1.06b-unified-x86.run to /var/tmp/portage/heretic2-1.06b/work/1.06b
>>> Unpacking heretic2-maps-1.0.run to /var/tmp/portage/heretic2-1.06b/work/maps
>>> Source unpacked.
>>> Test phase [not enabled]: games-fps/heretic2-1.06b
>>> Install heretic2-1.06b into /var/tmp/portage/heretic2-1.06b/image/ category games-fps
* Copying files... this may take a while...
!!! ERROR: games-fps/heretic2-1.06b failed.
!!! Function src_install, Line 96, Exitcode 3
!!! patching 2
!!! If you need support, post the topmost build error, NOT this status message.
|
The second-to-last line there, "!!! patching 2", is where the script fails a loki_patch command and falls to the ||die "patching" thing. I added 1, 2 and 3 to tell which of those three patch commands was at fault on my emerge, all three previously said the same exact thing so I couldn't tell which was the failure.
The ebuild file as I've edited it:
| Code: |
inherit games
PREV=1.06b
DESCRIPTION="Heretic 2"
HOMEPAGE="http://www.activision.com/games/heroes/"
SRC_URI="ftp://ftp.planetmirror.com/pub/lokigames/updates/heretic2/heretic2-${PREV}-unified-x86.run
ftp://ftp.planetmirror.com/pub/lokigames/updates/heretic2/heretic2-${PV}-unified-x86.run
ftp://ftp.planetmirror.com/pub/lokigames/updates/heretic2/heretic2-maps-1.0.run
ftp://snuffleupagus.animearchive.org/loki/updates/heretic2/heretic2-${PREV}-unified-x86.run
ftp://snuffleupagus.animearchive.org/loki/updates/heretic2/heretic2-${PV}-unified-x86.run
ftp://snuffleupagus.animearchive.org/loki/updates/heretic2/heretic2-maps-1.0.run"
LICENSE="LOKI-EULA"SLOT="0"
KEYWORDS="x86"RESTRICT="nostrip"
DEPEND="virtual/glibc"
RDEPEND="${DEPEND}
=media-libs/freetype-1*"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}Ddir=${D}/${dir}
pkg_setup() {
if [ "`use videos`" ]; then
ewarn "The installed game takes about 500MB of space!"
else
ewarn "The installed game takes about 400MB of space!"
fi
cdrom_get_cds README
games_pkg_setup
}
src_unpack() {
export _POSIX2_VERSION=199209
mkdir ${PREV}
cd ${PREV}
unpack_makeself ${DISTFILES}/heretic2-${PREV}-unified-x86.run
cd -
mkdir ${PV}
cd ${PV}
unpack_makeself ${DISTFILES}/heretic2-${PV}-unified-x86.run
cd -
mkdir maps
cd maps
unpack_makeself ${DISTFILES}/heretic2-maps-1.0.run
cd -
}
src_install() {
dodir ${dir}
mkdir ${Ddir}/base
mkdir ${Ddir}/base/video
mkdir ${Ddir}/help
mkdir ${Ddir}/help/images
einfo "Copying files... this may take a while..."
exeinto /opt/heretic2
newexe ${CDROM_ROOT}/bin/x86/glibc-2.1/heretic2 heretic2
insinto /opt/heretic2
cp ${CDROM_ROOT}/README ${Ddir}
cp ${CDROM_ROOT}/README.more ${Ddir}/README.more
cp ${CDROM_ROOT}/Manual.html ${Ddir}/Manual.html
cp ${CDROM_ROOT}/icon.bmp ${Ddir}/icon.bmp
cp ${CDROM_ROOT}/icon.xpm ${Ddir}/icon.xpm
for file in ${CDROM_ROOT}/base/video/*
do
dest=`basename "${file}" | tr [A-Z] [a-z]`
cp "$file" "${Ddir}/base/video/${dest}"
done
for file in ${CDROM_ROOT}/help/*.html
do
dest=`basename "${file}" | tr [A-Z] [a-z]`
cp "$file" "${Ddir}/help/${dest}"
done
for file in ${CDROM_ROOT}/help/images/*
do
dest=`basename "${file}" .GIF | tr [A-Z] [a-z]`.GIF
cp "$file" "${Ddir}/help/images/${dest}"
done
cd ${Ddir}
tar xzf ${CDROM_ROOT}/data.tar.gz || die "uncompressing data"
tar xzf ${CDROM_ROOT}/bin-x86-glibc-2.1.tar.gz --no-same-owner || die "uncompressing libs"
cd ${S}/${PREV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching 1"
cd ${S}/${PV}
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching 2"
cd ${S}/maps
${FILESDIR}/loki_patch --verify patch.dat
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching 3"
# now, since these files are coming off a cd, the times/sizes/md5sums wont
# be different ... that means portage will try to unmerge some files (!)
# we run touch on ${D} so as to make sure portage doesnt do any such thing
find ${Ddir} -exec touch '{}' \;
dodir ${GAMES_BINDIR}
dogamesbin ${FILESDIR}/heretic2
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/heretic2
insinto /usr/share/pixmaps
newins ${CDROM_ROOT}/icon.xpm heretic2.xpm
prepgamesdirs
make_desktop_entry heretic2 "Heretic II" "heretic2.xpm"
|
If I change the offending line in the emerge to display what the variables used there are set to:
| Code: |
${FILESDIR}/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching 2 FILESDIR=${FILESDIR} Ddir=${Ddir}"
|
The error message from above becomes:
| Code: |
...
!!! ERROR: games-fps/heretic2-1.06b failed.
!!! Function src_install, Line 96, Exitcode 3
!!! patching 2 FILESDIR=/usr/portage/games-fps/heretic2/files Ddir=/var/tmp/portage/heretic2-1.06b/image///opt/heretic2
!!! If you need support, post the topmost build error, NOT this status message.
|
[/code] |
|
| Back to top |
|
 |
karamazov n00b

Joined: 27 Jan 2005 Posts: 4
|
Posted: Fri Feb 04, 2005 3:19 pm Post subject: |
|
|
| amigabill wrote: | > 1) is the ebuild named heretic2-1.06c.ebuild?
Well, I named it heretic2-1.06b.ebuild because the thing appears to get the b patches, not the c patches... I haven't tried changing it to 1.06c yet.
|
That will fix it then... perhaps
For me at least, the c patch only worked if b had been previously applied. your errors are caused by trying to apply b twice. |
|
| Back to top |
|
 |
alienjon Veteran


Joined: 09 Feb 2005 Posts: 1709
|
Posted: Thu Nov 10, 2005 9:23 am Post subject: |
|
|
So... where does this stand now? I found the following lying around somewhere:
| Quote: |
2) cd /cdrom
3) sh SETUP.SH
select movies too.
4) install will exit like this:
debian:/cdrom# sh SETUP.SH
Unable to find file 'bin/x86/heretic2'
Unable to find file 'data.tar.gz'
Unable to find file 'bin-x86-glibc-2.1.tar.gz
5) debian:/cdrom# cd BIN/X86/GLIBC-2.1/
6) cp HERETIC2 /usr/local/games/heretic2/heretic2
7) cd /usr/local/games/heretic2/
tar -zxvf /cdrom/DATA.TAR
9) tar -zxvf /cdrom/BIN-X86-GLIBC-2.1
10) # sh heretic2-1.06a-x86.run
11) sh heretic2-1.06b-x86.run --keep
exits with:
Creating directory heretic2-1.06b-x86
Verifying archive integrity...OK
Uncompressing Heretic II 1.06b Update......................................
./update.sh: line 60: 4108 Segmentation fault loki_patch --verify patch.dat
The program returned an error code (1)
12) cd heretic2-1.06b-x86/bin/Linux/x86/
13) rm loki_patch
14) wget http://www.step-n-up.com/downloads/loki_patch
15) chmod 755 loki_patch
16) cd ../../../
17) sh update.sh
exits with:
Performing update:
Computing MD5 sums for new uninstaller, this may take a while...
100%
Product updated successfully.
1 Follow stpes 11 to 17 to install patch 1.06c.
19) CTrl+D to become user
20) cd /usr/local/games/heretic2/
21) ./heretic2 +set vid_ref glx +set gl_driver /usr/lib/libGL.so.1 (it could be /usr/local/lib/libGL.so.1, depending on your distro).
22) adjust video settings, gamma, brightness, sound
23) play game, its somewhat dark in the beginning, but thats how the game is.
24) install extra maps (follow steps 11 to 17 again):
ftp://sunsite.dk/mirrors/lokigames/updates/heretic2/heretic2-maps-1.0.run
25) umount /cdrom
|
but this, unfortunately, comes up with errors whenever I try to patch b or c (something about a delta for the binary file not being found? I don't even know what a delta is!) It looks like this post is the closest I have gotten to actually getting an e-build for the game, but even still I can't run the game at all (probably because I can't patch it) I also tried the Loki_compat libs just in case, but no luck there either. I'll find that forum post and mention this there as well. |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Jan 26, 2006 1:54 am Post subject: |
|
|
| Here is an ebuild for the free playable demo of Heretic 2. |
|
| Back to top |
|
 |
IntergalacticWalrus Guru


Joined: 07 Jan 2003 Posts: 513 Location: Montreal QC (Canada)
|
Posted: Wed Oct 04, 2006 4:36 am Post subject: |
|
|
| Can one install Linux Heretic II with a non-Loki disc? I bought this game ages ago from a bargain bin but never got around to playing it, especially now that I no longer run Windows... |
|
| Back to top |
|
 |
zakk l33t

Joined: 16 Jun 2003 Posts: 614 Location: Oakland, CA
|
Posted: Wed Oct 04, 2006 4:44 am Post subject: |
|
|
| IntergalacticWalrus wrote: | | Can one install Linux Heretic II with a non-Loki disc? I bought this game ages ago from a bargain bin but never got around to playing it, especially now that I no longer run Windows... |
No |
|
| Back to top |
|
 |
|