glKarin / com.n0n3m4.diii4a

DOOM III/Quake 4/Prey(2006) GLES on Android/Windows/Linux, DOOM 3 BFG/The Dark Mod/RTCW/Quake 1 2 3/GZDOOM/ETW/RealRTCW on Android
GNU General Public License v3.0
282 stars 20 forks source link

Problems with PC version idTech4A++ #242

Closed ALord7 closed 6 days ago

ALord7 commented 2 months ago

Here are some problems I saw:

The console opens via ctrl+alt+~ instead of ~

No sound in game (at least Doom 3)

Unstable FPS (jumps from 40 to 60) because of this it seems that the game is slowing down

In hell (hell1), the heat haze shader is incorrectly warping the space around it. Also on the same map, the lava animation occurs in jerks

When launching mods through the game menu, a crash occurs

Sometimes the console stops opening and even reinstalling does not help solve this problem.

com_fixedTic -1 displays incorrect FPS (from 800 to 2000)

I also noticed technical problems, for example, after starting the game, windows that are open may be minimized or smaller, and the taskbar displays game icons when it is already closed

It will probably take a lot of work and time for the PC version of idTech4A++ to get it to work as it should🥲. If you have such an opportunity, write to me! I can do further testing

glKarin commented 2 months ago

If no sound, check cvar s_useOpenAL = 1, and s_libOpenAL is openal.dll. Sound always use OpenAL in windows.

glKarin commented 2 months ago

Using original shotcut key(ctrl+alt+~) for open console, exclude android. You can add com_allowConsole 1 in command or autoexec.cfg

ALord7 commented 2 months ago

If no sound, check cvar s_useOpenAL = 1, and s_libOpenAL is openal.dll. Sound always use OpenAL in windows.

Yes, now the sound and console have appeared

glKarin commented 2 months ago

I found it has bug that wrong rendering of view effect(e.g. berserk vision, double vision, bfg version) current.

glKarin commented 2 months ago

About In hell (hell1), the heat haze shader is incorrectly warping the space around it. Also on the same map, the lava animation occurs in jerks, please give me screenshots

ALord7 commented 2 months ago

Screenshot_idTech4A++_2024-08-07-10-11-14-720 At the very beginning and here Screenshot_idTech4A++_2024-08-07-10-09-41-330 Screenshot_idTech4A++_2024-08-07-10-09-36-666 Lava moves in jerks and the thermal haze also distorts space in jerks

glKarin commented 2 months ago

Screenshot_idTech4A++_2024-08-07-10-11-14-720 At the very beginning and here Screenshot_idTech4A++_2024-08-07-10-09-41-330 Screenshot_idTech4A++_2024-08-07-10-09-36-666 Lava moves in jerks and the thermal haze also distorts space in jerks

Can you mark them in your picture by highlight box?

glKarin commented 2 months ago

I found it has bug that wrong rendering of view effect(e.g. berserk vision, double vision, bfg version) current.

And do you have this problem? I test it on Intel integrated graphics card.

ALord7 commented 2 months ago

This effect does not work correctly anywhere there is lava. A little later I will test this more thoroughly and record a couple of videos so that you understand where and how it appears

ALord7 commented 2 months ago

do you have this problem? I test it on Intel integrated graphics card.

As far as I could see, bfg distortions work correctly. Also, the distortion in the glass and the heat from the fire from the pipes also work fine, except for the lava for now. My configuration is Intel Core i5 13500 and GeForce RTX 4070ti and Windows 11 (64bit)

My processor also has an integrated video card so I'll test that too

glKarin commented 2 months ago

And berserk vision is correct?

ALord7 commented 2 months ago

And berserk vision is correct?

I don’t know this. There’s no way to check this right now. I’ll write a little later once I’ve checked everything.

glKarin commented 2 months ago

map testmaps/test_box give berserk

ALord7 commented 2 months ago

I tested this bug again and I can say the following - this bug appears only after a certain time of being on the map, for example, after one minute you can clearly see how the lava begins to tremble, and after 2 minutes you can see how the thermal haze also begins to distort incorrectly, and it looks like the mode Berserker, BFG and grenade/missile explosions work fine.

I also noticed that BFG incorrectly plays the thermal haze if this effect already exists in this area, for example, if there is already distortion in the lava and when a BFG charge hits it, a barely noticeable circle appears around the charge, but no distortion of the crane itself is observed.

ALord7 commented 2 months ago

The cubmap shader does not work correctly. For example, the video shows that in dhewm3 it does not distort the image and supports volumetric blood textures. This problem is also relevant for the Android version. https://drive.google.com/drive/folders/1Jn4qXxZmJhkbR3cYOsy1zb_87Fn8QzyS

In fact, in idTech4A you can also make volumetric blood, but as you can see here I’m using the same mod and everything works completely differently.

ALord7 commented 2 months ago

Here are a couple more problems that I found

If you press pause during the game, the sound from the game partially remains

If you take screenshots using a command in the console, the console will be displayed on the screenshots

glKarin commented 2 months ago

Doom3.zip Try this, using DarkMod's reflection cubemap shader

glKarin commented 2 months ago

This is add reflection bumpy(original named bumpyEnvironment in ARB shaders) shader edition, also from thedarkmod. Doom3_reflection_bumpy.zip

glKarin commented 2 months ago

And about Quake4 and Prey, I upload to last release.

ALord7 commented 2 months ago

