Jump to content

CnCNet Forums

Search In
  • More options...
Find results that contain...
Find results in...
FunkyFr3sh

New cnc-ddraw release (Red Alert 1 & C&C95)

Recommended Posts

On 11/14/2018 at 9:58 AM, hgjcool said:

U are not online this day , how to send message to U in cncnet forums( no topics no  posts ) ?

Can you use discord ?

 

 

New test release is out with support for 16 bit color depth games

https://github.com/CnCNet/cnc-ddraw/releases

 

Support for 16 bit color depth games

Some games that were tested:
Dune 2000
Command & Conquer: Tiberian Sun
Command & Conquer: Red Alert 2: Yuri's Revenge

'handlemouse' must be set to 'false' for Tiberian Sun / Red Alert 2. Don't use the games built-in windowed mode, use the cnc-ddraw windowed mode instead (Alt+Enter)

Share this post


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

Can you use discord ?

 

 

New test release is out with support for 16 bit color depth games

https://github.com/CnCNet/cnc-ddraw/releases

 

Support for 16 bit color depth games

Some games that were tested:
Dune 2000
Command & Conquer: Tiberian Sun
Command & Conquer: Red Alert 2: Yuri's Revenge

'handlemouse' must be set to 'false' for Tiberian Sun / Red Alert 2. Don't use the games built-in windowed mode, use the cnc-ddraw windowed mode instead (Alt+Enter)

Very good , i ll try later

Share this post


Link to post
Share on other sites

New stable release

https://github.com/CnCNet/cnc-ddraw/releases

 

Changelog

  • Support for 16 bit color depth games
  • Several bug fixes and improvements

The following games should be working with this release (and probably some others):
Dune 2000
Command & Conquer: Tiberian Sun
Command & Conquer: Red Alert 2: Yuri's Revenge
Nox

Note: For better performance this release was built with visual Studio 2017 (v141_xp) and requires now at least Win XP SP3

Instructions

  1. Download cnc-ddraw.zip and extract it into your game folder
  2. Disable all compatibility modes for all of the game executables
  3. Start the game

Hotkeys

  • [Alt] + [Enter] = Switch between windowed and fullscreen mode
  • [Ctrl] + [Tab] = Unlock cursor
  • [Right Alt] + [Right Ctrl] = Unlock cursor

Share this post


Link to post
Share on other sites

Great work, works well with Yuri's Revenge, very low latency and lets me use SweetFX post processing shaders.

Share this post


Link to post
Share on other sites
On 10/13/2018 at 7:04 PM, FunkyFr3sh said:

 

The frame rate limiter doesn't slow down the scroll speed anymore with the latest cnc-ddraw since that was a pretty bad solution from many years ago. It actually slowed down the whole game, not just the scroll (which ended up causing lag in online games).

I assume you're talking about CnC95, not RA95? The CnC95 campaign doesn't have the scroll speed limiter patch yet, so you'll have to enable a workaround I added to cnc-ddraw until nyerguds updates his installer.

 

Add the following line to ddraw.ini

 

You can choose a number between 1 and 16, higher number means slower scroll speed. It's probably the best to keep the number as low as possible to prevent slow downs during the gameplay.

OK

Edited by bright_hawkins

Share this post


Link to post
Share on other sites

Is it possible to handle pillarboxing from cnc-ddraw 1.3.2.0? 

I’m trying to get C&C95 rendered in 640x400 and upscaled to 2400x1800. The problem is I can’t get the fullscreen to be pillarboxed on a 2880x1800 display.

I’ve been tweaking AMD Radeon settings to use GPU scaling with maintaining aspect ratio setting, but I see no difference. It also seems like maintas setting is for the upscaling part, so enabling it does not help with required stretching from 8:5 to 4:3. 

1. Does setting width and height make a difference in what resolution is requested with fullscreen=true? I’m not sure whether it’s my driver forcing the stretching at this point.

2. Is setting windowed=true supposed to make a difference in this case? My expectation was it would create a window to fill the screen while only using the requested width and height, but that did not happen. 

Share this post


Link to post
Share on other sites

 

59 minutes ago, touko said:

Is it possible to handle pillarboxing from cnc-ddraw 1.3.2.0? 

