D2X-W32 Linux port
D2X-W32 Linux port
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.
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.
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.
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.
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.
Definitely not. That guy is presenting himself to me as a smacktard with every line he writes to me.Aus-RED-5 wrote:I love that bit... no at the end of that sentence! lol
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):
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 ...<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 ..)
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.
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.
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.
you are god!!!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.
will the linux port be updated consistantly with the win32 port?
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.
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.
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?
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 ...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?
/Diedel slaps his forehead
YAY!!!! now for testing ^^
first...trying to extract the linux binary:
second....compiling from source (with using the instructions on the download page):
first...trying to extract the linux binary:
looks like a corrupt archivepinkybox ~ # 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
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
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.
Edit:
Kirby, the archive was broken because I had exceeded my web space. New archive online now, with some bug fixes even.
some good news....looks like it's showing an error message now...unfortunately something too generic to use....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.
as for your debugger....the only one I could find for linux is GDB:pinkybox D2 # ./d2x-xl
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
pinkybox D2 #
http://www.gnu.org/software/gdb/gdb.html
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...Diedel wrote: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.fyrephlie wrote:i can get the source to configure ... but it just will not make to save my soul
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
i had this problem as well with the 'exucutable' version you postedkirby wrote:running ./d2x-xl opens up a window, but then it immediately closes. And there are no error messages in the terminal.... Confused
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.
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.