Egoboo Forum

The Legend of Egoboo Sporks of Yore
egoboo package for distro: SourceMage GNU/Linux

 
Post new topic   Reply to topic    Egoboo Forum Forum Index -> -> Help
View previous topic :: View next topic  
Author Message
linuxfan
Grub Bug
Grub Bug


Joined: 19 Feb 2008
Posts: 6


PostPosted: Tue Feb 19, 2008 10:59 am    Post subject: egoboo package for distro: SourceMage GNU/Linux If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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
View user's profile Send private message
Agent of Dread
lolwut?? (Moderator)
lolwut?? (Moderator)


Joined: 23 Sep 2007
Age: 11
Posts: 4347
Location: FACEPLANT

PostPosted: Tue Feb 19, 2008 7:36 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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 Cookie! !
_________________
FACEPLANT
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Zefz
Lead Designer
Lead Designer


Joined: 16 Sep 2007
Posts: 2301
Location: Norway

PostPosted: Tue Feb 19, 2008 9:23 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
linuxfan
Grub Bug
Grub Bug


Joined: 19 Feb 2008
Posts: 6


PostPosted: Wed Feb 20, 2008 12:16 am    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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
View user's profile Send private message
PurpleSquerkle
Supreme Cookiemancer
Supreme Cookiemancer


Joined: 28 Oct 2007
Age: 17
Posts: 4356
Location: Midwestern US

PostPosted: Wed Feb 20, 2008 12:50 am    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Argh, beat me again.
Oh well, have a cookie anyway! Cookie!
(People who join the forum and/or do something cool get cookies)

Sorry; I can't help you though. Rolling Eyes
_________________

+ 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
View user's profile Send private message Send e-mail Visit poster's website
Zefz
Lead Designer
Lead Designer


Joined: 16 Sep 2007
Posts: 2301
Location: Norway

PostPosted: Wed Feb 20, 2008 11:34 am    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
linuxfan
Grub Bug
Grub Bug


Joined: 19 Feb 2008
Posts: 6


PostPosted: Fri Feb 22, 2008 5:33 am    Post subject: log.txt If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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. Wink
Back to top
View user's profile Send private message
linuxfan
Grub Bug
Grub Bug


Joined: 19 Feb 2008
Posts: 6


PostPosted: Fri Feb 22, 2008 6:02 am    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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
View user's profile Send private message
Zefz
Lead Designer
Lead Designer


Joined: 16 Sep 2007
Posts: 2301
Location: Norway

PostPosted: Fri Feb 22, 2008 9:56 am    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
linuxfan
Grub Bug
Grub Bug


Joined: 19 Feb 2008
Posts: 6


PostPosted: Fri Feb 22, 2008 10:14 am    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

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. Wink

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Egoboo Forum Forum Index -> -> Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


© 2007 Informe.com. Get Free Forum Hosting
Powered by phpBB © 2001, 2005 phpBB Group

RedSilver 1.01 Theme was programmed by DEVPPL HTML Forum
Images were made by DEVPPL Photoshop Forum