I’m trying to get C&C95 rendered in 640x400 and upscaled to 2400x1800. The problem is I can’t get the fullscreen to be pillarboxed on a 2880x1800 display.

I’ve been tweaking AMD Radeon settings to use GPU scaling with maintaining aspect ratio setting, but I see no difference. It also seems like maintas setting is for the upscaling part, so enabling it does not help with required stretching from 8:5 to 4:3. 

1. Does setting width and height make a difference in what resolution is requested with fullscreen=true? I’m not sure whether it’s my driver forcing the stretching at this point.

2. Is setting windowed=true supposed to make a difference in this case? My expectation was it would create a window to fill the screen while only using the requested width and height, but that did not happen. 

 

fullscreen=true would use whatever resolution you're using currently in your OS. Once it's set to true, width and height are both ignored.

 

If you set fullscreen=true+windowed=true it will look the same for you as if you had fullscreen=true+windowed=false, the only difference is that one is using fullscreen exclusive mode and one not. 

For best performance:            fullscreen=true+windowed=false       (Fullscreen exclusive)

For no tearing/fast alt+tab:    fullscreen=true+windowed=true        (Windowed-Fullscreen)

 

However, you don't really need to use fullscreen=true, you can also set the width/height manually as shown in the example below.

 

 

For stretching 8:5 to 4:3 you can either have letterboxing:

[ddraw]
width=2400
height=1800
maintas=true
boxing=false

 

Or windowboxing:

[ddraw]
width=2400
height=1800
maintas=false
boxing=true

 

Or stretched to fill the whole screen:

[ddraw]
width=2400
height=1800
maintas=false
boxing=false

 

Share this post


Link to post
Share on other sites
19 minutes ago, Mafier said:

2036145188_Annotation2018-12-09182329.jpg.63e7035ec90c6d1c8bcf335bbff62c1e.jpg

1125106687_Annotation2018-12-09182706.jpg.f4f3e599244eb844806c111ecf56519a.jpg

Singlecpu=false doesn't work

 

Maybe something else set it to CPU 0 (not cnc-ddraw). All games on cncnet are patched to set CPU 0 with all renderers.

What game are you playing?

Share this post


Link to post
Share on other sites
16 minutes ago, Mafier said:

Mental Omega.But ts ddraw is exceptional.

508679616_Annotation2018-12-09191301.jpg.f673c9ac774cdf27a6817b0591a755c8.jpg

1029361496_Annotation2018-12-09191450.jpg.38765957b9e3b75a09e79094172eca2a.jpg

 

Yes, ts-ddraw overrides all settings and enables all CPUs.

 

By default all CPUs are used, that means something in Mental Omega changes it to CPU 0. Do you maybe have any compatibilty modes enabled for your game executables? Disable all and then try again.

Share this post


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

 

Yes, ts-ddraw overrides all settings and enables all CPUs.

 

By default all CPUs are used, that means something in Mental Omega changes it to CPU 0. Do you maybe have any compatibilty modes enabled for your game executables? Disable all and then try again. 

No, I just set Renderer Option and replace their ddraw.ini  . Can cnc-ddraw be designed to override all settings directly like ts-ddraw?

494645976_Annotation2018-12-09194713.jpg.8e7ad10e1ba5cc683f42bbd7d75bc208.jpg

 

Share this post


Link to post
Share on other sites
22 minutes ago, Mafier said:

No, I just set Renderer Option and replace their ddraw.ini  . Can cnc-ddraw be designed to override all settings directly like ts-ddraw?

494645976_Annotation2018-12-09194713.jpg.8e7ad10e1ba5cc683f42bbd7d75bc208.jpg

 

Ah, maybe Ares is doing it...

Yes, I will add it to cnc-ddraw on the next release.

Share this post


Link to post
Share on other sites
1 hour ago, FunkyFr3sh said:

Ah, maybe Ares is doing it...

Yes, I will add it to cnc-ddraw on the next release.

Nice , Thanks !

Share this post


Link to post
Share on other sites

Just a quick question here.  I got a new widescreen monitor (native resolution of 1920x1080).  I was tinkering with C&C95 for a few hours, and it seems that the only decent setting without bugs is 1024x768 but stretched to fit my monitor height (I have the black bars on the side by setting my Nvidia profile to scale on the GPU).  Although the game looks ok, it looks very blurry compared to what I am used to on my old fullscreen monitor...  The odd thing is that Linear looks no different than Nearest.  You would think that Nearest would look sharper, but it still looks just as blurry.  Any ideas on what else I can tweak?

Edited by Lightning Hunter

Share this post


Link to post
Share on other sites

The linear and nearest settings have been removed long time ago, in newer versions you'll have to use "shader=" + "renderer=opengl"

http://downloads.cncnet.org/addons/td-config.7z

 

For nearest use "shader=", linear doesn't exist anymore but you can use "shader=Shaders\cubic.glsl" instead.

 

Here some examples of other shaders: https://imgur.com/a/kxsM1oY

Share this post


Link to post
Share on other sites

Ok, so I messed around with this for a few more hours, but I only managed to make the game look worse instead of better.  I checked all the shaders that came with the pack, and I also downloaded some from https://github.com/libretro/glsl-shaders.

I honestly saw barely any difference no matter what shader I tried, except for the scanlines which are just ugly.  I sure do miss how sharp the game looked on my old monitor!  What I've done is set the resolution to 1024x768 (any higher and the game is played on the top left corner of the screen), and I set my Nvidia settings so the game is not stretched (I prefer the black bars on the sides to get the original aspect ratio).  However, all this makes the game look blurry.  Here are my settings:

	; cnc-ddraw - https://github.com/CnCNet/cnc-ddraw - https://cncnet.org
	[ddraw]
; ### Optional settings ###
; Use the following settings to adjust the look and feel to your liking
	
; Stretch to custom resolution, 0 = defaults to the size game requests
width=0
height=0
	; Override the width/height settings shown above and always stretch to fullscreen
; Note: Can be combined with 'windowed=true' to get windowed-fullscreen aka borderless mode
fullscreen=false
	; Run in windowed mode rather than going fullscreen
windowed=False
	; Maintain aspect ratio - (Requires 'handlemouse=true')
maintas=false
	; Windowboxing / Integer Scaling - (Requires 'handlemouse=true')
boxing=false
	; Real rendering rate, -1 = screen rate, 0 = unlimited, n = cap
; Note: Does not have an impact on the game speed, to limit your game speed use 'maxgameticks='
maxfps=180
	; Vertical synchronization, enable if you get tearing - (Requires 'renderer=auto/opengl/direct3d9')
vsync=false
	; Automatic mouse sensitivity scaling  - (Requires 'handlemouse=true')
; Note: Only works if stretching is enabled. Sensitivity will be adjusted according to the size of the window
adjmouse=True
	; Preliminary libretro shader support - (Requires 'renderer=opengl') https://github.com/libretro/glsl-shaders
; Example: shader=Shaders\crt-lottes-fast-no-warp.glsl
shader=
	; Window position, -32000 = center to screen
posX=-32000
posY=-32000
	; Renderer, possible values: auto, opengl, gdi, direct3d9 (auto = try direct3d9/opengl, fallback = gdi)
