View previous topic :: View next topic |
Author |
Message |
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Mon Jul 21, 2003 5:19 am Post subject: |
|
|
NitroPye wrote: |
Why can't it go into /usr/games? I think all games should be placed in one dir, in fact i would rather see /usr/games/<gamename>/ and symlinks to /usr/games/bin |
Every binary package goes in /opt, not just games. Examples: Acrobat, RealPlayer, blackdown-jdk, Yahoo messenger.
Why did they decide that? I guess because it makes it very easy to see which packages you have installed are source or binary. |
|
Back to top |
|
|
NitroPye Apprentice
Joined: 12 May 2003 Posts: 152 Location: Wish I was in England
|
Posted: Mon Jul 21, 2003 5:25 am Post subject: |
|
|
I dont know, I guess I dont use ebuilds for hardcore games. I guess I am just bitching becayse gentoo dosent conform to my game organization structure. Mainly because I have my games mounted at /usr/local/games on a seperate drive, because my games dir is almost as important as my home dir to me. _________________ waka waka
me and my fun work |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Mon Jul 21, 2003 2:35 pm Post subject: |
|
|
IMO (almost) every game on happypenguin.org deserves an ebuild :]
but i'd really like to see andromeda9 and glob2 ebuilds ...also freedroid-rpg could use an update :]
all binaries in /opt? ...that sounds really reasonable. but you can always change the ebuild's path yourself if you don't like it. i personally love to have binary and source packages separated. _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
haren n00b
Joined: 14 Jul 2003 Posts: 17
|
Posted: Mon Jul 21, 2003 6:32 pm Post subject: |
|
|
NitroPye wrote: |
Why can't it go into /usr/games? I think all games should be placed in one dir, in fact i would rather see /usr/games/<gamename>/ and symlinks to /usr/games/bin |
Well you see when you run a package distro the distro maintainer tends to like to place stuff in uniform places. If we all had gnome installed in /usr, /usr/share, /usr/local, or /opt, it would make tracking bugs that much harder than if the software was in 1 place across the distro. Unfortunatly 3rd party installers (UT2k3, Loki I.S.) dont know the distro FS hirarchy so they install to their default routes (IE. /usr/games or /usr/share/games). Anyway the idea is simple and goes back to something that we were taught as childern, Everything has a place, and everything in it's place. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Mon Jul 21, 2003 10:24 pm Post subject: |
|
|
hook wrote: | IMO (almost) every game on happypenguin.org deserves an ebuild :]
but i'd really like to see andromeda9 and glob2 ebuilds ...also freedroid-rpg could use an update :]
all binaries in /opt? ...that sounds really reasonable. but you can always change the ebuild's path yourself if you don't like it. i personally love to have binary and source packages separated. |
If you can pick some good ones from happypenguin I'll try to make ebuilds for them.
I just made a new ebuild for the latest FredroidRPG, you can get it here:
https://bugs.gentoo.org/attachment.cgi?id=14838&action=view
In the future, feel free to let the developers on https://bugs.gentoo.org/ know that there is a new version available. In most cases its very easy to bump up a version.
Glob2 has an ebuild if you search https://bugs.gentoo.org/. But its in a very unstable state and I don't see much hope of it working with versions of GCC newer than 2.95 any time soon.
When/if Andromeda9 gets a dedicated game server back up I'll post my ebuild for it. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
RagManX Apprentice
Joined: 13 Jul 2002 Posts: 220 Location: Tennessee
|
Posted: Tue Jul 22, 2003 2:37 pm Post subject: |
|
|
Haven't even tried to compile it yet (I'm away from my Gentoo box right now), but I just discovered that someone is trying to revive XTank. If an ebuild could be made to pull the file from CVS (listed on the web page) and compile/install it, I would be happy. I've been looking to play this game again for years, but the older source wouldn't compile properly on a Linux system.
RagManX _________________ http://www.gamingideas.com/ - an open discussion site for game improvement and new game ideas |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Tue Jul 22, 2003 3:30 pm Post subject: |
|
|
kiki the nano bot !!!! (on happypenguin.org ATM) _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Tue Jul 22, 2003 8:20 pm Post subject: |
|
|
I haven't been able to compile Kiko the nano bot yet. Has anyone else?
I got xtank compiled and running great, I'm testing the ebuild.
Here's a suggestion. If you like it, maybe the original poster of this thread can add this list to the first post. When you suggest a game for an ebuild, please do the following:
1. Note if you've actually played the game or you just think it looks like a good game.
2. Have you searched https://bugs.gentoo.org/ to see if an ebuild is in progress?
3. Have you compiled it on Gentoo and have it working and simply need an ebuild for it?
That would help people making ebuilds decide which ones to work on first and save them some time.
Thanks |
|
Back to top |
|
|
glitch13 Apprentice
Joined: 02 Oct 2002 Posts: 213 Location: New Orleans, LA
|
Posted: Tue Jul 22, 2003 8:42 pm Post subject: |
|
|
I believe I've found out why SuperEmptyBall isn't working. It was failing in main.c when it was setting the video mode, but the code doesn't pull and display the SDL error when/if it fails. When I pulled the error it said:
Code: |
Couldn't find matching GLX visual
|
digging around with a few SDL tutorials, I noticed that every one I looked at had the framebuffer size for the colors set to 5 (whereas it was 8 in SEB). When switched from
Code: |
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
|
to
Code: |
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
|
it works fine. Why is this? no idea. I'm sure somebody who's more proficiend in SDL could figure it out, or somebody who's more proficient with sed could arrange this change in the ebuild so a patch wouldn't have to be made. (and there's no "install" rules in the make, so you'd have to move the executable to the applicable directory manually). |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Wed Jul 23, 2003 7:14 am Post subject: |
|
|
AFAIS kiko's source lacks a file _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
glitch13 Apprentice
Joined: 02 Oct 2002 Posts: 213 Location: New Orleans, LA
|
Posted: Wed Jul 23, 2003 2:19 pm Post subject: |
|
|
Here's what I got for a super empty ball ebuild so far:
Code: |
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit games
DESCRIPTION="Clone of Super Monkey Ball"
HOMEPAGE="http://aoeu.snth.net/seb/"
SRC_URI="http://aoeu.snth.net/seb/seb-0714a.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND=">=media-libs/libsdl-1.2
>=media-libs/sdl-mixer-1.2.5-r1
>=media-libs/sdl-image-1.2.2"
S=${WORKDIR}/seb
src_compile(){
# 8 not working, changing to the more widely working 5.
sed -e 's/SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);/SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);/' ${WORKDIR}/seb/src/main.c > ${WORKDIR}/seb/src/main.c.tmp
mv src/main.c.tmp src/main.c
sed -e 's/SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);/SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);/' ${WORKDIR}/seb/src/main.c > ${WORKDIR}/seb/src/main.c.tmp
mv src/main.c.tmp src/main.c
sed -e 's/SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);/SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);/' ${WORKDIR}/seb/src/main.c > ${WORKDIR}/seb/src/main.c.tmp
mv src/main.c.tmp src/main.c
#adds error handling incase it fails to find GLX
sed -e 's/audio_free();/else { \n \t\t\tprintf("Error: %s\\n", SDL_GetError());\n\t\t}\n\t\taudio_free();/' ${WORKDIR}/seb/src/main.c > ${WORKDIR}/seb/src/main.c.tmp
make || die
}
src_install(){
#I have no idea how to get it to install correctly.
#in the code, it looks for the game data in "data/blahblah"
}
|
It changes the seemingly hardly ever working 8's to 5's. I'm still learning about how to make ebuilds, I was kind of at a loss of how to set it up so that the executable was in the games bin directory, and its data was in a games data directory.... any additions to this effect would be appreciated.
(PS: for clarification: this will compile, and the executable IS fixed insofar as the problems earlier about dumping you back to the prompt is concerned. HOWEVER, the data directory is not being installed, so it will not be playable.) |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Jul 23, 2003 3:44 pm Post subject: |
|
|
Cool, glad to see you got that working, glitch13.
I'm not familiar with SDL either, but it looks like the author should have checked the X server's bits per pixel before setting that to either 5 or 8. I guess someone should send him a bug report.
EDIT: After giving lots of advice I went ahead and finished the ebuild.
If anyone wants to try it:
Code: | mkdir /usr/local/portage/app-games
mkdir /usr/local/portage/app-games/seb
mkdir /usr/local/portage/app-games/seb/files
|
Look for the attachments on this page:
https://bugs.gentoo.org/show_bug.cgi?id=25123
Save the ebuild here:
/usr/local/portage/app-games/seb
Save all the other files (*.diff) here:
/usr/local/portage/app-games/seb/files
Then:
Code: | cd /usr/local/portage/app-games/seb
ebuild seb-0714a.ebuild digest
emerge seb-0714a.ebuild
|
The executable is named ball. |
|
Back to top |
|
|
glitch13 Apprentice
Joined: 02 Oct 2002 Posts: 213 Location: New Orleans, LA
|
Posted: Wed Jul 23, 2003 6:49 pm Post subject: |
|
|
Compiled and ran fine, but I think theres a problem with the floor textures:
[img:09eea4a339]http://www.glitch13.com/media/postlinks/sebsnap.jpg[/img:09eea4a339]
All the patches executed without error, here's the output of the install process of the ebuild:
Code: |
>>> Install seb-0714a into /var/tmp/portage/seb-0714a/image/ category app-games
doins: warning, skipping directory /var/tmp/portage/seb-0714a/work/seb/data/back
doins: warning, skipping directory /var/tmp/portage/seb-0714a/work/seb/data/map
doins: warning, skipping directory /var/tmp/portage/seb-0714a/work/seb/data/mtrl
doins: warning, skipping directory /var/tmp/portage/seb-0714a/work/seb/data/png
doins: warning, skipping directory /var/tmp/portage/seb-0714a/work/seb/data/sol
doins: warning, skipping directory /var/tmp/portage/seb-0714a/work/seb/data/wav
man:
prepallstrip:
strip:
strip:
usr/games/bin/ball
>>> Completed installing into /var/tmp/portage/seb-0714a/image/
>>> Merging app-games/seb-0714a to /
--- /usr/
--- /usr/games/
--- /usr/games/bin/
>>> /usr/games/bin/ball
--- /usr/share/
--- /usr/share/games/
>>> /usr/share/games/seb/
>>> /usr/share/games/seb/data/
>>> /usr/share/games/seb/data/levels.txt
>>> /usr/share/games/seb/data/back/
>>> /usr/share/games/seb/data/back/flood_d.jpg
>>> /usr/share/games/seb/data/back/flood_e.jpg
>>> /usr/share/games/seb/data/back/flood_n.jpg
>>> /usr/share/games/seb/data/back/flood_s.jpg
>>> /usr/share/games/seb/data/back/flood_u.jpg
>>> /usr/share/games/seb/data/back/flood_w.jpg
>>> /usr/share/games/seb/data/back/haze_d.jpg
>>> /usr/share/games/seb/data/back/haze_e.jpg
>>> /usr/share/games/seb/data/back/haze_n.jpg
>>> /usr/share/games/seb/data/back/haze_s.jpg
>>> /usr/share/games/seb/data/back/haze_u.jpg
>>> /usr/share/games/seb/data/back/haze_w.jpg
>>> /usr/share/games/seb/data/back/snow_d.jpg
>>> /usr/share/games/seb/data/back/snow_e.jpg
>>> /usr/share/games/seb/data/back/snow_n.jpg
>>> /usr/share/games/seb/data/back/snow_s.jpg
>>> /usr/share/games/seb/data/back/snow_u.jpg
>>> /usr/share/games/seb/data/back/snow_w.jpg
>>> /usr/share/games/seb/data/map/
>>> /usr/share/games/seb/data/map/angle.map
>>> /usr/share/games/seb/data/map/easy.map
>>> /usr/share/games/seb/data/map/fall.map
>>> /usr/share/games/seb/data/map/four.map
>>> /usr/share/games/seb/data/map/marble.map
>>> /usr/share/games/seb/data/map/maze.map
>>> /usr/share/games/seb/data/map/move.map
>>> /usr/share/games/seb/data/map/poke.map
>>> /usr/share/games/seb/data/map/quads.map
>>> /usr/share/games/seb/data/map/spiral.map
>>> /usr/share/games/seb/data/mtrl/
>>> /usr/share/games/seb/data/mtrl/arrow-green
>>> /usr/share/games/seb/data/mtrl/arrow-green.jpg
>>> /usr/share/games/seb/data/mtrl/caution
>>> /usr/share/games/seb/data/mtrl/caution.jpg
>>> /usr/share/games/seb/data/mtrl/coin-small-green
>>> /usr/share/games/seb/data/mtrl/coin-small-green.jpg
>>> /usr/share/games/seb/data/mtrl/edge
>>> /usr/share/games/seb/data/mtrl/edge.jpg
>>> /usr/share/games/seb/data/mtrl/glass
>>> /usr/share/games/seb/data/mtrl/glass.tga
>>> /usr/share/games/seb/data/mtrl/goal-green
>>> /usr/share/games/seb/data/mtrl/goal-green.jpg
>>> /usr/share/games/seb/data/mtrl/invisible
>>> /usr/share/games/seb/data/mtrl/invisible.tga
>>> /usr/share/games/seb/data/mtrl/mm-grid
>>> /usr/share/games/seb/data/mtrl/mm-grid.jpg
>>> /usr/share/games/seb/data/mtrl/mm-wall
>>> /usr/share/games/seb/data/mtrl/mm-wall.jpg
>>> /usr/share/games/seb/data/mtrl/mtrl.shader
>>> /usr/share/games/seb/data/mtrl/rail
>>> /usr/share/games/seb/data/mtrl/rail.jpg
>>> /usr/share/games/seb/data/mtrl/red
>>> /usr/share/games/seb/data/mtrl/red.jpg
>>> /usr/share/games/seb/data/mtrl/turf-brown
>>> /usr/share/games/seb/data/mtrl/turf-brown.jpg
>>> /usr/share/games/seb/data/mtrl/turf-green
>>> /usr/share/games/seb/data/mtrl/turf-green.jpg
>>> /usr/share/games/seb/data/mtrl/turf-grey
>>> /usr/share/games/seb/data/mtrl/turf-grey.jpg
>>> /usr/share/games/seb/data/mtrl/turf-small-green
>>> /usr/share/games/seb/data/mtrl/turf-small-green.jpg
>>> /usr/share/games/seb/data/mtrl/turf-small-grey
>>> /usr/share/games/seb/data/mtrl/turf-small-grey.jpg
>>> /usr/share/games/seb/data/png/
>>> /usr/share/games/seb/data/png/balls.png
>>> /usr/share/games/seb/data/png/coin.png
>>> /usr/share/games/seb/data/png/coins.png
>>> /usr/share/games/seb/data/png/conf.png
>>> /usr/share/games/seb/data/png/digit0.png
>>> /usr/share/games/seb/data/png/digit1.png
>>> /usr/share/games/seb/data/png/digit2.png
>>> /usr/share/games/seb/data/png/digit3.png
>>> /usr/share/games/seb/data/png/digit4.png
>>> /usr/share/games/seb/data/png/digit5.png
>>> /usr/share/games/seb/data/png/digit6.png
>>> /usr/share/games/seb/data/png/digit7.png
>>> /usr/share/games/seb/data/png/digit8.png
>>> /usr/share/games/seb/data/png/digit9.png
>>> /usr/share/games/seb/data/png/fall.png
>>> /usr/share/games/seb/data/png/go.png
>>> /usr/share/games/seb/data/png/goal.png
>>> /usr/share/games/seb/data/png/grid.png
>>> /usr/share/games/seb/data/png/over.png
>>> /usr/share/games/seb/data/png/part.png
>>> /usr/share/games/seb/data/png/pause.png
>>> /usr/share/games/seb/data/png/ready.png
>>> /usr/share/games/seb/data/png/set.png
>>> /usr/share/games/seb/data/png/time.png
>>> /usr/share/games/seb/data/png/title.png
>>> /usr/share/games/seb/data/sol/
>>> /usr/share/games/seb/data/sol/angle.sol
>>> /usr/share/games/seb/data/sol/easy.sol
>>> /usr/share/games/seb/data/sol/fall.sol
>>> /usr/share/games/seb/data/sol/four.sol
>>> /usr/share/games/seb/data/sol/marble.sol
>>> /usr/share/games/seb/data/sol/maze.sol
>>> /usr/share/games/seb/data/sol/move.sol
>>> /usr/share/games/seb/data/sol/poke.sol
>>> /usr/share/games/seb/data/sol/quads.sol
>>> /usr/share/games/seb/data/sol/spiral.sol
>>> /usr/share/games/seb/data/wav/
>>> /usr/share/games/seb/data/wav/ball.wav
>>> /usr/share/games/seb/data/wav/bump.wav
>>> /usr/share/games/seb/data/wav/coin.wav
>>> /usr/share/games/seb/data/wav/fail.wav
>>> /usr/share/games/seb/data/wav/go.wav
>>> /usr/share/games/seb/data/wav/goal.wav
>>> /usr/share/games/seb/data/wav/level.wav
>>> /usr/share/games/seb/data/wav/menu.wav
>>> /usr/share/games/seb/data/wav/over.wav
>>> /usr/share/games/seb/data/wav/pause.wav
>>> /usr/share/games/seb/data/wav/ready.wav
>>> /usr/share/games/seb/data/wav/set.wav
>>> /usr/share/games/seb/data/wav/tick.wav
>>> /usr/share/games/seb/data/wav/title.wav
* Remember, in order to play games, you have to
* be in the 'games' group.
* See the usermod(8) manpage for more information.
>>> Regenerating /etc/ld.so.cache...
>>> app-games/seb-0714a merged.
|
would seem that its the stuff in the "data/mtrl" directory at first glance, but I'm at work and kinda slammed so I really don't have too much time to look into it at the moment.
anyway... thanks for submitting the ebuild, its good to know how to do that stuff the correct way, and if you don't get to the textures, I'll try to take a look at it when I get home.
also, should I submit this to your bugzilla entry also? |
|
Back to top |
|
|
NitroPye Apprentice
Joined: 12 May 2003 Posts: 152 Location: Wish I was in England
|
Posted: Wed Jul 23, 2003 7:02 pm Post subject: |
|
|
What window manager are you using, it looks like you are running windows. _________________ waka waka
me and my fun work |
|
Back to top |
|
|
glitch13 Apprentice
Joined: 02 Oct 2002 Posts: 213 Location: New Orleans, LA
|
Posted: Wed Jul 23, 2003 7:12 pm Post subject: |
|
|
its kde, I just have the windows theme on (redmond i think its called) so people at work don't look like a deer in headlights when I show them something because it looks alien from windows. |
|
Back to top |
|
|
NitroPye Apprentice
Joined: 12 May 2003 Posts: 152 Location: Wish I was in England
|
Posted: Wed Jul 23, 2003 7:14 pm Post subject: |
|
|
Ahh, understood. Looked almost too realistic if you know what I mean. One of the benefits of not using windows IMO is the lack of horrible window decorations, but I can see where it can come in handy in the work place. _________________ waka waka
me and my fun work |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Jul 23, 2003 7:28 pm Post subject: |
|
|
Quote: |
would seem that its the stuff in the "data/mtrl" directory at first glance, but I'm at work and kinda slammed so I really don't have too much time to look into it at the moment.
|
Whoops, I thought that was just my junky video card, I'll take a look at it. I had the option for textures set to 'low' and assumed thats what it'd look like.
Quote: | anyway... thanks for submitting the ebuild, its good to know how to do that stuff the correct way, and if you don't get to the textures, I'll try to take a look at it when I get home.
|
I hope thats the correct way to do it. I guess we'll find out when the developers look at it.
Quote: | also, should I submit this to your bugzilla entry also? |
No thanks, I'll re-submit the fixed ebuild if I figure out whats wrong with the textures.
[EDIT:] I don't see anything obvious. If you figure it out before me, glitch13, feel free to post it here or on bugs.gentoo.org, whichever is easier for you.
[EDIT 2:] The developers in the game section said they don't care whether we use sed or patches, so... back to the drawing board. I'll use your sed's, glitch13, but stick them in src_unpack() and add new seds to replace all those bad data paths.
[EDIT 3:] I haven't got the floor textures working yet, but here is a cleaned up ebuild that requires no patches:
Code: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit games
DATA="${GAMES_DATADIR}/${PN}/data"
S=${WORKDIR}/${PN}
DESCRIPTION="Clone of Super Monkey Ball using SDL/OpenGL"
HOMEPAGE="http://aoeu.snth.net/seb/"
SRC_URI="http://aoeu.snth.net/seb/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=media-libs/libsdl-1.2
>=media-libs/sdl-mixer-1.2.5-r1
>=media-libs/sdl-image-1.2.2
virtual/glut"
src_unpack() {
unpack ${A}
cd ${S}/src
sed -e 's/SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);/SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);/' main.c > main.c.tmp
mv main.c.tmp main.c
sed -e 's/SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);/SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);/' main.c > main.c.tmp
mv main.c.tmp main.c
sed -e 's/SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);/SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);/' main.c > main.c.tmp
mv main.c.tmp main.c
sed -e "s:data/:${DATA}/:g" audio.c > audio.c.tmp
mv audio.c.tmp audio.c
sed -e "s:data/:${DATA}/:g" geom.c > geom.c.tmp
mv geom.c.tmp geom.c
sed -e "s:data/:${DATA}/:g" level.c > level.c.tmp
mv level.c.tmp level.c
sed -e "s:data/:${DATA}/:g" mapc.c > mapc.c.tmp
mv mapc.c.tmp mapc.c
sed -e "s:data/:${DATA}/:g" state.c > state.c.tmp
mv state.c.tmp state.c
sed -e "s:data/:${DATA}/:g" text.c > text.c.tmp
mv text.c.tmp text.c
sed -e "s:data/:${DATA}/:g" ../data/levels.txt > levels.txt.tmp
mv levels.txt.tmp ../data/levels.txt
}
src_compile() {
make || die
}
src_install() {
dogamesbin ball
dogamesbin mapc
rm -f ${S}/data/Makefile-W32
rm -f ${S}/data/Makefile
dodir ${DATA}
cp -R ${S}/data/* ${D}${DATA}
dodoc README.txt COPYING.txt MAPPING.txt
prepgamesdirs
}
|
Last edited by Pythonhead on Thu Jul 24, 2003 5:12 pm; edited 2 times in total |
|
Back to top |
|
|
Guru Tux's lil' helper
Joined: 15 Jul 2002 Posts: 91 Location: Los Angeles, CA
|
Posted: Thu Jul 24, 2003 1:38 am Post subject: Racer - Ultimate Race Sim (No Ebuild :-( ) |
|
|
Racer currently has no ebuilds.
Anyone up to the challenge? |
|
Back to top |
|
|
broeman Tux's lil' helper
Joined: 14 Mar 2003 Posts: 101 Location: Denmark, EUNATOUN
|
Posted: Thu Jul 24, 2003 10:00 am Post subject: Re: Racer - Ultimate Race Sim (No Ebuild :-( ) |
|
|
Guru wrote: | Racer currently has no ebuilds.
Anyone up to the challenge? |
You should try:
It has been there for a while but there is not much to start with, you have to download other cars and tracks |
|
Back to top |
|
|
scrooch n00b
Joined: 25 Jan 2003 Posts: 52 Location: Venlo/Eindhoven, the Netherlands
|
Posted: Fri Jul 25, 2003 4:04 pm Post subject: |
|
|
I think the Linux Game Launcher should need a ebuild too Check it out http://lglp.sourceforge.net/news.html and for a picture of it [img:9928ac34ca]http://lglp.sourceforge.net/screeni-1.png[/img:9928ac34ca]
This would be so incredible usefull for the people who want some of those fancy tools Windows users have for searching their friends on the so many game servers for various games _________________ too much is never enough |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Fri Jul 25, 2003 6:17 pm Post subject: |
|
|
Scrooch, did you get Linux Game Launcher working in Gentoo?
I'm using x11-libs/kylixlibs3-borqt-3.0.r1 and it won't work. Another problem is the data files won't fit into the proper places in Gentoo. I sent a request to the author to add a command line switch to fix this. |
|
Back to top |
|
|
glitch13 Apprentice
Joined: 02 Oct 2002 Posts: 213 Location: New Orleans, LA
|
Posted: Fri Jul 25, 2003 6:20 pm Post subject: |
|
|
Pythonhead,
the floor textures seem to be assigned in the .map files with one for each triangle in the mapping infomation. It can't be changed there because they are stored as "mtrl/texturename", then when the map "compiler" (mapc.c) is run on them to turn them into sol files, it slaps "data/" on the front of it and ".jpg" on the end of it. I tried to change mapc.c to put the ${DATA} directory in the front of it instead, but it doesn't seem to be working (the floors are completely transparent in the game). Maybe I'm doing something wrong in my editting of mapc.c. I'll try a few more things later.
Editorial: I think its a pretty bad programming practice to hardcode the location of the textures into the file during the compilation process. I believe the original programmer could have come up with a better solution than that, but for now its what we're stuck with. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Fri Jul 25, 2003 6:50 pm Post subject: |
|
|
glitch13 wrote: |
Editorial: I think its a pretty bad programming practice to hardcode the location of the textures into the file during the compilation process. I believe the original programmer could have come up with a better solution than that, but for now its what we're stuck with. |
Yes, this is a shame. I have been finding a lot of games have this problem. I suppose because they expect users to just run them from their home directories they do this and don't bother to put in an install target. Just on the list in this thread alone a good percentage had this problem.
Well you got a lot farther than I did. I was just about to give up on this. Please feel free to take credit for this ebuild on bugs.gentoo.org, you did all the difficult work, glitch13. |
|
Back to top |
|
|
scrooch n00b
Joined: 25 Jan 2003 Posts: 52 Location: Venlo/Eindhoven, the Netherlands
|
Posted: Fri Jul 25, 2003 6:55 pm Post subject: |
|
|
Pythonhead wrote: | Scrooch, did you get Linux Game Launcher working in Gentoo?
I'm using x11-libs/kylixlibs3-borqt-3.0.r1 and it won't work. Another problem is the data files won't fit into the proper places in Gentoo. I sent a request to the author to add a command line switch to fix this. |
No, actually I only studied the website but didn't dare to install it at all. I've messed up my system too often with installing programs which are not in portage But it this package is defenately on my #1 wishinglist _________________ too much is never enough |
|
Back to top |
|
|
|