Why does the mouse become invisible in the menu of M1 tank Platoon 2?

Questions about Wine on Linux
Locked
Osmosis
Level 2
Level 2
Posts: 19
Joined: Fri Jun 16, 2023 1:37 pm

Why does the mouse become invisible in the menu of M1 tank Platoon 2?

Post by Osmosis »

Hi.
I tried to play a 1998 tank simulator called "M1 Tank Platoon 2" on Ubuntu 16.04 LTS with Wine.
The game in general works correctly and the mouse appears during the game, but in the main menu the mouse is not visible, it is possible to interact with the settings, although it is very difficult to do so.
Conclusion: I would like to know how to correct this error to make the mouse visible.
angelmealey
Level 1
Level 1
Posts: 5
Joined: Wed Aug 09, 2023 2:44 pm

Re: Why does the mouse become invisible in the menu of M1 tank Platoon 2?

Post by angelmealey »

Hello,
To make the mouse visible in the main menu of "M1 Tank Platoon 2" when running it with Wine on Ubuntu 16.04 LTS, you can try the following steps:
1. Install the necessary packages:

Code: Select all

bash
sudo apt-get install winetricks
2. Open a terminal and run the following command to launch the Wine configuration window:

Code: Select all

bash
winecfg
3. In the Wine configuration window, go to the "Graphics" tab and enable the "Emulate a virtual desktop" option. Set the desktop size to match your screen resolution or choose a resolution that works well for your system.

4. Close the Wine configuration window.

5. Run the following command in the terminal to launch the Wine configuration for the specific game:

Code: Select all

bash
WINEPREFIX=~/.wine winecfg
6. In the Wine configuration window for the game, go to the "Libraries" tab.

7. In the "New override for library" section, enter dinput and click the "Add" button.

8. Select the newly added dinput library and click the "Edit" button.

9. In the "Edit override for library" window, set the library to "Native (Windows)" and click the "OK" button.

10. Close the Wine configuration window for the game.

11. Open a terminal and run the following command to install additional dependencies:

Code: Select all

bash
winetricks dinput
12. Launch the game again, and the mouse should now be visible in the main menu.

By configuring Wine to emulate a virtual desktop and overriding the dinput library, you should be able to resolve the issue of the invisible mouse cursor in the main menu of "M1 Tank Platoon 2" while running it on Ubuntu 16.04 LTS with Wine.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Why does the mouse become invisible in the menu of M1 tank Platoon 2?

Post by jkfloris »

angelmealey wrote: Wed Aug 09, 2023 8:54 pm 5. Run the following command in the terminal to launch the Wine configuration for the specific game:

Code: Select all

bash
WINEPREFIX=~/.wine winecfg
6. In the Wine configuration window for the game, go to the "Libraries" tab.

7. In the "New override for library" section, enter dinput and click the "Add" button.

8. Select the newly added dinput library and click the "Edit" button.

9. In the "Edit override for library" window, set the library to "Native (Windows)" and click the "OK" button.

10. Close the Wine configuration window for the game.

11. Open a terminal and run the following command to install additional dependencies:

Code: Select all

bash
winetricks dinput
Why do you manually create an override for dinput when you run winetricks dinput afterwards?
Locked