You are not logged in.

#1 2020-04-26 14:53:44

Hooly
Member
From: Germany
Registered: 2020-02-05
Posts: 19

[Solved] Missing ping ingame

Edit: Apparently wine had some issues, because I ran wine as sudo once (for debugging purposes on another game), plus i hadn't applied the setcap command to the wineserver. The ingame ping and punkbuster are now working. This also might or might not be related to a wine update.
Thanks @V1del for pointing me to the ICMP section at winehq :-)

Since building my new PC and switching from Ubuntu 18.04 to Arch, my ping in BF4 is missing.

- I tested it with Win10 to make sure it's not the router -> ping works.
- "icmp_ignore_echo_all" is set to 0
- I am using the same wine version as before, so it's not a regression in wine
- Tried temporarily disabling "icmp_ignore_echo_broadcasts" which as expected didn't help


Any ideas to find the cause are appreciated.

Last edited by Hooly (2020-05-02 09:46:36)


"I know that I know nothing"

AMD Ryzen 7 5800X
AMD Radeon RX 6900XT

Offline

#2 2020-04-27 00:51:21

mpan
Member
Registered: 2012-08-01
Posts: 1,332
Website

Re: [Solved] Missing ping ingame

Note: written without any knowledge about what “BF4” is, assuming only that it’s some kind of a video game and it has built-in ICMP ping feature that is not working.

If the game is in fact using ICMP pings, it’s possible it is using the old method (SOCK_RAW) instead of the newer ICMP sockets (SOCK_DGRAM + PROTO_ICMP). The former requires root privileges, while the latter can be done by anyone. Obviously a game is not something you want to run with root privileges, so my guess is that in such a scenario it simply can’t perform pings. You may determine that by searching for invocations of the socket function in the game’s source code. If that theory is confirmed, you may wish to fill a bug report. There is no reason to use raw sockets for pings in 2020. At least not as the default method.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2020-04-27 01:38:08

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,229
Website

Re: [Solved] Missing ping ingame

Can you ping from the command line?  (ie, `ping 8.8.8.8`)

Offline

#4 2020-04-27 07:34:46

Hooly
Member
From: Germany
Registered: 2020-02-05
Posts: 19

Re: [Solved] Missing ping ingame

@fukawi2 Yes, ping from the command line works fine.

@mpan The game is from 2013 and was supported until somewhere around 2016, so I guess your assumptions are correct. Especially when considering that they usually tell you to "just run as admin like everyone" when something doesn't work. This is a game from EA, so no source code for me or anyone in the player community.

Guess I'll have to live without a ping in BF4 when playing on Linux and use dual-boot or a VM (when I get a second GPU) when I require an ingame ping, thanks @mpan for shedding light on this. ^.^


Edit: In the server browser, I can see my ping to the server just fine. But in a match the ping column for my name is " - " so I assume while in a match the server pings the clients and is in fact using the old ICMP method and that's why my PC is not replying?

Last edited by Hooly (2020-04-27 07:44:28)


"I know that I know nothing"

AMD Ryzen 7 5800X
AMD Radeon RX 6900XT

Offline

#5 2020-04-27 07:45:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: [Solved] Missing ping ingame

Offline

#6 2020-04-27 08:21:58

Hooly
Member
From: Germany
Registered: 2020-02-05
Posts: 19

Re: [Solved] Missing ping ingame

Interesting, I ran

sudo setcap cap_net_raw+epi /home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine64-preloader

and now the Origin client which starts the game won't start.

After running

sudo setcap -r /home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine64-preloader

it's working fine again, this client is weird.

Edit: None of my games in Lutris using lutris-fshack-5.6-2 will work when applying the first command.

Edit2: Log of

lutris -d
DEBUG    2020-04-27 17:09:13,970 [application.launch:379]:Launching Battlefield 4 (wine) (140713936408640)
Exception ignored in: <function InputDevice.__del__ at 0x7ffa8da360d0>
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/evdev/device.py", line 159, in __del__
    self.close()
  File "/usr/lib/python3.8/site-packages/evdev/device.py", line 304, in close
    super().close()
  File "/usr/lib/python3.8/site-packages/evdev/eventio_async.py", line 54, in close
    loop = asyncio.get_event_loop()
  File "/usr/lib/python3.8/asyncio/events.py", line 639, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-5'.
INFO     2020-04-27 17:09:14,041 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/system32/dxgi with DXVK version
INFO     2020-04-27 17:09:14,042 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/system32/d3d11 with DXVK version
INFO     2020-04-27 17:09:14,043 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/system32/d3d10core with DXVK version
INFO     2020-04-27 17:09:14,043 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/system32/d3d9 with DXVK version
INFO     2020-04-27 17:09:14,044 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/syswow64/dxgi with DXVK version
INFO     2020-04-27 17:09:14,044 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/syswow64/d3d11 with DXVK version
INFO     2020-04-27 17:09:14,044 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/syswow64/d3d10core with DXVK version
INFO     2020-04-27 17:09:14,045 [dxvk.enable_dxvk_dll:180]:Replacing /home/dirk/Games/battlefield-4/drive_c/windows/syswow64/d3d9 with DXVK version
DEBUG    2020-04-27 17:09:14,328 [game.configure_game:334]:Launching Battlefield 4: {'env': {'DXVK_CONFIG_FILE': '/home/dirk/Games/battlefield-4/dxvk.conf', 'DXVK_HUD': '0', 'STAGING_SHARED_MEMORY': '0', '__GL_SHADER_DISK_CACHE': '1', '__GL_SHADER_DISK_CACHE_PATH': '/home/dirk/Games/battlefield-4/nv-shaders', 'STEAM_RUNTIME': '/home/dirk/.local/share/lutris/runtime/steam', 'LD_LIBRARY_PATH': '/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/lib:/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/lib64:/usr/lib/libfakeroot:/usr/lib/openmpi:/usr/lib32:/usr/lib:/usr/lib64:/home/dirk/.local/share/lutris/runtime/lib32:/home/dirk/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/i386/lib:/home/dirk/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/i386/usr/lib:/home/dirk/.local/share/lutris/runtime/lib64:/home/dirk/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/amd64/lib:/home/dirk/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/amd64/usr/lib:$LD_LIBRARY_PATH', 'WINEDEBUG': '', 'WINEARCH': 'win64', 'WINE': '/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine', 'WINEPREFIX': '/home/dirk/Games/battlefield-4', 'WINEESYNC': '1', 'WINEDLLOVERRIDES': 'xaudio2_7=n,b;d3d10core,d3d11,d3d9,dxgi=n;winemenubuilder.exe=d;OriginThinSetupInternal.exe,nvapi,nvapi64=', 'WINE_LARGE_ADDRESS_AWARE': '1'}, 'command': ['/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine', '/home/dirk/Games/battlefield-4/drive_c/Program Files (x86)/Origin/Origin.exe']}
DEBUG    2020-04-27 17:09:14,328 [game.configure_game:335]:Game info: {
  "env": {
    "DXVK_CONFIG_FILE": "/home/dirk/Games/battlefield-4/dxvk.conf",
    "DXVK_HUD": "0",
    "STAGING_SHARED_MEMORY": "0",
    "__GL_SHADER_DISK_CACHE": "1",
    "__GL_SHADER_DISK_CACHE_PATH": "/home/dirk/Games/battlefield-4/nv-shaders",
    "STEAM_RUNTIME": "/home/dirk/.local/share/lutris/runtime/steam",
    "LD_LIBRARY_PATH": "/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/lib:/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/lib64:/usr/lib/libfakeroot:/usr/lib/openmpi:/usr/lib32:/usr/lib:/usr/lib64:/home/dirk/.local/share/lutris/runtime/lib32:/home/dirk/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/i386/lib:/home/dirk/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/i386/usr/lib:/home/dirk/.local/share/lutris/runtime/lib64:/home/dirk/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/amd64/lib:/home/dirk/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/amd64/usr/lib:$LD_LIBRARY_PATH",
    "WINEDEBUG": "",
    "WINEARCH": "win64",
    "WINE": "/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine",
    "WINEPREFIX": "/home/dirk/Games/battlefield-4",
    "WINEESYNC": "1",
    "WINEDLLOVERRIDES": "xaudio2_7=n,b;d3d10core,d3d11,d3d9,dxgi=n;winemenubuilder.exe=d;OriginThinSetupInternal.exe,nvapi,nvapi64=",
    "WINE_LARGE_ADDRESS_AWARE": "1"
  },
  "command": [
    "/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine",
    "/home/dirk/Games/battlefield-4/drive_c/Program Files (x86)/Origin/Origin.exe"
  ]
}
DEBUG    2020-04-27 17:09:14,328 [command.start:133]:Running /usr/share/lutris/bin/lutris-wrapper Battlefield 4 0 3 QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe /home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine /home/dirk/Games/battlefield-4/drive_c/Program Files (x86)/Origin/Origin.exe
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: SDL_VIDEO_FULLSCREEN_DISPLAY="off"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: RADV_PERFTEST="aco"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: DXVK_CONFIG_FILE="/home/dirk/Games/battlefield-4/dxvk.conf"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: DXVK_HUD="0"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: STAGING_SHARED_MEMORY="0"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: __GL_SHADER_DISK_CACHE="1"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: __GL_SHADER_DISK_CACHE_PATH="/home/dirk/Games/battlefield-4/nv-shaders"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: STEAM_RUNTIME="/home/dirk/.local/share/lutris/runtime/steam"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: LD_LIBRARY_PATH="/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/lib:/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/lib64:/usr/lib/libfakeroot:/usr/lib/openmpi:/usr/lib32:/usr/lib:/usr/lib64:/home/dirk/.local/share/lutris/runtime/lib32:/home/dirk/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/i386/lib:/home/dirk/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/i386/usr/lib:/home/dirk/.local/share/lutris/runtime/lib64:/home/dirk/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/amd64/lib:/home/dirk/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/dirk/.local/share/lutris/runtime/steam/amd64/usr/lib:$LD_LIBRARY_PATH"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINEDEBUG=""
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINEARCH="win64"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINE="/home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINEPREFIX="/home/dirk/Games/battlefield-4"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINEESYNC="1"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINEDLLOVERRIDES="xaudio2_7=n,b;d3d10core,d3d11,d3d9,dxgi=n;winemenubuilder.exe=d;OriginThinSetupInternal.exe,nvapi,nvapi64="
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: WINE_LARGE_ADDRESS_AWARE="1"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: game_name="Battlefield 4"
DEBUG    2020-04-27 17:09:14,328 [command.start:135]:ENV: PYTHONPATH="/usr/lib/lutris:/usr/bin:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/lib/python3.8/site-packages"
lutris-wrapper: Battlefield 4
Running /home/dirk/.local/share/lutris/runners/wine/lutris-fshack-5.6-2-x86_64/bin/wine /home/dirk/Games/battlefield-4/drive_c/Program Files (x86)/Origin/Origin.exe
Initial process has started with pid 3859
Game is considered started.
esync: up and running.
wine client error:0: version mismatch 599/603.
Your wineserver binary was not upgraded correctly,
or you have an older one somewhere in your PATH.
Or maybe the wrong wineserver is still running?
Game is considered exited.
Initial process has exited.
All monitored processes have exited.
Exit with returncode 256
DEBUG    2020-04-27 17:09:14,479 [command.on_stop:182]:The process has terminated with code 0
DEBUG    2020-04-27 17:09:14,480 [command.stop:266]:Management process looks dead already.
DEBUG    2020-04-27 17:09:14,480 [command.stop:274]:Detaching logger
DEBUG    2020-04-27 17:09:16,345 [game.beat:596]:Game thread stopped
WARNING  2020-04-27 17:09:16,345 [game.on_game_quit:626]:Game still running (state: running)
INFO     2020-04-27 17:09:16,347 [game.stop:611]:Stopping Battlefield 4 (wine)
DEBUG    2020-04-27 17:09:16,348 [command.stop:266]:Management process looks dead already.
DEBUG    2020-04-27 17:09:16,348 [command.stop:278]:logger already detached
DEBUG    2020-04-27 17:09:16,359 [game.on_game_quit:645]:Battlefield 4 stopped at Mo, 27 Apr 2020 17:09:16
DEBUG    2020-04-27 17:09:16,359 [game.save:249]:Saving Battlefield 4 (wine)
DEBUG    2020-04-27 17:09:16,362 [lutriswindow.on_game_updated:779]:Updating game Battlefield 4 (wine)

