Page 1 of 4
D2X-W32 Linux port
Posted: Mon Nov 14, 2005 7:49 am
by Diedel
Some good news (for the time being
):
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.
Posted: Mon Nov 14, 2005 8:13 pm
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
Posted: Tue Nov 15, 2005 2:56 am
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.
Posted: Tue Nov 15, 2005 3:43 am
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.
Posted: Tue Nov 15, 2005 6:03 am
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
at the end of that sentence! lol
Diedel.
Good on ya for taking on the Linux port! Wish ya the best!
Posted: Tue Nov 15, 2005 7:43 am
by Diedel
Aus-RED-5 wrote:I love that bit... no
at the end of that sentence! 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 ...
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.
Posted: Tue Nov 15, 2005 8:20 pm
by MD-2389
heh
So when are you two going to figure out who's bigger?
Posted: Tue Nov 15, 2005 9:02 pm
by iten
I'd be willing to help in any way that I can.
Posted: Wed Nov 16, 2005 2:49 am
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.
Posted: Wed Nov 16, 2005 3:10 pm
by MD-2389
Diedel, I was joking.
Posted: Wed Nov 16, 2005 4:10 pm
by Diedel
Really?
Posted: Wed Nov 16, 2005 9:23 pm
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.
Posted: Thu Nov 17, 2005 2:50 am
by Sirius
You two be careful, he is very strong and big!
Posted: Thu Nov 17, 2005 4:15 pm
by Diedel
Really?
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.
Posted: Thu Nov 17, 2005 6:17 pm
by Kirby
Diedel wrote:Really?
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!!!
will the linux port be updated consistantly with the win32 port?
Posted: Thu Nov 17, 2005 7:03 pm
by Diedel
Kirby wrote:you are god!!!
I am glad you didn't start 'god' with a capital letter.
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.
Posted: Thu Nov 17, 2005 7:16 pm
by Kirby
Diedel wrote:I am glad you didn't start 'god' with a capital letter.
typo
once again, I am offering to test....this gentoo system can't get any more broken
Posted: Thu Nov 17, 2005 7:24 pm
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.
Posted: Fri Nov 18, 2005 10:32 am
by Kirby
Posted: Fri Nov 18, 2005 12:01 pm
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 ...
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.
Posted: Fri Nov 18, 2005 7:23 pm
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.
Posted: Fri Nov 18, 2005 9:33 pm
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
Posted: Fri Nov 18, 2005 11:02 pm
by Sirius
...they won't be terribly exciting? You've seen it before.
Just imagine that running under Linux.
Posted: Sat Nov 19, 2005 7:31 am
by Diedel
Kirby,
go to my
Descent site and watch all the screen shots in the various level subsections.
Posted: Sat Nov 19, 2005 5:05 pm
by Kirby
I was hoping for a picture of a sexay Linux desktop running D2X-XL in a window....that sort of thing
and I never thought I would see the day that a developer makes a mistake linking to their homepage
Posted: Sun Nov 20, 2005 2:18 pm
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?
Posted: Sun Nov 20, 2005 5:06 pm
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 ...
/Diedel slaps his forehead
Posted: Sun Nov 20, 2005 10:54 pm
by fyrephlie
i can get the source to configure ... but it just will not make to save my soul
Posted: Sun Nov 20, 2005 11:54 pm
by fliptw
something to try on my fresh ubuntu install.
Posted: Mon Nov 21, 2005 1:32 am
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.
Posted: Mon Nov 21, 2005 11:26 am
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
Posted: Mon Nov 21, 2005 11:58 am
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.
Posted: Mon Nov 21, 2005 4:45 pm
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....
Posted: Mon Nov 21, 2005 6:13 pm
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.
Posted: Mon Nov 21, 2005 6:30 pm
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???
Posted: Mon Nov 21, 2005 7:06 pm
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?
Posted: Mon Nov 21, 2005 8:06 pm
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
Posted: Tue Nov 22, 2005 12:29 am
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
Posted: Tue Nov 22, 2005 1:27 am
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.
Posted: Tue Nov 22, 2005 2:56 am
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.