renderer=opengl
	; Developer mode (don't lock the cursor)
devmode=false
	; Show window borders in windowed mode
border=true
	; Bits per pixel, possible values: 16, 24 and 32, 0 = auto
bpp=32
	; Enable C&C video resize hack - Stretches C&C cutscenes to fullscreen
vhack=False
	 
	; ### Compatibility settings ###
; Use the following settings in case there are any issues with the game
	
; Hide WM_ACTIVATEAPP messages to prevent problems on alt+tab
noactivateapp=false
	; Max game ticks per second, possible values: 0-1000
; Note: Can be used to slow down a too fast running game, fix flickering or too fast animations
maxgameticks=0
	; Gives cnc-ddraw full control over the mouse cursor (required for adjmouse/boxing/maintas)
; Note: This option only works for games that draw their own cursor and it must be disabled for all other games
handlemouse=true
	; Use Waitable Timer Objects rather than timeGetTime+Sleep to limit FPS/Ticks/Flip
; Note: To workaround tearing/stuttering problems, set maxfps 1 lower than screen refresh rate (59 for flip games)
accuratetimers=false
	; Force CPU0 affinity, avoids crashes/freezing, *might* have a performance impact
singlecpu=false
mhack=False
filter=nearest
	 
	; ### Game specific settings ###
; The following settings override all settings shown above, section name = executable name
	
; Carmageddon
[CARMA95]
renderer=opengl
noactivateapp=true
maxgameticks=30
	; Command & Conquer Gold
[C&C95]
maxgameticks=120
windowed=False
fullscreen=False
	; Command & Conquer: Red Alert
[ra95]
maxgameticks=120
	; Age of Empires
[empires]
handlemouse=false
	; Age of Empires: The Rise of Rome
[empiresx]
handlemouse=false
	; Age of Empires II
[EMPIRES2]
handlemouse=false
	; Age of Empires II: The Conquerors
[age2_x1]
handlemouse=false
	; Outlaws
[olwin]
noactivateapp=true
maxgameticks=60
	; Dark Reign: The Future of War
[DKReign]
maxgameticks=60
	; Star Wars: Galactic Battlegrounds
[battlegrounds]
handlemouse=false
	; Star Wars: Galactic Battlegrounds: Clone Campaigns
[battlegrounds_x1]
handlemouse=false
	; Carmageddon 2
[Carma2_SW]
renderer=opengl
noactivateapp=true
maxgameticks=60
	; Atomic Bomberman
[BM]
maxgameticks=60
	; Dune 2000
[dune2000]
maxfps=59
accuratetimers=true
	; Dune 2000 Online
[dune2000-spawn]
maxfps=59
accuratetimers=true
	; Command & Conquer: Tiberian Sun
[game]
noactivateapp=true
handlemouse=false
maxfps=60
	; Command & Conquer: Tiberian Sun Online
[ts-spawn]
noactivateapp=true
handlemouse=false
maxfps=60
	; Command & Conquer: Red Alert 2: Yuri's Revenge
[gamemd]
noactivateapp=true
handlemouse=false
maxfps=60
	; Command & Conquer: Red Alert 2: Yuri's Revenge Online
[gamemd-spawn]
noactivateapp=true
handlemouse=false
maxfps=60
	
[cnc95]
windowed=False
fullscreen=False

Edited by Lightning Hunter

Share this post


Link to post
Share on other sites

With those settings you're using right now you leave the scaling up to your graphics card, if you want cnc-ddraw to take care of it (and make all shaders working) then set this:

fullscreen=true

maintas=true

 

 

Share this post


Link to post
Share on other sites

It actually looks exactly the same when I choose those settings.  Any other options I can try, or am I just expecting too much?

Edit:  Hmm, maybe the shaders do more when I stretch the image to widescreen. Is there a way to set it so the black bars are on the sides to maintain fullscreen aspect ratio?  I was doing that through my graphics card before, but maybe I should do it through ddraw if possible.

Edited by Lightning Hunter

Share this post


Link to post
Share on other sites

You should be able to see quite a big difference between "shader=" and "shader=Shaders\cubic.glsl" with fullscreen=true

 

use maintas= to enable/disable the black bars on the sides

 

 

Edit:

Remove this here first (Settings written on the bottom override the ones on the top). 

[C&C95]
windowed=False
fullscreen=False
[cnc95]
windowed=False
fullscreen=False

 

Instead of removing the sections on the bottom you can also do it via the config program instead, set display mode to "stretched"

image.png

Share this post


Link to post
Share on other sites

That did the trick!  Now I can really see the difference with the shaders.  I will have to experiment some...  Thanks Funky.

Edited by Lightning Hunter

Share this post


Link to post
Share on other sites

So I pretty much went through every single shader in that link above.  Although I didn't find exactly what I was looking for, I found a few that are nice.  One in particular I think you should include in your pack, Funky.  It has a unique photographic-style feel to it that has really grown on me. Although it is not for everyone,  I personally feel it emphasizes the gritty feel of the original game.  It is kind of how I always pictured the game based on the original C&C DOS instruction manual.

https://github.com/libretro/glsl-shaders/blob/master/xbr/shaders/super-xbr/custom-jinc2-sharper.glsl

 

Share this post


Link to post
Share on other sites
54 minutes ago, Lightning Hunter said:

So I pretty much went through every single shader in that link above.  Although I didn't find exactly what I was looking for, I found a few that are nice.  One in particular I think you should include in your pack, Funky.  It has a unique photographic-style feel to it that has really grown on me. Although it is not for everyone,  I personally feel it emphasizes the gritty feel of the original game.  It is kind of how I always pictured the game based on the original C&C DOS instruction manual.

https://github.com/libretro/glsl-shaders/blob/master/xbr/shaders/super-xbr/custom-jinc2-sharper.glsl

 

 

Just tried it, but it looks like nearest (no shader). Maybe it just doesn't work for me, you got a screenshot?

 

btw... you get the best results with integer scaling, since you said your monitor supports max 1920x1080 you could run the game at 960x540 (2x scaling) rather than 1024x768

Share this post


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

 

Just tried it, but it looks like nearest (no shader). Maybe it just doesn't work for me, you got a screenshot?

 

btw... you get the best results with integer scaling, since you said your monitor supports max 1920x1080 you could run the game at 960x540 (2x scaling) rather than 1024x768

How do I take a screenshot in C&C?  I never was able to... I read Nyergud's tutorial once, but all I ever get is a completely black image when I use print screen (no image data at all).  Also, his palettes cannot be imported by photoshop.

I tried turning on integer scaling with 960x540, but there are just black bars on top, bottom, and the sides now (the game is centered and looks tiny).  Is there a certain combination I need with maintas and fullscreen?

Edit: So I just figured out that pressing print screen while in-game creates a screenshot in the C&C folder, but all the screenshots look the same no matter what shader I'm using (so I guess it does not capture shaders in the shot).  Even xbrz-freescale.glsl looks the same in the screenshot.

Edited by Lightning Hunter

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

  • Similar Content

    • By mrgreenno1
      Good day Comrades 😃
       
      About:
      The intention of this mode is to make some rebalance and make AI more agressive thus skirmish mode more fun. Of course it is possible to use in multiplayer(both players must install this mode on the same version of game).
       
      New units\Structures:
      - Soviets now have Commando instead of Tanya(she is more Allied afterall)
      - Chnged skin of Light Tank (by AchromicWhite)
      - Changed skin of Tesla tank (by Nyerguds)
      - Allied now have Badger bomber and Airfields (it feels wrong that they have no Aiplains) to make it work I had to remove Yak plane from Soviets(no pitty)
       
      Changes to existing units:
      - All allied units gained +5-10% HP, exept Artillery +100% HP (IMHO vanilla Allied units are too weak)
      - Medium tank have mg90 machine gun as secondary weapon (to be more effective against infantry, all tanks have macineguns afterall)
      - Units roket incresed danage to troopers: Bazooka, Destroyer, Longbow helicopter, Phase tank (it feels wrong that rockets cant kill infantry after 1-3 shots)
      - Mine layer mines increased damage
      - All useless buildings like fakes, barbwire fence, small power plant were removed
      - Some units were removed: Jeep, Radar jam, Mobile gap generator, Aircraft carrier(I hope some one who builds new skins for RA can build a really nice big Aircraft ship)
      - Prerequsites of almost all units were removed ( faster search in the build list )
      - Many other small changes I really dont remember everything 😃
       
      Gameplay changes:
      - Increased speed of ore growth and its cost (more money more units can be build = more fun)
      - Increased build ratio of aircrafts for AI (their air attaks are very massive now)
      - Paratroopers now 10 instead of 5 (with 10 troopers you can do some damage)
      - Parabombs now have 2 bombers and 6 bombs (vanilla 1 and 5)
      - To capture building you need only 1 engineer (sometimes AI send an engineer to your base and now this action has a meaning)
      - Increased crates quantity (wich allows AI randomly pick up different nice things like MCV or Nuke more often)
      - Nuke damage increased by 300% (now its real Nuke not a puff)
      - Other options to change AI behaviour to be more agressive
       
      Install:
      Unzip to game folder, overwrite old files(dont forget to make a copy of original files before this!)
       
      Have fun. Post comments. Cheers
       
      Red Alert - Rebalance mode ver1.00.zip
    • By Micco
      Trying to join ladders but dont get verify email. Trying to get new verify email again and again but never receiving email. Have already checked trash folders etc...
      Can only closed circle play ladder games, you fear one new noobie challenger?
    • By electromusichall
      Hi, can unofficial game translation patches be used?
    • By Volkov Boris
      Can any one make a mod for red alert remastered that allows the ai build super weapons,special and T3 units and naval units? 
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...