Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Zep's Dreamland: Linux complete!

This thread is locked; no one can reply to it. rss feed Print
 1   2   3 
Zep's Dreamland: Linux complete!
Ultio
Member #1,336
April 2001

It's official, the Linux port of Zep's Dreamland is now complete. It should run on most flavors of Linux without a problem. However, if you run into some strange issue that is not a specific driver related issue, please let me know. Nothing new has changed in the actual gameplay or levels for anyone who has played the Windows/OS X versions and hoping for something new. :)

Enjoy. :)

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

SonShadowCat
Member #1,548
September 2001
avatar

I'll try it out right now.

Edit: WHAT?!?! No source?

Bad. It won't run on my machine. Mandrake 10. You should really release source so we can compile it and increase the chance of making it work.

Ultio
Member #1,336
April 2001

Doesn't run on your Mandrake 10? It ran on two other users versions of Mandrake 10. :)
(and no, no source for you!)

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

SonShadowCat
Member #1,548
September 2001
avatar

How am I to play without source to compile :P. Any special libs that it requires?

Ultio
Member #1,336
April 2001

Nope. I statically linked everything I possibly could into it (the only library is uses is Allegro anyways). I'm afraid if it doesn't run you're just out of luck! Sorry! :P I'm serious though, I'm not releasing source at this point in time. Sad, but true.

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

SonShadowCat
Member #1,548
September 2001
avatar

Lets see how many others complain before you release it :).

Ultio
Member #1,336
April 2001

Yeah, it will take more than every Linux user who can't play the precompiled binary; that's for sure. ;D

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

SonShadowCat
Member #1,548
September 2001
avatar

Ultio
Member #1,336
April 2001

I'll have them when the time is right to release the sourcecode, if ever. It's not my fault linux comes in about 50-million different flavors. ;)

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

Kitty Cat
Member #2,815
October 2002
avatar

Runs fine here on Gentoo. Cool game. :) I got stuck though, so I decided to quit and bring some praise.

SSC: Why doesn't it run? What errors do you get?

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

CGamesPlay
Member #2,559
July 2002
avatar

Write an ebuild for it, submit it to portage, and I will install :)

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

SonShadowCat
Member #1,548
September 2001
avatar

It's your fault for depriving us of your game :P. Oh well, I can always play it in windows ^_^.

Ultio
Member #1,336
April 2001

Glad you enjoyed it thusfar. What level did you get stuck on? :)
CGames: PM me with more information about ebuild please.

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

SonShadowCat
Member #1,548
September 2001
avatar

I don't get any errors at all. It looks as if its going to start but then just quits.

Ultio
Member #1,336
April 2001

SSC: Maybe it's having issues doing windowed mode? You can manually set it to load up in fullscreen mode by editing: data/settings.txt. Change the last line from 1 (windowed) to 0 (fullscreen). :)

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

Kitty Cat
Member #2,815
October 2002
avatar

Quote:

It's your fault for depriving us of your game :P. Oh well, I can always play it in windows ^_^.

I still would like to know what problems you were having. I don't think it's a dynamic lib problem:

$ ldd ZepsDreamland
        not a dynamic executable

I'd like to know in case I ever decide to release a binary for Linux. Might be a driver problem... is ZepsDreamland able to use Linux Console drivers (ie. SVGALib, fbcon, etc)? If your (Ultio's) static lib build of Allegro doesn't support them, then it won't work for us either. Same goes for any other driver.

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

SonShadowCat
Member #1,548
September 2001
avatar

It does try to start in fullscreen mode. The screen goes all black as though it were about to start then crashes.

CGamesPlay
Member #2,559
July 2002
avatar

ebuild is gentoo's package construction/management system. It handle dependencies, source compilation, etc.

Allegro 4.1.17's ebuild:

1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-libs/allegro/allegro-4.1.17.ebuild,v 1.2 2005/01/19 00:43:00 wolf31o2 Exp $
4 
5IUSE="static mmx sse oss alsa esd arts X fbcon svga tetex doc"
6 
7inherit flag-o-matic
8 
9DESCRIPTION="cross-platform multimedia library"
10HOMEPAGE="http://alleg.sourceforge.net/"
11SRC_URI="mirror://sourceforge/alleg/${P}.tar.gz"
12 
13LICENSE="Allegro"
14SLOT="0"
15#-amd64, -sparc: inportb, outportb, outportw undefined
16KEYWORDS="~alpha -amd64 ~ia64 ~ppc -sparc ~x86"
17 
18RDEPEND="alsa? ( media-libs/alsa-lib )
19 esd? ( media-sound/esound )
20 arts? ( kde-base/arts )
21 X? ( virtual/x11 )
22 svga? ( media-libs/svgalib )"
23 
24DEPEND="${RDEPEND}
25 >=sys-apps/sed-4
26 tetex? ( virtual/tetex )"
27 
28src_unpack() {
29 unpack ${A}
30 
31 sed -i \
32 -e 's/&_oss_\(numfrags\|fragsize\)/NULL/' \
33 "${S}/setup/setup.c" \
34 || die "sed failed"
35}
36 
37src_compile() {
38 filter-flags -fPIC -fprefetch-loop-arrays
39 econf \
40 --enable-linux \
41 --enable-vga \
42 $(use_enable static) \
43 $(use_enable static staticprog) \
44 $(use_enable mmx) \
45 $(use_enable sse) \
46 $(use_enable oss ossdigi) \
47 $(use_enable oss ossmidi) \
48 $(use_enable alsa alsadigi) \
49 $(use_enable alsa alsamidi) \
50 $(use_enable esd esddigi) \
51 $(use_enable arts artsdigi) \
52 $(use_with X x) \
53 $(use_enable X xwin-shm) \
54 $(use_enable X xwin-vidmode) \
55 $(use_enable X xwin-dga) \
56 $(use_enable X xwin-dga2) \
57 $(use_enable fbcon) \
58 $(use_enable svga svgalib) \
59 || die
60 
61 emake -j1 CFLAGS="${CFLAGS}" || die "emake failed"
62 
63 if use tetex ; then
64 addwrite /var/lib/texmf
65 addwrite /usr/share/texmf
66 addwrite /var/cache/fonts
67 make docs-dvi docs-ps || die
68 fi
69}
70 
71src_install() {
72 addpredict /usr/share/info
73 make DESTDIR="${D}" \
74 install \
75 install-gzipped-man \
76 install-gzipped-info \
77 || die "make install failed"
78 
79 # Different format versions of the Allegro documentation
80 dodoc AUTHORS CHANGES THANKS readme.txt todo.txt
81 use tetex && dodoc docs/allegro.{dvi,ps}
82 use doc && dodoc examples/*
83 dohtml docs/html/*
84 docinto txt
85 dodoc docs/txt/*.txt
86 docinto rtf
87 dodoc docs/rtf/*.rtf
88 docinto build
89 dodoc docs/build/*.txt
90}

So..... it looks like it's got functions for the various tasks involved.... Let's try a binary ebuild, since that's what you'll be using.

Firefox 1.0's ebuild:

1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-www/mozilla-firefox-bin/mozilla-firefox-bin-1.0.ebuild,v 1.2 2004/11/18 21:53:15 agriffis Exp $
4 
5inherit nsplugins eutils mozilla-launcher
6 
7IUSE="gnome"
8 
9DESCRIPTION="The Mozilla Firefox Web Browser"
10SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0/linux-i686/en-US/firefox-${PV}.tar.gz"
11HOMEPAGE="http://www.mozilla.org/projects/firefox"
12RESTRICT="nostrip"
13 
14KEYWORDS="-* x86 amd64"
15SLOT="0"
16LICENSE="MPL-1.1 NPL-1.1"
17 
18DEPEND="virtual/libc"
19RDEPEND="virtual/x11
20 x86? (
21 >=sys-libs/lib-compat-1.0-r2
22 >=x11-libs/gtk+-2.2
23 )
24 amd64? (
25 >=app-emulation/emul-linux-x86-baselibs-1.0
26 >=app-emulation/emul-linux-x86-gtklibs-1.0
27 )
28 >=net-www/mozilla-launcher-1.22"
29 
30S=${WORKDIR}/firefox
31 
32src_install() {
33 # Install firefox in /opt
34 dodir /opt
35 mv ${S} ${D}/opt/firefox
36 
37 # Plugin path setup (rescuing the existing plugins)
38 src_mv_plugins /opt/firefox/plugins
39 
40 # Fixing permissions
41 chown -R root:root ${D}/opt/firefox
42 
43 # mozilla-launcher-1.8 supports -bin versions
44 dodir /usr/bin
45 dosym /usr/libexec/mozilla-launcher /usr/bin/firefox-bin
46 
47 # Install icon and .desktop for menu entry
48 if use gnome; then
49 insinto /usr/share/pixmaps
50 doins ${FILESDIR}/icon/mozillafirefox-bin-icon.png
51 # Fix bug 54179: Install .desktop file into /usr/share/applications
52 # instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis)
53 insinto /usr/share/applications
54 doins ${FILESDIR}/icon/mozillafirefox-bin.desktop
55 fi
56 
57 # Normally firefox-bin-0.9 must be run as root once before it can
58 # be run as a normal user. Drop in some initialized files to
59 # avoid this.
60 einfo "Extracting firefox-bin-${PV} initialization files"
61 tar xjpf ${FILESDIR}/firefox-bin-0.9-init.tar.bz2 -C ${D}/opt/firefox
62}
63 
64pkg_preinst() {
65 export MOZILLA_FIVE_HOME=${ROOT}/opt/firefox
66 
67 # Remove the old plugins dir
68 pkg_mv_plugins /opt/firefox/plugins
69 
70 # Remove entire installed instance to prevent all kinds of
71 # problems... see bug 44772 for example
72 rm -rf "${MOZILLA_FIVE_HOME}"
73}
74 
75pkg_postinst() {
76 export MOZILLA_FIVE_HOME=${ROOT}/opt/firefox
77 
78 update_mozilla_launcher_symlinks
79}
80 
81pkg_postrm() {
82 update_mozilla_launcher_symlinks
83}

Meh. This might help, might not. Looks like you'll need to know bash to do this. Anyways, I haven't really got time to mess with it, sorry.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Ultio
Member #1,336
April 2001

I have no idea about Linux Console drivers. I'm not that Linux oriented, to be honest. :)
SSC: Try modifying the file and testing both modes.

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

Nivoc
Member #5,383
January 2005
avatar

It runs perfectly on my slackware 10. :)

except the editor. I get this error:

Error initialising sound system
Insufficient digital voices available

-----------
Current project: Space Cadet

Richard Phipps
Member #1,632
November 2001
avatar

Is anything being done in the Linux world to resolve these kind of problems?

Some kind of framework to integrate different linux versions for example? As in the way DirectX and OpenGL try to make a common method regardless of the actual gfx board used.

Rampage
Member #3,035
December 2002
avatar

-R

Richard Phipps
Member #1,632
November 2001
avatar

Ok.. So is it not being used much yet then?

Rampage
Member #3,035
December 2002
avatar

I don't think so. Many developers are not aware of its existence.

TANSTAAFL: The freedom to install exactly what you want costs you the easy compatibility :-/.

-R

jamal
Member #3,326
March 2003
avatar

Works on my mandrake 9.2. I can hear sound, but no music ...
Cant go thru level 10 but just played for a few minutes.
Great game !! :)

EDIT: Level editor works perfectly

 1   2   3 


Go to: