D2X-W32 Linux port

A forum just for you old time Descent and Descent2 players.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

D2X-W32 Linux port

Post by Diedel »

Some good news (for the time being :roll: ):

I have installed Suse Linux 10.0 x86-32 on an older machine of mine, got gcc installed there and will now try to port D2X-W32 to Linux (making a D2linuX).

Pray that I'll succeed, Linux using D2 fans. ;)

Maybe Marix, who obviously has good knowledge of Linux, can help me along where I get stuck. :D
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

I will help you along too :)

I have been trying myself with modifying some of the old d2x makefiles, but I always hit a snag with compile errors because of my lack of knowing whatnots :p
User avatar
Top Gun
DBB Master
DBB Master
Posts: 8020
Joined: Wed Nov 13, 2002 3:01 am

Post by Top Gun »

Diedel, before you go anywhere with this, have you gotten in touch with Zico about his project? If you weren't aware of it previously, he recently released versions of D1X and D2X completely ported over to Linux. He posted more details about it the other day on PD, and he's mentioned desiring to add some of D2X-W32's features into the project. If you and he were to coordinate somehow, I think things would probably go much more smoothly.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

I'm a little mad at Zico. I have had contact with him a few months ago about porting D2X-W32 to Linux, and now I've found out they've started from scratch with the basic D2X with all its bugs and missing features etc.

So I'll do my own port. All I have to do is a port. All zico has to do is do fix all the bug fixes that have taken me a year to fix - and I am a professional software developer.

Good luck, zico. I'll be done when you're still trying to take off.
User avatar
Aus-RED-5
DBB Friend
DBB Friend
Posts: 1604
Joined: Fri Apr 23, 2004 7:27 am
Location: Adelaide, South Australia
Contact:

Post by Aus-RED-5 »

Diedel wrote:Good luck, zico. I'll be done when you're still trying to take off.
I love that bit... no :P at the end of that sentence! lol :lol:

Diedel.
Good on ya for taking on the Linux port! Wish ya the best! :)
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Aus-RED-5 wrote:I love that bit... no :P at the end of that sentence! lol :lol:
Definitely not. That guy is presenting himself to me as a smacktard with every line he writes to me.

Know what?

I've found an IRC log where Zico is chatting with another guy from the DXX project, and here's what he says about me (cmtw is zico):
<cmtw> der maintainer von w32 geht mir so auffe socken dass mir das eigentlich egal is...
(the w32 maintainer p*sses me off so much that I give crap ...)
<gjptt> inwifern?
(how is that?)
<cmtw> son überhebliches arschloch...
(he's such an arrogant @sshole)
<cmtw> C is ja schon .. naja
(C is already .. oh well)
<cmtw> das C was in Descent benutzt wurde treibt einem die tränen inne augen...
(the C they used in Descent makes you cry already)
<cmtw> aber DAS VISUAL C von DEM WICHSER is der GIPFEL!!!
(but THAT W@NKER'S visual C is the worst!!!)
<cmtw> ... aber leider hadder nen paar gute features...
(... too bad he has a few good features ..)
Isn't zico a nice person? He regrets D2X-W32 having a few good features ... obviously he rather would it and thus the D2 community not have them ... :roll:

Btw, Visual C is not a C variant or so, it's simply a programming environment allowing you to code in standard C or C++. So much about his competence.

I've got a nice e-mail from zico where he told me that he's going to release his binaries for Windows, too. I'm shaking already ... hehe. Nothing against that ... if anybody wants to settle with half the features and four times the bugs of D2X-W32.
MD-2389
Defender of the Night
Defender of the Night
Posts: 13477
Joined: Thu Nov 05, 1998 12:01 pm
Location: Olathe, KS
Contact:

Post by MD-2389 »

heh

So when are you two going to figure out who's bigger? ;)
User avatar
iten
DBB Ace
DBB Ace
Posts: 100
Joined: Tue Sep 28, 2004 3:38 pm

Post by iten »

I'd be willing to help in any way that I can.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

iten,

right now I am having a problem with the makefile. For some reason I cannot figure it expects a rule definition where it encounters an explicit rule. Do you know about such stuff?

MD,

never mind. zico is just a teenage smacktard. I remember him approaching me after I had posted about looking for help for a Linux port on the German DescentForum and telling me he wasn't interested in porting D2X-W32, he wanted to do his own port and rip from D2X-W32 whatever he liked. D2X-W32 is open source, so no problem with ppl ripping stuff from it, but approaching me that way and believing I'd help is not really smart.
MD-2389
Defender of the Night
Defender of the Night
Posts: 13477
Joined: Thu Nov 05, 1998 12:01 pm
Location: Olathe, KS
Contact:

Post by MD-2389 »

Diedel, I was joking. ;)
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Really? :P
User avatar
iten
DBB Ace
DBB Ace
Posts: 100
Joined: Tue Sep 28, 2004 3:38 pm

Post by iten »

Diedel, I know a bit about them, send it through a PM or email: jol AT carolnrob.net and I'll see what I can do.
User avatar
Sirius
DBB Master
DBB Master
Posts: 5616
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Post by Sirius »

You two be careful, he is very strong and big!
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Really? :P

Some update on my Linux port: A nice Linux pro has helped me to get the makefile configure utility to work, and I am in the process to fix compile errors, remove OS dependencies, etc. OpenGL code is already completely enabled and fully up to par with the W32 code. :)
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

Diedel wrote:Really? :P

Some update on my Linux port: A nice Linux pro has helped me to get the makefile configure utility to work, and I am in the process to fix compile errors, remove OS dependencies, etc. OpenGL code is already completely enabled and fully up to par with the W32 code. :)
you are god!!! 8)

will the linux port be updated consistantly with the win32 port?
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Kirby wrote:you are god!!! 8)
I am glad you didn't start 'god' with a capital letter. :P
Kirby wrote:will the linux port be updated consistantly with the win32 port?
Of course. ;) I am planning to keep both versions as identical as possible.
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

Diedel wrote:I am glad you didn't start 'god' with a capital letter. :P
typo :twisted:

once again, I am offering to test....this gentoo system can't get any more broken :wink:
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Heh. I had problems installing the environment on a freshly installed and patched up-to-date Linux distro ... so no warranties you will be able to compile it on yours. ;)
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

http://www.happypenguin.org/show?DXX-Rebirth

heh....who wants to bust some balls?? :evil: :P
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

kirby,

as you can read here I've had contact with Zico regarding a port of D2X-W32.

He prefers to port a two year old state of the game, requiring him to fix each and every bug again I have already fixed, requiring him to go through all the code to re-enable features available in the original Descent 2 and D2_3dfx, and maybe some day finally allowing him to get to build stuff into his version that is already tried and tested in mine. I had thought simply porting a D2X version that is already completely fixed and tremendously enhanced would serve the D2 community better, but oh well ... :roll:

I have finished fixing compiler bugs, have an executable that at least starts (currently copying the game data to the Linux box) and will start to test the port next week. If everything goes fine, D2X-XL (which will be the official future name of my D2X versions for MS Windows and Linux) will be available around Christmas. :)

Let's see where Zico is at that time. ;)
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

An Update:

I have D2X-XL running on my Linux box now.

Next thing I have to do is implement the OS specific stuff, like UDP support, or shader programs.
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

Diedel wrote:An Update:

I have D2X-XL running on my Linux box now.

Next thing I have to do is implement the OS specific stuff, like UDP support, or shader programs.
any teaser screenshots??? :3
User avatar
Sirius
DBB Master
DBB Master
Posts: 5616
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Post by Sirius »

...they won't be terribly exciting? You've seen it before.

Just imagine that running under Linux. ;)
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Kirby,

go to my Descent site and watch all the screen shots in the various level subsections. ;)
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

I was hoping for a picture of a sexay Linux desktop running D2X-XL in a window....that sort of thing :wink:

and I never thought I would see the day that a developer makes a mistake linking to their homepage :lol:
User avatar
TechPro
DBB Admiral
DBB Admiral
Posts: 1520
Joined: Thu May 20, 2004 11:51 pm

Post by TechPro »

Corrected link to Diedel's Descent site

Diedel,
In the manual section of your website, you state "Escort robot hotkeys: Dunno."

