| View previous topic :: View next topic |
| Author |
Message |
linuxfan Grub Bug

Joined: 19 Feb 2008 Posts: 6
|
Posted: Tue Feb 19, 2008 10:59 am Post subject: egoboo package for distro: SourceMage GNU/Linux |
|
|
Hi,
I'm a new developer on SourceMage GNU/Linux and I've developed a package install for egoboo. However, when I build this game manually or using my installer, egoboo will never come up. I'm sure I've gotten something wrong, but getting no messages from egoboo makes it difficult to troubleshoot.
SMGL is a source-based distro. I'd very much like to run and test egoboo. Please reply with any questions to:
linuxfan@sourcemage.org
Thanks. Any help will be appreciated. |
|
| Back to top |
|
 |
Agent of Dread lolwut?? (Moderator)


Joined: 23 Sep 2007 Age: 11 Posts: 4347 Location: FACEPLANT
|
Posted: Tue Feb 19, 2008 7:36 pm Post subject: |
|
|
Wow, a package you compiled on your own? Amazing!
Alas, seeing as I am a Windows user I don't have much I can do...
Oh, welcome and have a ! _________________ FACEPLANT |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Tue Feb 19, 2008 9:23 pm Post subject: |
|
|
Hmm, we really need some Linux knowledgeable programmers around here. So what is your problem exactly? Do you manage to build the Linux source thats on sourceforge.net? (Or the latest SVN revision on the project site). _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
linuxfan Grub Bug

Joined: 19 Feb 2008 Posts: 6
|
Posted: Wed Feb 20, 2008 12:16 am Post subject: |
|
|
Zefz,
Yes, I grabbed the egoboo-2.7.5 tarball and am using it. It compiled with no errors, but does nothing when egoboo is run. There is no message or window of any kind.
The built tarball and my modified package do exactly the same thing: nothing.
A secondary problem is that according to the LHS
http://www.pathname.com/fhs/2.2/
games should be installed in /usr/games, not /usr/bin. I simply modify the Makefile.unix before beginning the build, but it would be much nicer if the install occurs in the proper place to begin with. Namely, I move /usr/libexec/egoboo to /usr/games/egoboo-bin and /usr/bin/egoboo to /usr/games/egoboo. This is a more standard install IMHO.
But the biggest problem is that egoboo does nothing even with unmodified Makefile.unix and egoboo.sh.
Thanks. |
|
| Back to top |
|
 |
PurpleSquerkle Supreme Cookiemancer


Joined: 28 Oct 2007 Age: 17 Posts: 4356 Location: Midwestern US
|
Posted: Wed Feb 20, 2008 12:50 am Post subject: |
|
|
Argh, beat me again.
Oh well, have a cookie anyway!
(People who join the forum and/or do something cool get cookies)
Sorry; I can't help you though.  _________________
+ PurpleSquerkle
--My website--
Latest update= 7/15/08; Three new midi loops.
{new Squerkle coming as soon as I stop being lazy} |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Wed Feb 20, 2008 11:34 am Post subject: |
|
|
Okay, do you get a log.txt output when you try to run Egoboo? It should appear in the same folder in which you are running Egoboo.
That one might spit out some useful information on the problem. _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
linuxfan Grub Bug

Joined: 19 Feb 2008 Posts: 6
|
Posted: Fri Feb 22, 2008 5:33 am Post subject: log.txt |
|
|
Yes, the log.txt has some info. This points out a second problem: packages should create files only in ~/.<packagename>/ as a general rule. Thus, when a linux user looks for this type a problem he should go to ~/.egoboo/log.txt and it should be immediately obvious. Minor, easily fixed problem. Just prepend ~/.egoboo/ to any file you look for or create.
Your script makes sure this files exists, but it needs also to be used.  |
|
| Back to top |
|
 |
linuxfan Grub Bug

Joined: 19 Feb 2008 Posts: 6
|
Posted: Fri Feb 22, 2008 6:02 am Post subject: |
|
|
And the log.txt points out that I obviously missed directing the setup.txt from /usr/share/games/egoboo according to Linux's FHS. It's still looking in /usr/share/egoboo.
I'll temporarily fix this end with an sed script, but would appreciate if you could change the Linux stuff to install to /usr/games and /usr/share/games/egoboo.
Yipee! Well... almost. I get 1) no cursor which makes selection near impossible, 2) no "normal" keyboard responses as a backup to 1). Essentially,
I get the first and second menu and <esc> won't exit to previous.
The following is a slightly improved /usr/games/egoboo bash script. You'll
notice that I changed the executable to egoboo-bin:
===============================================
#!/bin/sh
EBIN=/usr/games
ESHARE=/usr/share/games/egoboo
# exit on any error
set -e
if [ ! -d ~/.egoboo ]; then
mkdir ~/.egoboo
cp -auv $ESHARE/{setup.txt,controls.txt,players} ~/.egoboo
ln -sf $ESHARE/{basicdat,modules} ~/.egoboo
fi
cd ~/.egoboo
exec $EBIN/egoboo-bin "$@"
========================================== |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Fri Feb 22, 2008 9:56 am Post subject: |
|
|
So this one is not better?
| Code: |
EGOBOO_PREFIX=/usr
EGOBOO_SHARED="${EGOBOO_PREFIX}/share/egoboo"
# exit on any error
set -e
if [ ! -d ~/.egoboo ]; then
mkdir ~/.egoboo
fi
if [ ! -f ~/.egoboo/setup.txt ]; then
cp -a "${EGOBOO_SHARED}/setup.txt" ~/.egoboo
fi
if [ ! -f ~/.egoboo/controls.txt ]; then
cp -a "${EGOBOO_SHARED}/controls.txt" ~/.egoboo
fi
if [ ! -d ~/.egoboo/players ]; then
cp -a "${EGOBOO_SHARED}/players" ~/.egoboo
fi
if [ ! -d ~/.egoboo/basicdat ]; then
ln -s "${EGOBOO_SHARED}/basicdat" ~/.egoboo
fi
if [ ! -d ~/.egoboo/modules ]; then
ln -s "${EGOBOO_SHARED}/modules" ~/.egoboo
fi
cd ~/.egoboo
exec "${EGOBOO_PREFIX}/libexec/egoboo" "$@" |
Would just need to add /games in there... _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
linuxfan Grub Bug

Joined: 19 Feb 2008 Posts: 6
|
Posted: Fri Feb 22, 2008 10:14 am Post subject: |
|
|
No. It still uses libexec, not /usr/games, and egoboo rather than egoboo-bin. Also, I dislike "assuming" that $PREFIX will be part of $SHARED. Lastly, if you add the extra conditionals, you may move the `cd ~/.egoboo` to just after the the first `if`. Then ~/.egoboo may be changed to ./ and simplifies any further changes.
It's all a moot point if all that I get is a black screen, which is currently the
case.
Thanks. |
|
| Back to top |
|
 |
|