Debian d2x-xl package project

All other topics around Descent and D2X-XL

Moderators: Frustikus, simX, Aus-RED-5

User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

REVAMPED D2X-XL REPOSITORY

Postby lloyd » Sat Aug 15, 2009 4:49 am

OK, guys, I think I have the D2X-XL Debian binary installation packages in a working state. :D I have had to test it in portions, due to my slow Internet connection - that is, I still have not done a clean install. But, in portions, it works for me.

There may still be installation issues. I will try to continue with testing on various distros and will report here.

The original mammoth 30+ meg demo installation package is replaced by 5 smaller packages, intended to be useful to those who, for example, just want to keep their D2X-XL binary up to date. The package containing the D2X-XL binary executable is just 1.6 megs in size.

If you have the full Descent game data and don't want to bother with the demo levels, you can mark the package "d2x-xl-base" for installation. I also recommended d2x-xl-midi, for music during gameplay.

The updated information on the repository is here:

http://www.lstandish.com/linux/d2x-xl-demo

Note that I changed the name of the repository "distribution" back to "d2x-xl/". Be careful; your browser might show you a cached older version of the Synaptic photo, which showed the distribution as "binary/".
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Sat Aug 15, 2009 6:19 am

I updated the D2X-XL version in the repository to 1.14.95, and tried it - got lockup after only a minute or 2 of play. So I rolled back the version to 1.14.93. It does the same thing. I tried 1.14.88 and it is OK, but was not compiled on my Etch server, so this could be a faulty compile. I have to take the repository offline again, and carefully test a binary before updating the repository. It turns out to be hard to roll a repository version back - or, at least, I haven't figured it out yet.
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Debian/Ubuntu Repository Ready

Postby lloyd » Sun Aug 16, 2009 11:51 pm

Hello Everyone,

It turned out that the trouble I had with the game locking up (when compiled on Debian Etch) was not due to any new problem in recent versions of D2X-XL. I found that every D2X-XL version (I tried 95, 93 and 88) gave the same trouble.

I looked very hard for a solution. Unfortunately I could not find one. I simply could not compile a usable D2X-XL version on Etch. (I won't go into detail here on what I did.) A question: has anyone been able to make a working D2X-XL on Debian Etch (4)?

I had to go back to compiling on my home desktop machine (Lenny). The D2X-XL created there works for me on Lenny. I hope it will work on Ubuntu and similar Debian-derivative distros too. For starters, I have used D2X-XL version 1.14.88.

Of course, I never tried running what I compiled (on Etch) on Etch itself! The Etch machine is a VPS off in Dallas, TX. I was compiling on Etch (Debian 4) and running the program on Lenny (Debian 5).

If there are troubles with these packages not working on recent versions of Ubuntu, I'll try to compile D2X-XL with static libraries (except opengl).

If you have Ubuntu (or Debian Lenny or later), please try these packages. The instructions for use are here: http://www.lstandish.com/linux/d2x-xl-demo

I hope this is useful to many Linux users (I know it will be AT LEAST to Debian users).
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Confirmed working on latest Ubuntu

Postby lloyd » Tue Aug 18, 2009 3:35 pm

I had a friend with Ubuntu 9.04 (latest Ubuntu) try d2x-xl-demo on his laptop, and installation went smoothly. The program ran OK, but there was no music. I think this is probably a problem specific to this laptop with its Intel sound chip.

Suggestion: it might help to reboot the computer after installation and before trying to run it, to force all sound applications that use sdl and sdl-mixer to start using the new D2X-XL-provided versions. I think that by installing in /usr/local/lib, the D2X-XL versions of these sound libraries are grabbed by applications, since the path /usr/local/lib is searched BEFORE the path /usr/lib

Somebody else with Ubuntu, please try it and post results here.
http://www.lstandsh.com/linux/d2x-xl-demo
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Tue Aug 18, 2009 3:40 pm

Why should sound depend on the graphics hardware? :think: :rofl:

I will install Ubuntu 64 bit on my new hardware next week.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Tue Aug 18, 2009 3:57 pm

I was only speculating that the fact that music didn't work in D2X-XL might have something to do with the the D2X-XL version of sdl-mixer which was installed in /usr/local/lib. Maybe other programs were using the version of sdl-mixer in /usr/lib at the time the program was installed. I'm not saying the sound problem has anything to do with the graphics hardware.

By the way, the D2X-XL sound effects did work. However, sound got messed up on the laptop and we had to do the following to get sound back:

/etc/init.d/alsa-utils stop
dpkg-reconfigure alsa-utils
/etc/init.d/alsa-utils start

I think problems like this would be solved by static linking. One big d2x-xl program with all needed libraries compiled-in.
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Tue Aug 18, 2009 7:57 pm

I think I found the music problem on Ubuntu. I had not specified timidity as a dependency, and I think the guy who tried it did not have timidity installed. I'm about 90% sure of this, but I will have to wait a day to ask him.

I think you should list it too on your Linux installation page as a requirement for midi music. It worked of course on our machines without timidity declared as a dependency because we already had timidity installed.

I fixed this in the repository. I think it ought to be fine for all recent Ubuntu now, plus of course Debian Lenny and more recent.
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Tue Aug 18, 2009 8:09 pm

When you're done, please give me a download link so that I can put this on my own web server and on sourceforge.net.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Tue Aug 18, 2009 10:38 pm

The latest D2X-XL Ubuntu/Debian package files can be be downloaded at http://files.lstandish.com/d2x-xl but in order to easily install these packages, the files really should be in a "repository." Otherwise, if a user just downloads them and installs by right-clicking on the downloaded file, the dependencies will not be automatically met.

Therefore, I suggest you do one of the following:
1. provide information on how to add my D2X-XL repository to a user's Ubuntu/Debian repository list, or
2. link to http://www.lstandish/linux/d2x-xl-demo which explains how to add the repository, or
3. mirror the files (including the repository info file Packages.gz) to any HTTP-accessible directory on your server. In this case you would be providing a repository, and the user of your repository would in my opinion still need some instruction on how to add it to his repository list.
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Sat Aug 22, 2009 4:55 am

Confirmed 100% working on Ubuntu 9.0.4 (and of course Debian Lenny).
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Fri Aug 28, 2009 10:52 pm

Lloyd,

thanks for your work so far. :thumb:

I have finally come around to mirror the files in the D2X-XL project on Sourceforge.net and link to your server from my D2X-XL download page.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Sun Aug 30, 2009 2:42 am

Glad to see you have linked to my D2X-XL Debian/Ubuntu repository, thanks.

I have realized hires sounds are not played by my compilation. I'm still looking for the trouble in my configuration or in the dependency packages, and will post on this forum when it is fixed. However, the original midi sounds and music are working. I can't put any attention to this now since I am in the USA visiting my terminally sick uncle.

Has anyone on this forum tried these Linux packages yet?

By the way, the package includes a bash wrapper script which checks for the necessary D2 demo *or* D2 full game data files, and warns about any omissions with a nice GUI popup dialog box.

I didn't get it to add a menu item to the Gnome/KDE menu, but it does add an entry with icon to the "Debian" menu.
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sun Aug 30, 2009 5:45 am

Sound problem has not been forgotten - just postponed a little.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Postby lloyd » Tue Sep 01, 2009 3:14 pm

Since you said hires sounds are working on your Linux build of D2X-XL, I have assumed that the problem is not in D2X-XL.

My latest idea is that the problem might be in the fact that the supporting software packages I used have been "Debianized," which often cripples functionality that the Debian considers not to be "free" enough. I have been planning to try re-compile everything using the original versions rather than the Debianized ones.
D2X-XL Debian/Ubuntu package repository:
http://standish.home3.org/d2x-xl
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Tue Sep 01, 2009 3:35 pm

Well, I just debugged it, and it definitely works for me.

Reasons it does not work for you can be

- you haven't installed all hires sounds (D2X-XL counts them)
- you have installed them in the wrong folder (regard that all D2X-XL Linux folder names must be completely lowercase)
- you do not have the D2X-XL addon sounds installed (they are in d2x-xl-data-<version>.rar)

That's all I can think of now.

Return to “General Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests