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.
Why does the mouse become invisible in the menu of M1 tank Platoon 2?
-
- 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?
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:
2. Open a terminal and run the following command to launch the Wine configuration window:
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:
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:
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.
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
Code: Select all
bash
winecfg
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
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
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.
Re: Why does the mouse become invisible in the menu of M1 tank Platoon 2?
Why do you manually create an override for dinput when you run winetricks dinput afterwards?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:
6. In the Wine configuration window for the game, go to the "Libraries" tab.Code: Select all
bash WINEPREFIX=~/.wine winecfg
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