Saturday, December 09, 2017

Medal of Honor: Allied Assault on Modern Linux

Medal of Honor: Allied Assault contains the original MOH and the two expansion packs, Spearhead and Breakthrough. MOH was first released in 2002.

There is a Linux installer, released by Iculus, for the game, but it is for the original version and is a beta release. The libraries it needs are not available in a modern Linux.

There is a standalone Linux binary available here. To use it, install the game on a Windows computer, patch it up to the latest level. Copy the installed game to a Linux computer.
Unpack this downloaded archive in the root of the MOH directory. Run the game with ./mohaa_lnx.

An attempt to use Crossover to install the game failed as it was not possible to switch to the second DVD disc.

There is a possible solution to this by creating a single DVD installation disk for MOH:AA. This process is described here.
DVD5 = 4.70 GB
DVD9 = 7.95 GB

Better yet would be to create a single DVD that would encompass the original MOH:AA along with the two expansion packs. That process is described here.

When creating a custom DVD, you can add any additional files you may need, such as updates, mods and textures.

At the moment, Codeweavers Crossover can install the game, from the original CD version, the DVD version and the homemade all-in-one DVD version, BUT THE GAME WILL NOT RUN. I'll check out POL and see how that does.


RESOURCES

Does it run in WINE?

Medal of Honor: Allied Assault Wikipedia


Thursday, December 07, 2017

Index of Games for Modern Linux

Games for Modern Linux Index

Halo: Combat Evolved for Modern Linux

Doom for Modern Linux

Quake for Modern Linux

Quake2 for Modern Linux

Quake3 for Modern Linux

Quake4 for Modern Linux

Return to Castle Wolfenstein for Modern Linux

Wolfenstein: Enemy Territory for WINE

Wolfenstein:ET for Modern Linux

Unreal Gold for Modern Linux

Unreal 2 on Modern Linux

Unreal Tournament 2003 on Modern Linux 

Unreal Tournament 2004 for Modern Linux

Unreal Tournament 2004 for Modern Linux

Unreal Tournament 3 Arena for Modern Linux

Medal of Honor: Pacific Assault on Modern Linux

Call of Duty on Modern Linux

Call of Duty: United Offensive on Modern Linux


Additional Resources

WINE Homepage



Good Old Games

GOG Linux Releases

The "Judas™ does this run in Wine" thread

PC Gaming Wiki

Wide Screen Gaming

Unpack those .EXE game files from GOG.com 

DOS4GW.EXE Version 2.01a and Alternative DOS Extenders

Trouble Finding Your Linux Game Libraries?

Converting Game CDs to DVDs

Icons for Your System


PC Saved Games Download

Missing DLL Files?

Nullsoft Installers

DirectX End-User Runtimes (June 2010)

DirectX 9.0c End-User Runtime Web Installer

Sunday, December 03, 2017

Recover Data From a Damaged CD/DVD

This is just a convenient place for me to bookmark this information as it is just a copy of James Litten's excellent page about data rescue.

The steps are simple. All commands are to be run on a single line.

1. Clean the disc.
If the disc is cracked, it may come apart in the drive. I might try a small dab of superglue on the very outside of the crack to hold it together.

2. First pass (runs about 30 minutes).
$ ddrescue -n -b 2048 /dev/sr0   ~/recovered/mystuff.iso 
~/recovered/mystuff.log

3. Mount the image and see how we did.

4. Take a second pass if we need it (about 24 hours).
$ ddrescue -d -b 2048 /dev/sr0  ~/recovered/mystuff.iso 
~/recovered/mystuff.log

5. Take a third pass maybe with the CD/DVD in a different drive (24+ hours).
$ ddrescue -d -r 3 -b 2048 /dev/sr1  ~/recovered/mystuff.iso 
~/recovered/mystuff.log



Monday, November 27, 2017

Wolfenstein: Enemy Territory for WINE

WINE Version
(The native Linux version is here.)
Wolfenstein: Enemy Territory
has always rocked as an on-line game.
Trying to capitalize on their success with the online part of Return to Castle Wolfenstien, they developed an online component for RtCW and farmed out the single-player mode. Turns out, the SP mode sucked, so they ditched that and gave away the online game. The Game's PAK files remained proprietary (as always) and they released the source code for the game engine.

The original release had a Linux version as well as Mac and Windows version and can still be downloaded from SplashDamage. The problem with the Linux version is that Linux changed sound subsystems (OSS, ALSA, PULSEAUDIO) and the sound component of the game is no longer compatible with a modern Linux.

Wolf:ET debuted with a native Linux version that can still be installed, but there have been unofficial game engines that have upped the ante for the game. The original version is available for Linux Mac and Windows from here. Go ahead and download one from there as you will need that to obtain the original game data files, which are copyrighted.

Enemy Territory Ultimate Installer
A batch installer that simplifies the installation of the SplashDamage game and includes updates, popular mods and unofficial maps.

ET:Legacy is an open source project that aims to create a fully compatible client and server. There is an active community. There are native Linux, Mac and Windows game engines available. For testing purposes, I'll be installing the Windows version using Codeweaver's Crossover. The downloads can be found here. A video of gameplay can be found here.

ETXreal uses the enhanced XreaL id Tech 3 GPL engine. The homepage is spartan, but informative. It supports many more choices for video resolution, but does not support the 2560x1080 resolution of my LG 29UM-57-P or the 3840x1024 of my triple-multi-monitor configuration. The homepage offers a great deal of information about setting r_ variables manually. While the project seemed to hold much promise, the project sadly seems stalled 5 years ago.