Trying the same with wine-staging-5.7 did work and I had a ping ingame. However punkbuster seems to not work and I'm getting kicked after roughly a minute... goddamnit, so close.

Last edited by Hooly (2020-04-27 15:57:26)


"I know that I know nothing"

AMD Ryzen 7 5800X
AMD Radeon RX 6900XT

Offline

#7 2020-08-06 08:12:38

pharoah
Member
Registered: 2020-08-06
Posts: 5

Re: [Solved] Missing ping ingame

Sorry for running into an inactive thread, but I don't feel like this is quite solved yet, because you said punkbuster is kicking you. Have you tried running the test? Maybe it's not being started.

I'm also with this problem now, which is strange because on my previous arch installation i didn't have this missing ping issue. I've tried setting cap on wineserver, wine64-preloader and wine-preloader for the lutris-fshack.5.7-5 runner (which is the one that the BF4 script chose) and tried some other runners as well but no help (didn't even want to start).

Ping is working fine from the commandline and setting

sudo chmod 4755 /bin/ping

like a thread on reddit suggested didn't help much so I reverted the permission. It has been 3 months since the last post, have you fixed this @Hooly?



EDIT: Fixed no ping by installing wine-staging and setcap on binaries like you said, but now the game has no audio.
EDIT 2: Rebooting fixed it for some reason. None of the system audio worked until I rebooted.

Last edited by pharoah (2020-08-06 17:03:11)

Offline

Board footer

Powered by FluxBB