Wouldn't the "Escort robot" be the Guidebot? and this would turn on/off the hot-keys for controlling it?
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

TechPro wrote:Corrected link to Diedel's Descent site

Diedel,
In the manual section of your website, you state "Escort robot hotkeys: Dunno."

Wouldn't the "Escort robot" be the Guidebot? and this would turn on/off the hot-keys for controlling it?
Now as you say it ... :roll:

/Diedel slaps his forehead

:mrgreen:
fyrephlie
DBB Benefactor
DBB Benefactor
Posts: 956
Joined: Tue Nov 15, 2005 12:49 am

Post by fyrephlie »

i can get the source to configure ... but it just will not make to save my soul
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6458
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

something to try on my fresh ubuntu install.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

fyrephlie wrote:i can get the source to configure ... but it just will not make to save my soul
This is indeed a very precise problem description - about as wide as the pacific ocean. I am sorry, but my glass ball is just in repair. ;)
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

YAY!!!! now for testing ^^

first...trying to extract the linux binary:
pinkybox ~ # tar -xvzf d2x-xl.tgz
d2x-xl

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
looks like a corrupt archive :(

second....compiling from source (with using the instructions on the download page):
Making all in ogl
make[3]: Entering directory `/root/d2x-xl-src/d2x-xl-src/src/arch/ogl'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../arch/include -I../../main -I ../../arch/linux/include -I/usr/include/SDL -D_REENTRANT -pipe -g -Wall -Wno-char-subscripts -MT gr.o -MD -MP -MF ".deps/gr.Tpo" -c -o gr.o gr.c; then mv -f ".deps/gr.Tpo" ".deps/gr.Po"; else rm -f ".deps/gr.Tpo"; exit 1; fi
gr.c: In function `ogl_do_palfx':
gr.c:682: warning: suggest parentheses around assignment used as truth value
gr.c:692: warning: suggest parentheses around assignment used as truth value
gr.c:705: warning: suggest parentheses around assignment used as truth value
gr.c: In function `gr_palette_load':
gr.c:824: warning: unused variable `j'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../arch/include -I../../main -I ../../arch/linux/include -I/usr/include/SDL -D_REENTRANT -pipe -g -Wall -Wno-char-subscripts -MT ogl.o -MD -MP -MF ".deps/ogl.Tpo" -c -o ogl.o ogl.c; then mv -f ".deps/ogl.Tpo" ".deps/ogl.Po"; else rm -f ".deps/ogl.Tpo"; exit 1; fi
ogl.c:91: warning: type defaults to `int' in declaration of `gr_remap_mono_fonts'
ogl.c: In function `BitmapColor':
ogl.c:372: warning: suggest parentheses around assignment used as truth value
ogl.c: In function `gr_avg_color':
ogl.c:396: warning: suggest parentheses around assignment used as truth value
ogl.c: In function `g3_draw_tmap_2':
ogl.c:1201: warning: unused variable `lmProg'
ogl.c: In function `ogl_filltexbuf':
ogl.c:2566: warning: unused variable `h'
ogl.c:2566: warning: unused variable `i'
ogl.c: In function `LoadShader':
ogl.c:2911: warning: unused variable `f'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../arch/include -I../../main -I ../../arch/linux/include -I/usr/include/SDL -D_REENTRANT -pipe -g -Wall -Wno-char-subscripts -MT sdlgl.o -MD -MP -MF ".deps/sdlgl.Tpo" -c -o sdlgl.o sdlgl.c; then mv -f ".deps/sdlgl.Tpo" ".deps/sdlgl.Po"; else rm -f ".deps/sdlgl.Tpo"; exit 1; fi
sdlgl.c:98:23: descent.xpm: No such file or directory
sdlgl.c: In function `ogl_init_window':
sdlgl.c:99: error: `pixmap' undeclared (first use in this function)
sdlgl.c:99: error: (Each undeclared identifier is reported only once
sdlgl.c:99: error: for each function it appears in.)
sdlgl.c:84: warning: unused variable `sm'
make[3]: *** [sdlgl.o] Error 1
make[3]: Leaving directory `/root/d2x-xl-src/d2x-xl-src/src/arch/ogl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/d2x-xl-src/d2x-xl-src/src/arch'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/d2x-xl-src/d2x-xl-src/src'
make: *** [all] Error 2
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

For some reason you seem to be creating the SDL and not SDL+OpenGL version. Don't ask me why: This whole automake/configure stuff is the biggest pile of crap I've met in my entire coding life.

Edit:

Kirby, the archive was broken because I had exceeded my web space. New archive online now, with some bug fixes even.
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

thanks for fixing the download link....but now d2x-xl won't start up...

running ./d2x-xl opens up a window, but then it immediately closes. And there are no error messages in the terminal.... :?
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

I have fixed another bug and uploaded the archive once more - try that one and see whether the exe in there is newer than yours.

Btw, Descent 2 must reside in $HOME/D2 for D2X-XL currently.
fyrephlie
DBB Benefactor
DBB Benefactor
Posts: 956
Joined: Tue Nov 15, 2005 12:49 am

Post by fyrephlie »

Diedel wrote:I have fixed another bug and uploaded the archive once more - try that one and see whether the exe in there is newer than yours.

Btw, Descent 2 must reside in $HOME/D2 for D2X-XL currently.
/me looks around... can we get someone who actually LIKES linux to work on this???
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

fyrephlie wrote:/me looks around... can we get someone who actually LIKES linux to work on this???
Where's the problem?

Is there a good (probably windowed) debugger I can use on Linux?
User avatar
Kirby
DBB Ace
DBB Ace
Posts: 151
Joined: Thu Nov 03, 2005 7:27 pm

Post by Kirby »

Diedel wrote:I have fixed another bug and uploaded the archive once more - try that one and see whether the exe in there is newer than yours.

Btw, Descent 2 must reside in $HOME/D2 for D2X-XL currently.
some good news....looks like it's showing an error message now...unfortunately something too generic to use....
pinkybox D2 # ./d2x-xl
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
pinkybox D2 #
as for your debugger....the only one I could find for linux is GDB:

http://www.gnu.org/software/gdb/gdb.html
fyrephlie
DBB Benefactor
DBB Benefactor
Posts: 956
Joined: Tue Nov 15, 2005 12:49 am

Post by fyrephlie »

Diedel wrote:
fyrephlie wrote:i can get the source to configure ... but it just will not make to save my soul
This is indeed a very precise problem description - about as wide as the pacific ocean. I am sorry, but my glass ball is just in repair. ;)
eh? oh i wasn't really asking for help... i will mess with it later. was just making a comment... doesnt want to make. ahh hell... hold on...

Code: Select all

bitmap.c: In function â??gr_free_bitmap_dataâ??:
bitmap.c:309: error: â??struct _grs_bitmapâ?? has no member named â??bm_frames
bitmap.c:310: error: â??struct _grs_bitmapâ?? has no member named â??bm_frames
bitmap.c:311: error: â??struct _grs_bitmapâ?? has no member named â??bm_frames
bitmap.c:312: error: â??struct _grs_bitmapâ?? has no member named â??bm_curframe
â??
bitmap.c: At top level:
bitmap.c:555: fatal error: opening dependency file .deps/bitmap.Tpo: Permission denied
compilation terminated.
make[2]: *** [bitmap.o] Error 1
make[2]: Leaving directory `/home/fyrephlie/src/2d'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fyrephlie/src'
make: *** [all] Error 2
kirby wrote:running ./d2x-xl opens up a window, but then it immediately closes. And there are no error messages in the terminal.... Confused
i had this problem as well with the 'exucutable' version you posted
User avatar
Neumaennl
DBB Ace
DBB Ace
Posts: 185
Joined: Thu May 05, 2005 6:01 am
Location: Germany (Munich)
Contact:

Post by Neumaennl »

Hi Diedel, for the Debugger: I read somewhere that you've got SuSE Linux - I've got SuSE Linux 10 and KDbg looks quite promising - maybe you want to give it a shot.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Read the installation instructions on my D2X page (bottom)!

And make sure the Descent 2 data is in folder $HOME/D2.


The missing struct member messages comes from you not having passed --with-opengl to ./configure. Or get the latest source as well: I have fixed a few things, and OpenGL code generation is now default.
Post Reply