This is add reflection bumpy(original named bumpyEnvironment in ARB shaders) shader edition, also from thedarkmod.

Yes! Now the shader works almost perfectly except that the FPS has become even more unstable in the latest exe file and the reflections are too dark in color compared to the original. Thank you!

ALord7 commented 2 months ago

Also couldn't launch Prey. It gives an error loading default.cfg and yes, I checked its presence in the .pk4 file and it is there! The game also launches from a regular exe but not idTech4A

Prey 1.2.116 win-x64 Aug 6 2024 11:38:27 Logging console output to C:/Users/Âàëåíòèí/Documents/My Games/dhewm3/dhewm3log.txt 32528 MB System Memory Winsock Initialized Found interface: {C6CB9015-C627-4896-8D3A-B0F3E84FF094} Intel(R) Ethernet Controller (3) I225-V - 192.168.0.12/255.255.255.0 Found interface: {CA27C5E8-0007-40A6-A3C2-D6BCD2745395} Intel(R) Wi-Fi 6E AX211 160MHz - 0.0.0.0 NULL netmask - skipped Found interface: {4F8AF453-CFA0-40FD-A6AD-FE87B0081002} Microsoft Wi-Fi Direct Virtual Adapter - 0.0.0.0 NULL netmask - skipped Found interface: {7BC92B25-432A-4F5E-B688-F13B539E610D} Microsoft Wi-Fi Direct Virtual Adapter #2 - 0.0.0.0 NULL netmask - skipped Sys_InitNetworking: adding loopback interface [Harmattan]: Enable multi-threading rendering [Harmattan]: harm_r_openglVersion = GLES3.0 [Harmattan]: Using OpenGLES3 ------ Initializing File System ------ Current search path: D:\Prey/preybase game DLL: 0x0 in pak: 0x0 Addon pk4s: file system initialized.

Unknown command 'vid_restart' idRenderSystem::Shutdown() Shutting down OpenGL subsystem Couldn't load default.cfg

glKarin commented 2 months ago

prey's game base folder also named preybase

在 2024-08-08 19:58:11,ALord7 @.***> 写道:

Also couldn't launch Prey. It gives an error loading default.cfg and yes, I checked its presence in the .pk4 file and it is there! The game also launches from a regular exe but not idTech4A

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ALord7 commented 2 months ago

oh thanks for pointing that out. Now everything works! But Quake.exe is blocked and deleted by the built-in Microsoft defender antivirus and this is very unpleasant😆

glKarin commented 2 months ago

Doom3.zip bumpy reflection shader using DOOM3 original, remove extras source of TDM

ALord7 commented 2 months ago

bumpy reflection shader using DOOM3 original, remove extras source of TDM

Yes, now this is the perfect shader! I checked how it works on both PC and Android and it works great everywhere, thank you very much! Screenshot_idTech4A++_2024-08-09-20-49-02-441

ALord7 commented 2 months ago

In the latest version of win64 from 09.08, for some reason the graphics settings do not want to be set to high. The textures in the game are still of poor quality and have to be changed manually

image_downSizeSpecular "0" image_downSizeBump "0" image_downSize "0"

Also, the s_useOpenAl command is still set to 0 when starting the game

ALord7 commented 2 months ago

I also experimented with different video cards when running the game. For example, when running Doom 3 with a GeForse RTX 4070ti, I get 40-60 fps, and when running with the built-in Intel UHD Graphics 770 video card, I get a little more fps - 50-60 in both cases, FPS still jumps every second from 40/50 to 60 FPS

ALord7 commented 2 months ago

The console does not open if the keyboard layout is in Russian

glKarin commented 2 months ago

Newest version, change s_libOpenAL back to OpenAL32.dll(original). You need change s_libOpenAL to your OpenAL library file name(OpenAL32.dll in newest package)

ALord7 commented 2 months ago

Newest version, change s_libOpenAL back to OpenAL32.dll(original). You need change s_libOpenAL to your OpenAL library file name(OpenAL32.dll in newest package)

Yes, I saw your commits and already installed openal32.dll, but it doesn’t work because s_useOpenAl is still set to 0. The following message is written in the console: is: "0" default: "1"

ALord7 commented 2 months ago

You have to manually set the value to "1"

ALord7 commented 2 months ago

For example, I use this bat file for the latest version of the launcher Doom3.zip

and also commands specific to my screen resolution: r_custom Width 2560 r_customHeight 1440

glKarin commented 2 months ago

When you run it and initial OpenAL fail, it will make s_useOpenAL to 0 for keep game running.

glKarin commented 2 months ago

Doom3.zip

Test

  • Fix choose mod, and command vid_restart reloadEngine in multi-threading.
  • Modify PBR shaders.
ALord7 commented 2 months ago

Choosing a mod now works well, but it resets the game's configuration. for example, if you play with a configured resolution of 2560x1440, then when you switch to the mod you will again have 4x3 and 640x480. The reloadEngine command does not work correctly. I don’t know what effect this command reproduces, but out of 5 times I was thrown out of the game 4 times and 1 time I ended up in the menu. PBR shaders, in my opinion, have become a little better and smoother in transitions in reflections on the floor or walls, but they still don’t work well with this kind of lighting Снимок экрана (228)

Thermal haze shaders are still not rendering correctly after 1-2 minutes of arriving on the map

ALord7 commented 2 months ago

FPS has improved and is stable at 62. Although I don’t know why he jumped like that before...

there is also no option to disable multithreading