maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Maemo 5] Descent 1 (DXX-Rebirth) port (https://talk.maemo.org/showthread.php?t=51753)

LordNelson 2010-05-03 17:00

[Maemo 5] Descent 1 (DXX-Rebirth) port
 
Hi,

I opened a new garage project for DXX-Rebirth. Up to now only D1X-Rebirth is done, not sure when D2X-Rebirth will work.
The current version is using a up to now unreleased Open GL ES port initially done by v66r for the Beagle Board (Thanks again for your work if you should read this :)). This version still got some bugs (A memory leak after playing for some time that causes messed up textures and low fps, no screenshots...), but it's already playable. But it's still experimental and may cause problems. You've been warned, so if your N900 explodes it's your own fault ;)
I have also done some other modifications to make it usable on the N900. You can use Shift+Backspace instead of ESC to go back in menus and so on. The other hardcoded shortcuts can be seen after pressing Ctrl+K while playing.
The Zoom/Volume-Keys can be used as game controls too since I disabled the usual volume-functionality inside the game (I'm using them as fire keys and they're doing pretty good so far :)).

Another application I really recommend is Accelemymote, that makes the accelerometer usable in D1X-Rebirth as joystick. It can be started automatically when D1X-Rebirth is started by creating the file ~/.d1x-rebirth/amm-autostart.
Code:

touch ~/.d1x-rebirth/amm-autostart
Thanks a lot for this great piece of software Flandry :)

To install D1X-Rebirth, you have to install it from extras-devel or download d1x-rebirth_0.55.1-5maemo1_armel.deb and libphysfs1_2.0.1-1maemo1_armel.deb and install them. After you've installed them, copy the Descent 1 game data files descent.hog and descent.pig (Both filenames have to be lowercase) to /opt/d1x-rebirth/. You need version 1.4a of the game data files, so maybe you have to patch them.
You have to choose joystick in options/controls to use Accelemymote, mouse if you want to use the touchscreen or set keys for pitch/turn if you just want to use the keyboard.
That's it, have fun :)

Bundyo 2010-05-03 20:00

Re: DXX-Rebirth for the N900
 
Works great, looks good :)

Tried to find the source some time ago, but no luck, thanks.

It will be good if mouse look is enabled by default (it is easier to steer with the touchscreen) and if the screen resolution is set to 800x480 (5x3).

A problem - after the screen fell asleep the whole application freezed and couldn't be killed (from ssh because the task manager wasn't responding too)..

LordNelson 2010-05-03 21:35

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by Bundyo (Post 641093)
Works great, looks good :)

Thanks :)

Quote:

Originally Posted by Bundyo (Post 641093)
It will be good if mouse look is enabled by default (it is easier to steer with the touchscreen) and if the screen resolution is set to 800x480 (5x3).

Prefer to use Accelemymote myself but good idea for people using the touchscreen for steering, will add this in the next version. 800x480 as default resolution is already planned beside a adapted default keymapping. Will also move the binary to /opt/ since it's pretty large.

Quote:

Originally Posted by Bundyo (Post 641093)
A problem - after the screen fell asleep the whole application freezed and couldn't be killed (from ssh because the task manager wasn't responding too)..

Tried to reproduce this but no success yet... what did you do before the screen fell asleep (Playing, menu, something else)?

pelago 2010-05-03 21:42

Re: DXX-Rebirth for the N900
 
Thanks for porting this. You know, if I was writing that first post in this thread, I would have put Descent in large letters near the top and the thread title to draw people's attention to what this really is ;-) I'm cool if you want to keep this low-key for now, though.

LordNelson 2010-05-03 21:56

Re: DXX-Rebirth for the N900
 
Changed the title to clarify that it's a port of Descent 1 ;)
At least in theory... looks like it takes some time to get updated.

Bundyo 2010-05-03 23:25

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by LordNelson (Post 641280)
Thanks :)



Prefer to use Accelemymote myself but good idea for people using the touchscreen for steering, will add this in the next version. 800x480 as default resolution is already planned beside a adapted default keymapping. Will also move the binary to /opt/ since it's pretty large.



Tried to reproduce this but no success yet... what did you do before the screen fell asleep (Playing, menu, something else)?

I was in the menu - I think in the resolution edit box, but not sure.

shinkamui 2010-05-03 23:40

Re: DXX-Rebirth for the N900
 
I lust after descent and descent 2. The 2 D's are like a big pair of titties that I lay my head on and fall asleep. The resulting blissful dream is the playing experience.

Darkwolf 2010-05-04 08:11

Re: DXX-Rebirth for the N900
 
This is a dream come true! Definitely going to give this a go real soon.
Does it also work with the shareware version? Or do you really need the full version, which unfortunately is still commercial.

pelago 2010-05-04 10:37

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by LordNelson (Post 641333)
Changed the title to clarify that it's a port of Descent 1 ;)
At least in theory... looks like it takes some time to get updated.

Although you can change the subject line on the first post, this doesn't change the thread title itself. You need to ask a moderator to do this. Probably best method to draw this to their attention is to click the Report Post icon in top-right.

LordNelson 2010-05-04 12:40

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by Bundyo (Post 641460)
I was in the menu - I think in the resolution edit box, but not sure.

Hmmm, no problems here so far but I'll keep an eye on it :)

Quote:

Originally Posted by Darkwolf (Post 642010)
This is a dream come true! Definitely going to give this a go real soon.
Does it also work with the shareware version? Or do you really need the full version, which unfortunately is still commercial.

It should work with the shareware-version too, haven't tried it out though.

Quote:

Originally Posted by pelago (Post 642199)
Although you can change the subject line on the first post, this doesn't change the thread title itself. You need to ask a moderator to do this. Probably best method to draw this to their attention is to click the Report Post icon in top-right.

Yep, looks like it just changes the subject of the first post. Will try out the report post link, thanks :)

g0dzilla 2010-05-04 13:01

Re: DXX-Rebirth for the N900
 
http://maemos.ru/wp-content/uploads/.../3-650x390.png

http://maemos.ru/wp-content/uploads/.../4-650x390.png

shinkamui 2010-05-04 15:30

Re: DXX-Rebirth for the N900
 
I hope the pr 1.2 opengles dependency issue is fixed soon, I regret upgrading only because I can't enjoy this title on teh run.

LordNelson 2010-05-04 16:54

Re: DXX-Rebirth for the N900
 
I've uploaded a new release to garage. It's using 800x480 as default resolution and I adapted the default keymappings to match the N900 keyboard.
The binary isn't on root-fs anymore and mouselook is enabled by default now.
You can also create the file ~/.d1x-rebirth/amm-autostart if you want to have Accelemymote started together with D1X-Rebirth.

Of course you won't get the new default settings if you've used the previous version without deleting the saved settings (The folder ~/.d1x-rebirth).

GameboyRMH 2010-05-04 17:56

Re: DXX-Rebirth for the N900
 
Excellent! I can't wait to try this out! :D

GameboyRMH 2010-05-04 21:34

Re: DXX-Rebirth for the N900
 
I tried with the shareware files, it just crashes as soon as I see the pointer...

F2thaK 2010-05-05 11:02

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by shinkamui (Post 642602)
I hope the pr 1.2 opengles dependency issue is fixed soon, I regret upgrading only because I can't enjoy this title on teh run.

IN same boat !!

xman 2010-05-05 14:57

Re: DXX-Rebirth for the N900
 
I totally thought for a second that this was Rebirth the music app coming to n900..LOL oops

x

LordNelson 2010-05-06 20:56

Re: DXX-Rebirth for the N900
 
Another update for you guys, v66r fixed the bug that caused the invisible robots to be visible :)

Darkwolf 2010-05-07 13:25

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by GameboyRMH (Post 643395)
I tried with the shareware files, it just crashes as soon as I see the pointer...

Ah darn. :mad:

Quote:

Originally Posted by LordNelson (Post 647091)
Another update for you guys, v66r fixed the bug that caused the invisible robots to be visible :)

That's not a bug, it's a feature! :p

GameboyRMH 2010-05-07 14:29

Re: DXX-Rebirth for the N900
 
GOG has Descent 1+2 for $7US, I ordered it yesterday but haven't had a chance to look at it yet, I dunno if the files are accessible from their installer...if not I'll get a copy by less legal means and feel no guilt :D

LordNelson 2010-05-07 14:36

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by GameboyRMH (Post 643395)
I tried with the shareware files, it just crashes as soon as I see the pointer...

Looks like the shareware-version has to be compiled with another compiler-flag. Maybe I can create a separate package for it when I've got some time...

Quote:

Originally Posted by Darkwolf (Post 648030)
That's not a bug, it's a feature! :p

:D

GameboyRMH 2010-05-07 21:54

Re: DXX-Rebirth for the N900
 
Got it working with the files from GoG :D

Edit: Question, does this support the original music, and if so how do you set it up?

Found the midi files here, but where do I put 'em?

http://www.dxx-rebirth.com/?Downloads:Resource

LordNelson 2010-05-09 22:47

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by GameboyRMH (Post 648712)
Edit: Question, does this support the original music, and if so how do you set it up?

Found the midi files here, but where do I put 'em?

http://www.dxx-rebirth.com/?Downloads:Resource

The music doesn't seem to work yet, not sure what's going wrong though. Maybe a problem with the sdl-mixer...

edit: I think timidity is missing, but it's not in the repos yet and needs tons of dependencies.
Got it running on the N900, but the N900 is too slow for playing midis in software. I got choppy playback at 100 % CPU ;)

F2thaK 2010-05-11 13:15

Re: DXX-Rebirth for the N900
 
cant get this to work !!

GameboyRMH 2010-05-11 17:17

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by LordNelson (Post 651029)
The music doesn't seem to work yet, not sure what's going wrong though. Maybe a problem with the sdl-mixer...

edit: I think timidity is missing, but it's not in the repos yet and needs tons of dependencies.
Got it running on the N900, but the N900 is too slow for playing midis in software. I got choppy playback at 100 % CPU ;)

I wonder if playing back the music as .wav/.mp3/.ogg would be possible, like this?

http://boards.dingoonity.org/dingoon...1707/#msg11707

Shouldn't bee to hard to rip midis to one of those formats...I could do that and upload the resulting files.

LordNelson 2010-05-11 20:30

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by GameboyRMH (Post 653866)
I wonder if playing back the music as .wav/.mp3/.ogg would be possible, like this?

http://boards.dingoonity.org/dingoon...1707/#msg11707

Shouldn't bee to hard to rip midis to one of those formats...I could do that and upload the resulting files.

Yep, that would work. I'm currently working on getting the jukebox running. Then you could just put the music as OGG/Vorbis, mp3 or Wave into a directory and specify it in the settings.
Maybe you already noticed the choppy sound when many sounds are played at the same time (For example when the reactor explodes). Not sure if this is caused by SDL_mixer or D1X-Rebirth itself but playing music in the background will cause even more problems here :/

Quote:

Originally Posted by f2thak (Post 653408)
cant get this to work !!

If you want to get any help you should provide more information XD
Wait... you've written here earlier that you're using the leaked PR 1.2 firmware and should know that it got some dependency-problems with the OpenGL ES packages. :confused:
Not sure what you expect now... you shouldn't install unreleased firmware on your phone and expect that everything is working without any problems. I won't add any workarounds for the bugs in the leaked PR 1.2 or provide any support for this package on PR 1.2 until it's officially released.
But since it's open source you're free to add a workaround yourself, the source of the package is available on the garage-page too.
:rolleyes:

Patola 2010-05-11 21:52

Re: DXX-Rebirth for the N900
 
Maybe you can take a look at the package "duke3d-timidity". It manages to use timidity in Duke Nukem 3D somehow. Maybe you can do the same for Descent.

LordNelson 2010-05-11 22:07

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by Patola (Post 654200)
Maybe you can take a look at the package "duke3d-timidity". It manages to use timidity in Duke Nukem 3D somehow. Maybe you can do the same for Descent.

That sounds nice, will check that out the next days and see if it can be done for Descent too, thanks :)

Darkwolf 2010-05-12 08:57

Re: DXX-Rebirth for the N900
 
Descent without MIDI music is like watching a screener version of Avatar on a CRT letterbox TV with mono speaker!
I'll wait for music support.
DOOM is more or less acceptable without music, but the good old MIDI music of those games really make it what it once was for me personally.
And yes Duke Nukem 3D has this big *** Timidity implementation to make the MIDI work. But how on earth does the Wolfenstein 3D pull it off without any Timidity support or whatever else I wonder?
That seems to run just fine with MIDI!

LordNelson 2010-05-13 17:03

Re: DXX-Rebirth for the N900
 
The new release 0.55.1-5maemo1 is out and is also available via extras-devel now :)

The screenshots for the savegames are working now and you can take screenshots with Shift-S. You'll find them in ~/.d1x-rebirth/screenshots/ as pcx (Yes, this is a crappy format but DXX-Rebirth doesn't support anything else, maybe there will be png-support some day...).

You can also find a libsdl-mixer package with flac and vorbis support on garage. This will make the jukebox working.
I've put everything into a tar.bz2 because garage got some problems with + in filenames. Just unpack it and install the deb inside.

GameboyRMH 2010-05-14 00:00

Re: DXX-Rebirth for the N900
 
Descent OGGs available here:

http://home.arcor.de/hbredel/Descent...t-english.html

eiraku 2010-05-14 01:43

Re: DXX-Rebirth for the N900
 
Hey there, I've been trying endlessly to get this to work... It was a hair tearing experience, I could tell you that. But the solution turned out to be so simple I tore more hair out in angst.

Now I'm running Descent with sweet bilinear filtering - on a phone. One of my milestones of human technological achievements have arrived.

About the solution, it's a bit TL;TR but here goes (summary: watch your data file's names. make sure they're not in caps).

It all started out normally. I dropped my data files, taken from instances of D2X-XL I already have on my PC (and in turn, they came from my old Ubuntu box). All done, I clicked on the D1X icon.

Nothing.

Thankfully, you made the executable generate a log file.

I found out that it says it can't find the descent.hog file which is funny because I already put the files in /.d1x-rebirth/ and /opt/d1x-rebirth/ (in one or another or both, in folders called DATA).

I was about to give up and just freaking buy another set of data files from the GOG download, when it suddenly hit me. The filenames of the data files. They were all in CAPS for god's sakes, and I forgot that *nix places far more importance to case differences then Windows ever did.

So I renamed the files from DESCENT.HOG and DESCENT.PIG to descent.hog and descent.pig, and proceeded to drop the files into /.d1x-rebirth/.

It seemed so trivial at first, but NOW it runs.

Hope it helps someone out there.

Now if it had midi support (or a built in background MP3 player) it would definitely rock.

EDIT: Jukebox? How do you use that?

pelago 2010-05-14 08:39

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by LordNelson (Post 657121)
The screenshots for the savegames are working now and you can take screenshots with Shift-S. You'll find them in ~/.d1x-rebirth/screenshots/ as pcx

Is it possible for some future version to change the folder to something like /home/user/MyDocs/.images/Screenshots, as many people won't know how to access the ~/.d1x-rebirth/screenshots/ folder on Maemo?

GameboyRMH 2010-05-14 10:18

Re: DXX-Rebirth for the N900
 
Ha! Got music working! :D

1. Symlink /opt/d1x-rebirth/Music to a directory containing the correctly named OGGs.

2. in /opt/d1x-rebirth/d1x.ini, set -music_ext ogg

3. Play game, leave music settings at MIDI.

4. Enjoy!

LordNelson 2010-05-14 13:33

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by eiraku (Post 657767)
So I renamed the files from DESCENT.HOG and DESCENT.PIG to descent.hog and descent.pig, and proceeded to drop the files into /.d1x-rebirth/.

Thanks for mentioning this, will add a note to the first post.

Quote:

Originally Posted by GameboyRMH (Post 658108)
Ha! Got music working! :D

1. Symlink /opt/d1x-rebirth/Music to a directory containing the correctly named OGGs.

2. in /opt/d1x-rebirth/d1x.ini, set -music_ext ogg

3. Play game, leave music settings at MIDI.

4. Enjoy!

Wow didn't know that, that rocks indeed, thanks a lot :)

GameboyRMH 2010-05-14 13:41

Re: DXX-Rebirth for the N900
 
I'll collect all the Descent music I can find in all the different formats and make a torrent so it'll be easier to get.

eiraku 2010-05-14 16:07

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by GameboyRMH (Post 658108)
Ha! Got music working! :D

1. Symlink /opt/d1x-rebirth/Music to a directory containing the correctly named OGGs.

2. in /opt/d1x-rebirth/d1x.ini, set -music_ext ogg

3. Play game, leave music settings at MIDI.

4. Enjoy!

Do define "correctly named OGGs". You mean as they come in the archives from the planet-descent mirror?

And, sorry for being dense, how do I symlink the directories? Would simply dumping the OGGs into /opt/d1x-rebirth/Music/ be okay?

Thanks.

Mmmm, music.

GameboyRMH 2010-05-14 17:41

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by eiraku (Post 658527)
Do define "correctly named OGGs". You mean as they come in the archives from the planet-descent mirror?

And, sorry for being dense, how do I symlink the directories? Would simply dumping the OGGs into /opt/d1x-rebirth/Music/ be okay?

Thanks.

Mmmm, music.

Yeah planet-descent has the right filenames.

You could just dump the music in that folder, but that would eat up your /home space.

So to symlink a directory you just do "ln -s /path/to/target /path/to/link"

So let's say you put your OGGs in ~/MyDocs/.descent_ogg

Then you cd to /opt/d1x-rebirth/ and type:

rootsh ln -s /home/user/MyDocs/.descent_ogg Music

(the rootsh is there since you'll need root permissions)

And that's all there is to it. :cool:

Ayodeji 2010-05-14 17:47

Re: DXX-Rebirth for the N900
 
Quote:

Originally Posted by GameboyRMH (Post 658108)
Ha! Got music working! :D

1. Symlink /opt/d1x-rebirth/Music to a directory containing the correctly named OGGs.

2. in /opt/d1x-rebirth/d1x.ini, set -music_ext ogg

3. Play game, leave music settings at MIDI.

4. Enjoy!


...Back to the topic of MIDI music - for some reason, MIDI music appears to work for me. Yesterday, I installed the version of D1X Rebirth that's currently present in the development repository. Aside from adding the "descent.hog" and "descent.pig" data files to the "/opt/d1x-rebirth" directory, I've done nothing else. I do, however, also have Duke Nukem 3D installed (as Patola mentioned, this package relies on Timidity). The game seems to run fine with the music (I didn't explicitly check the CPU usage, though).

GameboyRMH 2010-05-14 17:49

Re: DXX-Rebirth for the N900
 
Interesting, it's possible that just installing timidity can get the MIDI music running...


All times are GMT. The time now is 13:56.

vBulletin® Version 3.8.8