Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs between maps #2

Open
jrmain opened this issue Jun 7, 2024 · 20 comments
Open

Hangs between maps #2

jrmain opened this issue Jun 7, 2024 · 20 comments

Comments

@jrmain
Copy link

jrmain commented Jun 7, 2024

With dsound.dll loaded, I can see and use its various features. Unfortunately, when a map ends, I get stuck on the next map's loading screen. I have to hit Escape and click Disconnect, then reconnect.

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 10, 2024

Thanks for reporting. I have a few questions:
Does it happen only with bf42plus?
When do you get stuck, the game loads completely? Is it before the briefing window where you click ready?
Do you have datafield installed?
Do you have a d3d8.dll mod?

@jrmain
Copy link
Author

jrmain commented Jun 10, 2024

Does it happen only with bf42plus?
Yes. When I remove dsound.dll, the problem disappears.

When do you get stuck, the game loads completely?
No. I have to hit Escape, disconnect from the server, and rejoin.

Is it before the briefing window where you click ready?
Yes. It happens at the map loading screen. I'll try to post a screenshot.

Do you have datafield installed?
I don't know what that is.

Do you have a d3d8.dll mod?
There is no file by that name in my Battlefield 1942 client folder or its subfolders.

@jrmain
Copy link
Author

jrmain commented Jun 10, 2024

bf42plusProblemBetweenMaps
This is where it hangs. After several minutes, it disconnects from the server.

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 10, 2024

Thanks, that helps. Does it happen always, on every server? This is possibly an issue with the "faster reconnect" patch. I don't see yet how it could cause an eternal waiting, but i'm looking into it.

@jrmain
Copy link
Author

jrmain commented Jun 10, 2024

I haven't tried any other servers, but I'll let you know what happens. I was also thinking about the faster reconnect feature, and looked for a way to disable it but didn't find anything. I should also point out that I'm using a patched BF1942 client: the version created by Henk. It includes fixes for some exploits and some other useful stuff. https://team-simple.org/forum/viewtopic.php?id=9261

@jrmain
Copy link
Author

jrmain commented Jun 10, 2024

All the other features (and I tried most of them) worked as expected, so if there was a way to get around this problem I would probably use it.

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 10, 2024

dsound.zip

This is a new build, it has some debug logging into the logs/ directory, please reproduce the bug, then exit the game and post the log file.

I also added an option to disable the "faster mapchange":
set fasterMapchange = off in the config, or type plus.fasterMapchange 0 in the console to disable it

@jrmain
Copy link
Author

jrmain commented Jun 11, 2024

Downloaded the new version and copied it to my BF42 client folder as before. In game, disabled fasterMapchange. Hung again between maps. Closed client and confirmed the setting in bf42plus.ini. Debug log below.

updater thread started
check for update
https -> update.bf1942.hu
WinHttpConnect ok
GET /update/v2/latest_release.txt
[20:49:00.434] (20576) [game] LOG BFMainNewRend:Setup.cpp:3487 p3: message:'Version v1.61 BF1942 (Ver: Henk, 23 Feb. 2022)' expr:BFMainNewRend\Setup.cpp
[20:49:00.434] (20576) [game] LOG BFMainNewRend:Setup.cpp:3498 p3: message:'Log created 2024/06/10:20.02d' expr:BFMainNewRend\Setup.cpp
[20:49:00.434] (20576) [game] LOG BFMainNewRend:Setup.cpp:3499 p3: message:'--------------------------
' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3258 p3: message:'SystemInfo:' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3259 p3: message:'-----------
' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3263 p3: message:'Cpu:' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3264 p3: message:'Running on Unknown processor at 2200 MHz' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3267 p3: message:'Supports AMD 3DNow' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3271 p3: message:'Supports MMX' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3275 p3: message:'Supports SSE' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3279 p3: message:'Supports SSE2' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3282 p3: message:'' expr:BFMainNewRend\Setup.cpp
[20:49:00.978] (20576) [game] LOG BFMainNewRend:Setup.cpp:3295 p3: message:'Renderer:' expr:BFMainNewRend\Setup.cpp
GET ok
WinHttpReadData 052A6978 offset 0 length 926
WinHttpReadData 052A7A80 offset 926 length 1870
received 2796 bytes
update check version: 1.3.4-0-g7aa995d
[20:49:01.770] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:678 p3: message:'Number of adapters:2' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.889] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:684 p3: message:'Adapter:0' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.889] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:685 p3: message:'Driver:nvd3dum.dll' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.889] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:686 p3: message:'Description:NVIDIA GeForce GTX 1060 3GB' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.889] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:693 p3: message:'Product:30 Build:7212' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.889] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:694 p3: message:'DriverVersion:0:14' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.889] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:695 p3: message:'VendorId:4318 DeviceId:7170 Revision:161' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.970] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:684 p3: message:'Adapter:1' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.970] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:685 p3: message:'Driver:nvd3dum.dll' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.970] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:686 p3: message:'Description:NVIDIA GeForce GTX 1060 3GB' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.970] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:693 p3: message:'Product:30 Build:7212' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.971] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:694 p3: message:'DriverVersion:0:14' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:01.971] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:695 p3: message:'VendorId:4318 DeviceId:7170 Revision:161' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.083] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:282 p3: message:'Windowed Mode' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.083] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:346 p3: message:'24:8 bit depth buffer' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.083] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:901 p3: message:'supports pure d3d device. validVersion:1 getSupportedMaxVertexShaderConstants():256 m_d3dCaps->mMinVertexShaderConstants:96' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:937 p3: message:'D3D Present parameters' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:938 p3: message:'m_d3dpp.BackBufferWidth 1024' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:939 p3: message:'m_d3dpp.BackBufferHeight 768' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:940 p3: message:'m_d3dpp.BackBufferFormat 22' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:941 p3: message:'m_d3dpp.BackBufferCount 1' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:942 p3: message:'m_d3dpp.SwapEffect 1' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:943 p3: message:'m_d3dpp.hDeviceWindow 45AF2C2A' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:944 p3: message:'m_d3dpp.Windowed 1' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:945 p3: message:'m_d3dpp.EnableAutoDepthStencil 1' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:946 p3: message:'m_d3dpp.AutoDepthStencilFormat 75' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:947 p3: message:'m_d3dpp.Flags 0' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:948 p3: message:'m_d3dpp.FullScreen_RefreshRateInHz 0' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:02.129] (20576) [game] LOG RendPCDX8:PCDX8RendererInit.cpp:949 p3: message:'m_d3dpp.FullScreen_PresentationInterval 0' expr:ENGINE\RendPCDX8\PCDX8RendererInit.cpp
[20:49:03.075] (20576) new key: [deleted]
[21:20:07.138] (20576) [trace] 0048FFE0 -> RestartServerPinger__init ("184.71.170.154:14567", 180.000000, )

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 11, 2024

If you changed the setting ingame it only applies after the next restart.

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 11, 2024

dsound.zip
I made a new build that has even more debug messages, please try reproducing the issue with this and post logs. I tested the .exe you linked and had no issues, i use a newer version of that patch too.

@jrmain
Copy link
Author

jrmain commented Jun 11, 2024

Started the BF42 client after first making sure that the setting is disabled in bf42plus.ini. Played a map and then... it loaded the next map fine. Thanks for the fix!

@jrmain
Copy link
Author

jrmain commented Jun 11, 2024

We posted at the same time. I'm trying the latest version you posted: I'll re-enable the faster map change feature and post the log if the problem recurs.

Also: where did you get the newer version of the Henk BF1942 client?

@jrmain
Copy link
Author

jrmain commented Jun 11, 2024

The problem remains.
bf42plus_debug.log

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 11, 2024

The fast restart mode is not disabled for you. Type plus.fasterMapchange 0 into the console and restart your game. If you do it correctly it should tell you in the console that the change only takes effect after restarting.

@jrmain
Copy link
Author

jrmain commented Jun 11, 2024

With 'fasterMapchange = off' in bf42plus.ini, the feature is disabled, and there's no problem between maps. With 'fasterMapchange = on' in bf42plus.ini, the feature is enabled, and the client hangs between maps.

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 11, 2024

Interesting, thanks for testing... As far as i can tell from the logs the game does everything it needs to do, this may be a network problem. If you are interested (I am!) about figuring this out i could try to take a look at this via AnyDesk. With that software I can remotely control your machine with your permission, you can take over control any time. Let me know if you are willing to do this. If I could figure out what exactly causes this problem on your side I could implement a permanent fix in plus, so if it occurs to somebody else he/she doesn't have to manually disable this option.

@jrmain
Copy link
Author

jrmain commented Jun 11, 2024

Sorry, I'm not comfortable with granting remote access. I'm perfectly willing to try any more fixes you think of, or to provide any additional feedback that would be of use. In the meantime, though, I'm perfectly happy to just disable the fasterMapchange feature.

uuuzbf added a commit that referenced this issue Jun 12, 2024
…is applied, the SERVER_INFO packets are somehow lost

see issue #2
@uuuzbf
Copy link
Owner

uuuzbf commented Jun 12, 2024

Understandable. Please try the following build with fasterMapchange enabled. Make sure to restart before testing if you enable it in console. I added some workarounds so the client pings the server differently.
dsound.zip

@uuuzbf
Copy link
Owner

uuuzbf commented Jun 16, 2024

@jrmain Please test it when you have the time.

@jrmain
Copy link
Author

jrmain commented Jun 16, 2024

No change. I get 'loading, please wait' for about three minutes, then 'disconnected from server'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants