as most of you already know, there is work going on to port US dx to linux. But, as there is currently only the windows version available, I thought: why not trying to run it under linux with wine. And, after some tedious "what error is that now and how do I solve it" problems with wine, I finally managed to run the windows version of Ultrastar DX (1.0) under linux.
Requirements
- I assume that you have some basic knowledge about linux, but don't worry, I'm not expecting too much.
- Your PC might need more CPU power to run UltraStar dx than it does under windows. Wine is a kind of translatior, translating, the Windows Api to linux calls.
- As UltraStar DX makes use of OpenGL for those nice animations, you need 3d-acceleration under linux. Otherwise US dx runs very slowly. NVIDIA and ATI both provide binary drivers for their most recent graphic cards under linux (x86 and x86_64). Please read the manuals of your distro. They should explain how to install those drivers.
Step One: Wine
First of all, you need a recent version of wine. "Wine is an Open Source implementation of the Windows API on top of X, OpenGL, and Unix." http://www.winehq.org. The version I used is 0.9.46. Virtually all decent distro's should have wine in their tree.
e.g. under gentoo the command is:
- Code: Select all
emerge wine
Wine nowadays comes with a nice little configuration program "winecfg" which circumvents nasty editing of config files. If you have just installed wine now, you possibly need to setup your audio driver, as shown in the following image:
Step Two: UltraStar Deluxe
Unfortunately, the current version of US dx (1.0) which can be downloaded from [url]sourceforge.org[/url] cannot be used with wine directly. There is a minor bug in the initialization process, which has been already corrected in the SVN version. This bug does not pose a problem under windows, but under wine, the program won't start. You download and compile the UltraStar Deluxe Version from the SVN, or wait until a new version is out. I am not sure whether I may upload the patched "exe"-File here. I will have to ask the maintainers first.
Step Three: Libraries
UltraStar Deluxe uses several Dynamic Link Libraries (DLLs) under Windows. Wine can usually use these libraries, too. However, problems occur with older versions of the SDL.dll. The version of the SDL.dll that comes with the current UltraStar dx package is incompatible with wine and does not work. You need to download the most recent version of this file from http://www.libsdl.org/. The version I used can be found at http://www.libsdl.org/release/SDL-1.2.12-win32.zip. Extract the SDL.dll file directly to your "UltraStar Deluxe" folder.
Step Four: Launch
Right now, you should be able to launch UltraStar Deluxe. Really, that's all you have to do. The bash command for launching it is:
- Code: Select all
cd "Your-US_dx-Folder"
wine UltraStar.exe
After a while, wine should start like this:
Or in fullscreen mode depending on your config.ini settings.
Known Problems
I really don't know why, but wine seems to have problems with some of the fonts that are included in UltraStar Deluxe. Those fonts are selected in the Theme files of the Program. When I tested the program, Font Style 1 and Font Style 3 could not be displayed. I also experienced some minor texture problems at the bars (see image).
The font problem can be solved easily by replacing all "Font = 1" with "Font = 0" in your favorite theme file ("UltraStar-DX-Folder/Themes/XXX.ini").
Well, that's all for now. I hope that you will also be able to run US-dx under wine now.
Greets Linne


