are these usable models files?

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:

are these usable models files?

Postby lloyd » Mon Jan 30, 2012 12:51 am

Hi, I'm putting together a D2X-XL binary package for Debian-Ubuntu, and I have run into some files in my "models" directory that don't seem to be available anymore for D2X-XL. Are these legitimate, usable models files, or should I omit them? (See listing below.)

root@debiandesk2:/usr/local/games/d2x-xl/models# ls -1 *.bin
model108.bin
model127.bin
model133.bin
model134.bin
model135.bin
model151.bin
model152.bin
model153.bin
model154.bin
model160.bin
model464.bin
model466.bin
model467.bin
model469.bin
model470.bin
model471.bin
model475.bin
model476.bin
model477.bin
model478.bin
model479.bin
model480.bin
model481.bin
model482.bin
model483.bin
model484.bin
model485.bin
model486.bin
model487.bin
model488.bin
model489.bin
model490.bin
model491.bin
model492.bin
model493.bin
model494.bin
model495.bin
model496.bin
model497.bin
model498.bin
model499.bin
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Re: are these usable models files?

Postby karx11erx » Mon Jan 30, 2012 9:04 am

These files are created from the ASE files to speed up loading the improved models. They will be re-created everytime D2X-XL detects a newer ASE file than its binary counterpart.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 2:54 pm

I see. So I should probably omit them from the binary package, but I will make the directory /usr/local/games/d2x-xl/models world-writable so the user's d2x-xl process can create files there. (I think a better location for files created on-the-fly would have been ~/.d2x-xl/models/bin/ or similar, since the user's process always has write privileges there.)

Will d2x-xl try to write into any other directories under /usr/local/games/d2x-xl/ ?

Also, what is the difference between these 3 directories? (I have sound files stored in all 3.)

/usr/local/games/d2x-xl/sounds2/
/usr/local/games/d2x-xl/sounds2/d2x-xl/
/usr/local/games/d2x-xl/sounds2/D1
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Re: are these usable models files?

Postby karx11erx » Mon Jan 30, 2012 3:10 pm

sounds2 - Descent 2 sounds
sounds2/D2X-XL - D2X-XL addon sounds
sounds2/D1 - Descent 1 sounds
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 5:34 pm

Thanks for the info. I'll set all directories under /usr/local/games/d2x-xl/ world-readable, in case d2x-xl needs to write to any of them.

The first Debian-Ubuntu binary package is nearly ready, using d2x-xl version 1.15.290. It will be for AMD64. I'll follow with a i386 version. This will be easy for me to keep current with the latest d2x-xl version.

Like the previous d2x-xl binary package, before starting d2x-xl it checks for missing essential descent2 and d2x-xl files (as well as lack of opengl), and warns the user with nice GUI message boxes. I use these because I think most Linux users will not start d2x-xl in a terminal window, so they'll never see warning messages about missing files sent to STDOUT or STDERR. The GUI message boxes solve this nicely.
Last edited by lloyd on Mon Jan 30, 2012 7:37 pm, edited 1 time in total.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Re: are these usable models files?

Postby karx11erx » Mon Jan 30, 2012 7:26 pm

Great. :thumb:

I have checked the windowed mode problems with the screen resolution. All well on my Linux box.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 7:41 pm

karx11erx wrote:Great. :thumb:

I have checked the windowed mode problems with the screen resolution. All well on my Linux box.


Strange... I guess it must be related to my nvidia driver. Anyway, it is a relatively minor issue. To get my desktop resolution back, I can set the resolution just before quiting d2x-xl. :)
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 8:05 pm

This is slightly off-topic: can you please point me to where I can download older versions of the d2x-xl data file? I need the one that works with d2x-xl v 1.14.117, for the demo binary Linux package. I've looked on sourceforge but can't find any of the older files (I saw them once...)
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Re: are these usable models files?

Postby karx11erx » Mon Jan 30, 2012 8:09 pm

Doesn't the new one work?

Please wait until I have looked into the D2 demo issue.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 8:16 pm

karx11erx wrote:Doesn't the new one work?

Please wait until I have looked into the D2 demo issue.


I didn't try 1.14.177 with the new data files version... maybe it would work. But I'll wait on the demo version as you asked, and go ahead and release the "full" version first. I think it will be ready today.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 8:26 pm

Version 1.14.177 does seem to work fine with the new (1.15.208) data files.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Re: are these usable models files?

Postby karx11erx » Mon Jan 30, 2012 8:49 pm

No problems with the PC version.
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 9:32 pm

Version 1.14.177 flies on my new AMD64 computer under Linux. With 1.15.290 I have to use a low level of effects, and no smoke, no glow, etc., otherwise the display stutters frequently when the framerate dives. I thought my hardware was just not fast enough.

With 1.14.177 I can turn the effects and render options up FULL, even shadows if I want, and it flies and I am seeing stuff I never saw before in descent - wow! (I never played descent before on a modern computer.) I don't have the framerate indicated on-screen, I turn that on for the next test.

I think there HAS to be a problem with 1.15.290 for my hardware... maybe its my video driver. When I changed the resolution in 1.15.290 the lightmaps took about 15-20 minutes to compute. With 1.11.177 it was done in seconds.

My Linux box is 2x AMD Athlon(tm) 64 X2 Dual Core Processor 5000+, 3.0 Ghertz each, 4063MB memory, video card GeForce 9400 GT/PCI/SSE2 with direct rendering (1 GB memory), nvidia driver version 195.36.31.

The first thing I'll try is updating my nvidia driver. If I can't find a solution I'll make a bug report.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Re: are these usable models files?

Postby karx11erx » Mon Jan 30, 2012 10:10 pm

Lightmap calculation was physically incorrect in v1.14 to the extent of being outright buggy and unuseable.

v1.15 adds glow and uses it for a lot of effects, including better looking shadows. This feature can put quite a burden on the graphics hardware.

Are you able to do some profiling with the two versions and find out where the performance difference comes from?
User avatar
lloyd
Posts: 91
Joined: Sun Jul 26, 2009 5:13 pm
Contact:

Re: are these usable models files?

Postby lloyd » Mon Jan 30, 2012 10:52 pm

I'll do all I can to profile to find out what the difference is.

I noticed right away that when running 1.14.77 (I'll call it 1.14) I only get one line like this: "ALSA lib pcm.c:7316:(snd_pcm_recover) underrun occurred". With 1.15 I see about 4 such lines in a few minutes. I am using the first level of Descent 2 - Counterstrike for testing.

I have logging turned on but I don't know where to look for the logfile.

I guess what I am seeing on 1.14 are "coronas", not "glow." Anyway it looks fantastic. I also notice that 1.14 is showing me the hires models for powerups and so forth, while in 1.15 I don't see them. I have "-hires_models 1" in my d2x.ini.

On 1.15 I have glow set to "none," and even so the performance is far inferior to 1.14. If I set the rendering effects down, it's certainly playable, but at this point I would much rather use 1.14.

Apparently the player files are not compatible between these 2 versions. When I have opened a used a player file in 1.15, I can no longer use it in 1.14. Can the player config directory be specified on the d2x-xl command line? I think I remember that it can.

Return to “General Discussions”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests