Jump to content
FunkyFr3sh

Dune 2000 1.06p - Game patching (bug fixes, new features)

Recommended Posts

Is there a way to play DUNE 2000 like i play C&C95 and red alert?  The Old Distance View in Full HD and Correct aspect ratio and working Videos in FULL HD? x)

Share this post


Link to post
Share on other sites
5 hours ago, Glurak said:

Is there a way to play DUNE 2000 like i play C&C95 and red alert?  The Old Distance View in Full HD and Correct aspect ratio and working Videos in FULL HD? x)

Not exactly, but you can get very close. Full HD as in 1920x1080 I guess?

Get the latest dune2000.exe from the first post, start the game once and close it again to it generates dune2000.ini.

 

Open dune2000.ini in notepad and adjust the following keys:


 

[Options]
GameWidth=640
GameHeight=400
CutsceneChangeResolution=No


[DxWnd]
EnableDxWnd=Yes
RunInWindow=Yes
ClipCursor=Yes
ModalStyle=Yes
GDIMode=Yes
Width=1728
Height=1080
PosX=0
PosY=0
StretchToFullscreen=No

 

This is the closest you can get right now.

 

You can also try to set EnableDxWnd=No, then go to the official DxWnd site and try if the latest version got a working fullscreen "KeepAspectRatio" option. The version of DxWnd included in the patch is older and doesn't have that working, so borderless window mode is the only possible workaround atm.

https://sourceforge.net/projects/dxwnd/?source=navbar

 

 

 

 

Edited by FunkyFr3sh

Share this post


Link to post
Share on other sites

Oh that's nice! I heard some dune 2000 players using DGVoodoo online now too, I only tested around with it a bit yet but seems to be a nice tool

Share this post


Link to post
Share on other sites
7 hours ago, Glurak said:

The guy who is doing this has a Coopation with GoG.com and works on it for over 5 years now. 

 

You can reach him here: http://www.vogons.org/viewtopic.php?f=59&t=34931

But thx for this 1.0.6 patch etc so i can play online x))

 

I will do some testing with it for sure! The most important thing for me is compatibility though, we need something works for everyone. 

I might even make my own, currently working on cnc-ddraw for C&C95 and red alert. You may want to have a look at the new release https://github.com/CnCNet/cnc-ddraw/releases

Edited by FunkyFr3sh

Share this post


Link to post
Share on other sites
2 hours ago, FunkyFr3sh said:

 

I will do some testing with it for sure! The most important thing for me is compatibility though, we need something works for everyone. 

I might even make my own, currently working on cnc-ddraw for C&C95 and red alert. You may want to have a look at the new release https://github.com/CnCNet/cnc-ddraw/releases

As far as i know is the Wrapper High Compatibility. Sure some games have some bugs but especially DDRAW works perfect.   But i will look at yours too when i play C&C95 again. x)

Share this post


Link to post
Share on other sites

Updated Dune 2000 with Compatibility fixes for all versions of windows + linux + macOS

 

If you got any kind of problems running the game, do the following:

1. Download the latest dune2000.exe and place it into your game folder  http://downloads.cncnet.org/Games/Dune2000/dune2000.exe

2. Download the latest Dune2000Config.exe and place it into your game folder http://downloads.cncnet.org/Games/Dune2000/Dune2000Config.exe

3. Start the new Dune2000Config and set your renderer to "Automatic"

4. Make sure you DO NOT have any kind of compatibility modes enabled for dune2000.exe and dune2000-spawn.exe

5 Download dplayx.dll and place it into your game folder: https://github.com/CnCNet/dummy-dplayx/releases

6. Start the game and have fun!

 

Notes:

You can now use Alt+Enter to switch between windowed and fullscreen mode.

Use Ctrl+Tab to unlock your cursor.

The window can be resized during runtime, but you might not see a resize cursor (just try until you found the right spot!)

Supports new features such as Shaders, check ddraw.ini for all details. (See Shaders/readme.txt for more details about shaders).

 

Example Shader usage for ddraw.ini:

renderer=opengl
shader=Shaders\crt-lottes-fast-no-warp.glsl

 

Edited by FunkyFr3sh
  • Like 1
  • Upvote 2

Share this post


Link to post
Share on other sites

Updated Dune2000Config once more, I added most of the missing options! There are still a few options left that were not added, but those can be configured via ddraw.ini (Shaders/Stretching). I also added a option to disable the new renderer and use the old original one instead, it's named "DirectDraw".

 

There are also quite a few new resolutions in the list, make sure you scroll down to see them. Those resolutions are nomally not possible in fullscreen, but the new renderer supports automatic scaling for unsupported resolutions, that means you can use any resolution in fullscreen now. You can also click on the resolution combobox and hit backspace, then type in a custom one.

 

image.png.d4ab0a87a021900a90d8fb51625b4f6f.png

 

 

image.png.433bb604608af44ac402d2cf57020d83.png

Edited by FunkyFr3sh
  • Upvote 1

Share this post


Link to post
Share on other sites

It's really nice!

And I'm also wondering if I could set for the linear stretching( blur drawing in lower resolution ), because I found the video has lots of noise when I dont check the maintain ratio option.

Another point is the video backbuffer is always disabled, is it not necessary for the lastest version ?

Share this post


Link to post
Share on other sites
13 minutes ago, WindyQueen said:

It's really nice!

And I'm also wondering if I could set for the linear stretching( blur drawing in lower resolution ), because I found the video has lots of noise when I dont check the maintain ratio option.

Another point is the video backbuffer is always disabled, is it not necessary for the lastest version ?

 

You can change your scaling method via ddraw.ini shaders. I did not include linear cause it's too blurry, but I added cubic instead.

 

renderer=opengl
shader=Shaders\cubic.glsl

 

 

If you use 2x or 3x scaling then maybe use the xBR or xBRZ shader, these are looking amazing (But you need a good graphics card for them, old intel graphcis card can't do it).

All the new resolutions that are showing on the bottom of the list are 2x 3x 4x (Integer scaling) resolutions, you can use these for xBR and xBRZ.

 

You can also download more shaders, check the readme file in the Shaders folder.

 

 

Videobackbuffer is now always disabled, that's right. You don't need it anymore cause the new renderer will not use it at all.

Edited by FunkyFr3sh

Share this post


Link to post
Share on other sites
6 minutes ago, FunkyFr3sh said:

 

You can change your scaling method via ddraw.ini shaders. I did not include linear cause it's too blurry, but I added cubic instead.

 

renderer=opengl
shader=Shaders\cubic.glsl

 

 

If you use 2x or 3x scaling then maybe use the xBR or xBRZ shader, these are looking amazing (But you need a good graphics card for them, old intel graphcis card can't do it).

You can also download more shaders, check the readme file in the Shaders folder.

 

 

Videobackbuffer is now always disabled, that's right. You don't need it anymore cause the new renderer will not use it at all.

Thanks a lot, I will try.

Share this post


Link to post
Share on other sites

Hi, Funkyfr3sh,

There is some issue if adjmouse is enabled, the cursor is jumping to another place on the screen when I have double clicked.

Tested on Windows 10

Share this post


Link to post
Share on other sites

Hii ! I don't seee anything different from this ' patch' no offense, except that game now crashes everytime and can't play a single game till the end.   Always game out of sync, or keeps appearing some errors i dont even understand what they're for !

 

If you can take a look about it, just letting you know what the situation is ) HF

Share this post


Link to post
Share on other sites
23 hours ago, buffaLo said:

Hii ! I don't seee anything different from this ' patch' no offense, except that game now crashes everytime and can't play a single game till the end.   Always game out of sync, or keeps appearing some errors i dont even understand what they're for !

 

If you can take a look about it, just letting you know what the situation is ) HF

 

You are not supposed to see any differences if your game was already working, this was a compatibility update for all those who tried to play dune 2000 but couldn't since their game didn't work.

 

I heard about a out of sync error, but in this case it was just 1 game out of many. Most games worked fine, so it was unclear if it was just random or if it's related to the new update.

If you found a way to make every single game go out of sync then please tell us how to exactly reproduce this so it can be tested.

Share this post


Link to post
Share on other sites

Some more compatibility updates...

I made a dummy dplayx.dll that can be used to start the game without the need to install DirectPlay.

DirectPlay is deprecated not included with windows anymore, hence why there have been problems starting the game. Normally windows 10 offers you to automatically install it, but this doesn't work all the time.

 

To workaround the problem, download dplayx.dll and place it into your game folder:

https://github.com/CnCNet/dummy-dplayx/releases

 

The cool thing is, your game will be starting a lot faster now! So even if your game is already working you can still download the file and gain an advantage from it :)

 

 

This is what you probably have seen if you tried to play the game without having DirectPlay installed:

The application was unable to start correctly (0xc000022). Click OK to close the application.

 

 

 

Edited by FunkyFr3sh
  • Upvote 1

Share this post


Link to post
Share on other sites

Are you still using my weird small cut&paste code to make the UIBB.R16 into a higher resolution? 🙂

If so, I was thinking it is time to upgrade/change/replace this to get a decent higher resolution UIBB.R16 which has a better (no repeating) look.

I made an image in Gimp for a first idea, however I don't know what the best way is to incorporate this into the .exe. I like to keep the .exe (changes) small.

I was thinking about saving only the new/changed parts into a large variable inside the .exe, but that might make it unnecessary big. Any idea's?

Anyway, below is the first draft for better high resolution side bar (border). What do you think?

new_HD_sidebar_UIBB_v1.thumb.png.db4c9fdc8ed6633737d2fc5cfca7aca2.png

Edited by D2k Sardaukar

Share this post


Link to post
Share on other sites

Yeah looks good. Code is still the same old: https://pastebin.com/hx5uQEpT

 

What you suggested is possible, if we include a whole file for 1280x720 for example then it's already 1.8mb so that's quite big... Including only the changed parts is as simple as including the whole file, but how big would that be?

If I compress the 1.8mb file with lzma then it turns into 25kb only, so I guess that could be an option. In that case there could be one huge file included (Maybe something that would fit into a 8k resolution?) and then you could do it the other way around, rather than "upscaling" the small original file you could downscale the new big file (That would be automatically decompressed and written to the disk) instead?

Share this post


Link to post
Share on other sites
Posted (edited)
On 8/6/2014 at 12:00 AM, FunkyFr3sh said:

Dune 2000 Config tool: Dune2000Config.exe

I want to report a problem I find with the lastest config.exe provided (December 2018). It happens when I executed cncnet5.exe; the program update some files including the config, changing something on the game.

As soon as I start a skirmish online, two black bands on top/bottom of the screen; So I exit the game and when I executed the config for my surprise it changes, but anyway; I tried multiple options to have my desired configuraction: a 640x400 game with no black bands at all.

I tried all the options as "fullscreen" and "extended" and un/checking the sub-options, but when I try the game all looks blurred; even the letters when I load my previous save game no longer looks clean but some are too near to others, so a "VI" turn into something like "M".

Previously, using the "Imp Pant" key and paste into paint or whatever the imagen was 640x400 of size; but with the current version the imagen show it's my desktop resolution (so I cannot show you a screenshot looking bad). My guess here it's that the current config first launch the game at my current desktop resolution but then shrinks to fit the 640x400 (pixel size).

I don't know if I am explaining myself well, but I'll show an example with 1 image from the d2kplus.
If I play the game and take a screenshot the image will look like this.
original.thumb.png.44b8840f2d97cf4ebdc5d0369ca55b0e.png

But in game looks to me like this: (the same image as above but reduced to 640x480 in this case), because 640x400 was not proportional to 1024x768 from the original imagen). 
2060434479_640x400.png.f789c20868dae5fc09a56454276d0c96.png

(In the post I reduced both to avoid filling this with big images); but if you download both and do a zoom, on the original the buildings and units have perfect-pixel looks, while on the other some pixels are mixed, so instead black pixels around the windtraps, now are grey. <-- of course, I reduced the size without any consideration or options, but just to give you an idea what is happening to me.

Again, this it's just an example, but overall this is what happens to me. With the two black bands the game looks fine, but I was expecting that if I pick up the "extended" part, the game will stretch the image so yes, my tanks are a bit fatter/taller that they were originally (since my monitor don't have the perfect proportions to that resolution); but at least the buildings would be perfect pixelated as I like.

I was lucky I could recuperate an old config from two other guys; I think even their version was even older that the one I have, but I only needed to execute this other config, click on "ok" and that's it, game revert to the good looking 640x400.

As an aditional note; my desktop right now it's set to 1024x768 (same as the imagen from d2k plus site), which it's not proportional to 640x400, but 640x480 (but only on 640x400 the game looks as originally was designed, with 4 icons on screen filling perfectly the tab bar and no empty parts); So yes, I guess the game just shrink the image and because of that all gots blurred instead the perfect-pixelation from the game.

And as a final note: The config I am using now that works fine had 2016 as date; I downloaded gruntmods on nov/dec of 2017; which the config was slightly different, I think, but I lost this one because was overwritten when I executed cnc5.exe. Still right now, with that 2016 version, I can play the game fine and all looks fine so there is no rush on this (I was not even going to write about it).

But I realize that at some point I'll need to format the PC and, if I download gruntmods again, I would like to have the option to play it at 640x400 as the game was originally intended.

Edited by Cm_blast

Share this post


Link to post
Share on other sites
Posted (edited)
On 12/20/2018 at 11:56 PM, FunkyFr3sh said:

Yeah looks good. Code is still the same old: https://pastebin.com/hx5uQEpT

 

What you suggested is possible, if we include a whole file for 1280x720 for example then it's already 1.8mb so that's quite big... Including only the changed parts is as simple as including the whole file, but how big would that be?

If I compress the 1.8mb file with lzma then it turns into 25kb only, so I guess that could be an option. In that case there could be one huge file included (Maybe something that would fit into a 8k resolution?) and then you could do it the other way around, rather than "upscaling" the small original file you could downscale the new big file (That would be automatically decompressed and written to the disk) instead?

I like the idea of using a big image (compressed) and making it smaller. I will try some code to make that resizing work. However I already looked into using compressing in c(++) code, I did not succeed. I will need to take a look at this again, I'm not so good at C(++), I'm better at Python. Perhaps you got some suggestions?

 

Something different. I and some users (here) reporting that with small map and big resolution the menu "gets stuck" on the background next to the battlefield. Helkor Duner made a video: https://www.youtube.com/watch?v=WU6bxnCXgv0&amp;feature=youtu.&amp;t=0m26s Can this be fixed?

 

Edited by D2k Sardaukar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×