On the other hand, it is playable. They include the binaries for all supported operating systems in the single 7zip archive. Unpack the p7zip package to extract the contents of the archive to your  home directory. Then it is necessary to find the appropriate binary (it's under /bin in the new etxreal directory you just created) and move it to the game's root directory, the one that contains the /etmain directory. The installer creates a ~/.etxreal directory which is where I prefer to place any custom PK3 files, maps, mods and total conversions. Be aware that ETXreal may not be compatible with all your old mods and you might not be compatible with Wolf:ET or ET-Legacy servers, but with hi-res textures, it sure does look swell and ETXreal has its own servers. There is an active community supporting this game even though development has stalled.

In both cases, you can launch the game from the command line with the full path to the binary, or create a startup script in ~/bin if that is in your path.
Is ~/bin not in your path? Add this to your .bashrc file:
## Add ~/bin_to_my_path
export PATH=$PATH:$HOME/bin

Game Data
For either alternative game engine, you must obtain the original game data from the original release which can be downloaded here. You'll need to copy pak0.pk3, pak1.pk3 and pak2.pk3 from your Wolfenstein: Enemy Territory /etmain directory to the /etmain directory of your alternative game engine.

How to Get the Data Without Installing the Game
The SplashDamage installation file is a Nullsoft Installer self-extracting archive which was determined by running

$ file WolfET_2_60b_custom.exe

Copy the SplashDamage Windows installer to a temporary directory. The files can be extracted into that temp directory by using 7z as follows:

$ 7z x  WolfET_2_60b_custom.exe

You will only need the three *.pk3 files and you can delete all the other files. I suggest that you create an archive of the game data files and save the archive to a safe location so you only need to do the extraction once. Ask me how I know.

Hi-Res Textures
All three versions will benefit from hi-res textures found here. Of course, there are many mods available there and other sites.

There's a discussion about textures and the different games in the series at Reddit.

This page offers some tips and discussion about .cfg tweaks for gameplay

Wide Screen Display
There is a hack to use a custom resolution here, although it should work with Linux also. Essentially, you are passing commands through to the game engine. For windows, you add the commands to the startup shortcut, which is how we will use it with Crossover. The addition will be

+r_mode "-1" +r_customwidth "2560" +r_customheight "1080" +cg_fov "115" +set com_hunkmegs "768" +vid_restart

As an alternative to the console commands, a custom resolutions,  the cg_fov for 16:10 resolutions (i.e. 1440×900, 1680×1050 and 1920×1200) should be 100.39 and for 16:9 (1920×1080) 106.27.

Edit etconfig.cfg in the game directory.
Here is the example for a 2560×1080 resolution:

seta r_mode “-1”
seta r_customwidth “2560”
seta r_customheight “1080”
seta cg_fov “106.27”

MODS
Many mods are available at ModDB, including total conversions. A table of mods compatible with ETlegacy is found here.

Here is a guide on running bots, specifically OmniBOT. Bots are a way to populate a server and play the game. These bots are supported in Doom 3, ET, ET:Fortress, Fortress Forever, Quake 4 and RTCW. The ET OmniBOT HOWTO is here. There is am OmniBOT Mapping HOWTO that teaches you how to add waypoints to maps that do not have them.

RESOURCES

Wolfenstein: Enemy Territor Wiki

Game Manual

ET Console Commands and Cvars

Unofficial Strategy Guide

Map Packs

Does this run in WINE?

SplashDamage Website

SplashDamage Forums

SplashDamage Download

ET:Legacy Homepage

ET:Legacy ABOUT

ET:Legacy  FAQ

ET:Legacy DOWNLOAD

ET:Legacy Forums

ET:Legacy at ModDB

ETXreal Homepage ABANDONED

HDET (High-Definition Enemy Territory)

Widescreen Hack Source

Wolf:ET at PCGamingWiki

Crossfire's ET Tutorial

Sunday, November 26, 2017

Call of Duty: United Offensive

The installation of Call Of Duty: United Offensive should be easier that that of Call of Duty since I could swap out discs. And I say "should" because there's no way to install it since it depends on the un-installable Call of Duty.

Where this all gets fsck'd is that the installer will prompt you for CD2, you can eject CD1 and then successfully mount CD2 as the installer proceeds normally. However, you are then prompted to insert CD1 for a second time. This procedure is part of the stupid Copy Protection scheme where the installer creates the Windows Registry entries, so you can't really skip it, and for whatever reason, Crossover can't accommodate this final swap.

It should be possible to copy both CDs to a directory named "COD" and use the crossover option to treat the directory as the installation media, but that also fails to work.

It should be possible to create a single install DVD from the two CDs, so look here for that. I have not yet attempted this and will post more when I do.


Saturday, October 28, 2017

Getting the Xbox 360 controller to work in WINE Games

This comes from the Crossover Support Forums, contributed by Silviu Cojocaru.

The steps in here should apply to any controller as long as your (linux) system has a driver for it. I'm using an xbox360 controller and it is recognized out of the box in Ubuntu 12.04.

So what's the problem and how can we solve it? Well, the xbox360 controller is an xinput device but wine has implemented support for dinput. The workaround is to use a wrapper that "translates" xinput to dinput. Enter xbox360ce . Here's what to download and how to use it (at least, what worked for me):

I've downloaded these files: x360ce_lib32_r766.zip, x360ce.App-2.1.2.191.zip from this page, getting the appropriate 32- or 64-bit version.

The first zip file contains the libs that actually do the translating and the other is a program that allows you to configure your gamepad (map buttons, joystick axes, d-pad buttons, etc.)

To install the game, you will need to prepare your bottle by installing .NET 3.5 in it for Windows7 and .NET 4.0 for Windows 8-10 in it. There is a crosstie for that. It would be a good idea to add DirectX: Modern to it which also has a crosstie available. Now you can install this game. The installer should supply XNA 4.0. Once that is done it's time to get dirty.

Unpack the zip files into the directory where the game executable resides. Open the bottle manager and go to the Control Panel tab and launch the Game Controllers configuration app. You will see two controller detected. Wait what? Yes. I don't know why. I have disabled one. (Note: after pressing the disable button, the window will not refresh to reflect the change. Click OK and the open the Controller config utility again.)

Using the Run Command button in the bottle manager (make sure the correct bottle is selected) go to the folder where you have unpacked the zips and run x360ce.exe. This will run and prompt you to do some stuff. Do what it tells you. It will try to guess, as best it can the button and joystick axis mappings. It will probably get some right and some wrong. Not a problem. This can be fixed by remapping.

Once you have checked that everything works right, hit the save button. The program might complain that it found no *.ini file and will offer to create one. Do so. It might also complain that the *.ini file does not have the right version. Ignore it.

Hang on, we're still not done. We need one more thing because applications that try to find xinput devices will still not be able to. Notice the xinput1_3.dll file that the program shows in the bottom right corner? We'll add and override in winecfg for it.

So, in the same Control Panel tab launch Wine Configuration and go to the Libraries tab, enter xinput1_3 in the box and then click the Add button. Set it to native.

Click Apply and then OK and you should be done. Try starting your game. You may see the error about the config file that I talked about earlier. That is good, it means the game will use the xinput1_3.dll that we supplied. Hopefully everything works fine for you.

RESOURCES

A PS3 driver, MotionJoy

PS3 Controller in WINE, WINE_GAMING

PS3 Controller in WINE, PlayOnLinux
XBox360cemu.v.3.0

1. Copy dinput8.dll, xinput1_3.dll, xinput9_1_0.dll and xbox360cemu.ini tp the root directory of the game.
2. Install xboxdrv .
3. Run in a terminal:
$ sudo xboxdrv --silent --detach-kernel-driver --trigger-as-button --ui-axismap x2=ABS_Z,y2=ABS_RZ --ui-buttonmap A=BTN_B,B=BTN_X,X=BTN_A,TR=BTN_THUMBL,TL=BTN_MODE,GUIDE=BTN_THUMBR

Xbox 360 Controller Emulator 3.2.9.81


Unreal Tournament 3 Arena for Modern Linux

Unreal Tournament 3 Arena , the successor to Unreal Tournament 2004, was intended to have a Linux release, but that was late arriving. The Linux installer is on DISC3. If you want to run the Linux installer, you have some lying to do.

Mount UT3 DISC3 and change to that directory and 'sudo su' to root. Then enter:
# export SETUP_LIBC=glibc-2.1
# linux32 ./setup.sh


Scroll through the license agreement and agree to it. Since you are running as root, you can install the game in /usr/local. If you want it installed only for your use, change the paths presented to you, like ~/games and ~/bin. Choose the base install and pass on the server install (unless you really want to install the server rather than the client ... but that's another post). Don't go wild and install all the optional drivers (maybe you have a Voodoo video card handy that you want to use, more old-school power to you). Just answer no to that stuff. Why? Why, indeed.

Now you get to read the README. If you have lynx installed, you get to see this. Press q to quit.

Otherwise, you get to read it some other way. Please read it. When you are done, you can launch the game as a regular user via the Desktop icon you just installed, or from a command line by simply typing quake3 in a terminal.

And it doesn't work. The screen resolution is left in some funky low-res state. What to do?

In ~/bin, create a file named restore with the following contents:
#!/bin/shxrandr -s 2560x1080
 Which is my default screen resolution. You'll need to use your own resolution instead, so when your screen resolution is borked, just execute the restore script and it's all good again.
In Conclusion ...
We overcame the problems with the obsolete installer, but running the game is not working due to a rendering issue, and even if it did, the sound won't work.  But contact me if you have found solutions to these issues. The Linux binaries are just old and crusty.

Just use . . .

WINE
The game runs quite well in WINE, PlayOnLinux and Crossover. Use them.

Errata
Just as a curiosity, there are two legendary fan-made files that can no longer be found: FanPack_UT3v1.0 which contains a huge amount of maps, mods and skins, and Vika_ut3.Zip, a very nude female skin.

RESOURCES

UT3 Linux Install HOWTO

UT3 Linux Server HOWTO

Linux Gamers HOWTO

Unreal Tournament 3 HiDef Remake

UT3 Widescreen Gaming at wsgf.org

Unreal Tournament 3 Mods at ModDB