226
Server.War2.ru / Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« on: March 28, 2019, 07:00:35 AM »Thanks a lot for wine code! Added it and rebuilt 3 en and 3 ru versions (still didn't change ddraws to your versions as i need to check them carefully before).
Nice! Is it on the website already? Will do a test run to make sure it works..
Also, is that work fine under XP? As i remember, aqrit didn't recommend to use his ddraws for xp, as war2 works fine under XP without any ddraws.
So, did you try XP with your ddraws?
I use MinVersion: 6.0;
You don't actually need it on XP for compatibility reasons, but now they're useful because we have windowed mode and stretching. I Always test everything on XP and 10, so yeah, it works fine
Is there an additional description for all the possible parameters?
It's quite difficult to understand things even for me, after reading the source code, so i think it will be much more difficult for ordinary players.
...
10. to add graphics utility to configure options, similar to GoG's one. Not sure we really need that, but maybe something already exists?
No, only what is written inside of ddraw.ini. Normally you don't have to change any settings, unless you're wanting to change something specific like the mouse speed or scaling.
A config program would be very useful. If you want to have all features of both ddraws available in war2 combat then we'll have to make a config program! If you only want to include the updated test2, then I don't think we need a config program.
There are some config programs already available that can change the cnc-ddraw settings, but they're for other games and have game specific settings so we can't use them directly (We could modify them, but they need the .NET framework 2.0).
1. What is maintas and boxing? Which one is required/better and when or no one? As i see from source, they exclude each other.
That's all personal preference, none is better. But most people will want maintas=true.
2. What maxfps would be the best for war2?
war2 needs at least 60 FPS, but it's no problem to set it higher. I usually set it to the double of what the game needs to get less input lag.
3. Which set of mouse options are optimal for war2?
If your mouse is too fast (That can happen because the game runs on 640x480), then set fullscreen=true and adjmouse=true to slow your mouse down (It will then have the same speed as in windows).
4. How to understand which renderer is used as auto? Are there any logs anywhere?
When i use auto, looks like d3d or w/e applied, as when i select opengl, that looks different.
If you set it to auto then it will try to use Direct3D, if that fails then it will try OpenGL and if that fails too then it will use GDI. It will show you a message when it's switching the renderer, you will know about it.
On linux it will use OpenGL and if that fails GDI (Direct3D is windows only).
For war2 we only need GDI, cause it's the fastest on low resolutions. OpenGL is only useful if you enable stretching cause it can apply shaders for better image quality. There are also shaders that can apply other effects without stretching (e.g. make the image brighter).
5. If renderer is selected as opengl, but opengl is not supported - will gdi be used? Or some unknown error appears?
It will automatically switch to GDI then, no need to change any settings. No error message I coded everything in a way that your game will always start and work fine, it will detect if something doesn't work and use different settings automatically.
6. I want to start war2 in fullscreen mode with resolution similar to my default screen resolution. And alt-enter to window mode as something small, like 640x480 or configurable. Is that possbile or need to be updated?
That is currently not possible, it will switch to windowed mode but the window will be stretched and big... But it's a good idea, I have to think about a solution for this...
7. GoG contains parameters: anisotropic, antialiasing, gamma. Do they have any analogs here?
You can do all that via shader= too. Each shader has a different effect.
gog's scaling looks blurry like this "shader=Shaders\cubic.glsl"
You can also make it look like an old CRT monitor "shader=Shaders\crt-lottes-fast-no-warp.glsl"
There are 100+ shaders you can download here https://github.com/libretro/glsl-shaders
8. When i use width=0 height=0 it works as my default resolution with renderer auto, but not works the same with opengl. For opengl i have to write width=1600 height=1200
Oh, are you sure you had 'fullscreen=true' set? That should always work with 0,0 on all renderers.
9. ddraw.ini contains bnetHack option, but no that option in the source code. Is it different build there is binary code?
The cnc-ddraw I linked here was a new test build, you have to switch the branch from "master" to "diablo_warcraft2" to see the new code.
Here is a direct link to the code of the new branch https://github.com/CnCNet/cnc-ddraw/archive/diablo_warcraft2.zip
Sorry, wrong info:
mouse have not been blocked, but looks like pointer appears behind the screen, became invisible (working though). Usually can be fixed by creating/joining the game and then returning back. But sometimes - that doesn't help.
I will do some testing. So this was the new test2 or cnc-ddraw? It only happens in windowed mode?