While you're here, please consider supporting GamingOnLinux on:
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- Half-Life 2 free to keep until November 18th, Episodes One & Two now included with a huge update
- Linux GPU Configuration Tool 'LACT' adds NVIDIA support
- The Walking Dead, The Expanse and more in the Telltale Collection Humble Bundle
- Unofficial PC port of Zelda: Majora's Mask, 2 Ship 2 Harkinian has a big new release out
- Steam Controller 2 is apparently a thing and being 'tooled for a mass production' plus a new VR controller
- > See more over 30 days here
-
War Thunder adds stealth tech, ray tracing and graphics…
- Pikolo -
Steam Controller 2 is apparently a thing and being 'too…
- FutureSuture -
Dungeon Clawler will grab hold of your free time now it…
- USteppin -
War Thunder adds stealth tech, ray tracing and graphics…
- chr -
Oxygen Not Included gets a Free Weekend, big update liv…
- Purple Library Guy - > See more comments
- Weekend Players' Club 11/22/2024
- StoneColdSpider - Our own anti-cheat list
- Liam Dawe - Spare gog keys
- on_en_a_gros - What do you want to see on GamingOnLinux?
- dpanter - Nintendo-style gaming, without Nintendo!
- Talon1024 - See more posts
View PC info
Linux Distribution: Arch, but I know it happens in all distros.
Desktop Environment: Cinnamon (5.2.7, 5.4.0 and the latest)
Graphics Card: GTX 1660 Ti
GPU Driver Version: 525.89.02
Have you checked for system updates?: [Yes]
I answered the questions but I don't think they have anything to do with this particular problem: NFS U2 won't accept and remember the customized controls and even the default ones don't run properly. I can't drive a car on a racing game with WASD and "Space" for handbrake, so I've always liked to change these controls ever since the game was released by EA. The controls I like to use are the arrows, "Num 0" for handbrake, "Num 1" for look back, "Right Shift/Right Control" for shifting gears up and down and "Space" to reset car's position. And until a year or two ago these controls were possible thanks to a file named dimap.dll. But not anymore. A year or two ago that file stopped working. I've added it in the libraries list of Wine but it still doesn't work. Nowadays, even if you somehow manage to set custom controls, they will only half work during career and if you exit the game, they're being forgotten instantly (the game won't remember them the next time you run NFS U2).
I thought the file might have been corrupted somehow, so I downloaded it again but it still won't work. Compatibility menu in Wine doesn't matter at what Windows is set - the file still won't work.
So I need ideas on how to make the custom controls work again. The only idea I have left is to try and install Windows XP in a VM and play the game that way but I was hoping to use that as a last resort, if everything else fails.
- Have you set both dlls to native (with winecfg)?
- The batch script included with those dll's register diactfrm.dll with regsvr32, that might be necessary on wine too.
- You can make sure the native dll is loaded by lanching Wine with WINEDEBUG=+loaddll
- Play with a controller if that's possible. Even if the bindings can't be changed in game it's easy to remap with something like antimicrox.
- If you are of a programming mindset and build Wine yourself it's probably not too hard to remap the keyboard input in Wine.
View PC info
These two are not possible - I'm not a developer nor do I have a controller, other than a keyboard.
The other 3 you mentioned - I have tried them. No change. So I resorted to the last possible variant - VMWare with Windows 10. That works perfectly and unlike the real machine, I can tell the VM to keep the game's aspect ratio (the real machine stretches everything by default).
If you have aspect ratio problems in other games, give gamescope a try. It's a handy tool for this and other problems.
View PC info
I'm not a fan of such controllers. You could say I am a "Keyboard to the bone", rephrasing a famous George Thorogood's song. :)
@whizse, I've tried gamescope a few times and it never detects the game. I'm guessing it only works for native linux games, not for windows games.
It is used by default on the Steam Deck which runs quite a few windows games...
View PC info
When a game doesn't work properly with Wine, this is what I do first before asking on forums - to try and run it with Steam's Proton. The game starts, even gets its proper aspect ratio but that library dimap.dll still doesn't work, so no changing default controls and no remembering them either.
A better alternative to a native dimap.dll is NFSU-XtendedInput. It's also a drop-in .dll but rewritten for a modern API. The goal of the project was better gamepad support but they rewrote the keyboard support too.
I tried it (briefly) with NFS2U and Wine 8.15 and it seems to work fine here. Keyboard bindings can be remapped and are not lost the next time you start the game.
View PC info
That sounds interesting, I'll try it.