⬆️ ⬇️

Running Return to Castle Wolfenstein on Linux

Not so long ago, the code of the glorious game Return to Castle Wolfenstein from the legendary idsoftware was opened under the GPL license . This is so, by the way.





And after passing the exam in physics, I wanted to get some rest. I decided to play RTCW. As it turned out, running the game under Linux is more than realistic.



(Under the heading “Express installation”, there is a sequence of commands (for the Debian-family OS) without explanation - for those who do not want to read a lot of text. The full success of this method is not guaranteed).

')

Attention! The article assumes the presence of the basic skills of working with the terminal Linux.



Someone TTimo from idsoftware posted a FAQ for running RTCW 1.41 on Linux.



For a successful launch, we need:



Now in order



Game disc



It is assumed that you have a disc with the game Return to Castle Wolfenstein. From it, we need only files with resources: mp_pak0.pk3, mp_pak1.pk3, mp_pak2.pk3, pak0.pk3, sp_pak1.pk3, sp_pak2.pk3.



Linux installation file



The file is on the ftp server idsoftware . But from there it was shaking unstably: the speed grew and fell. Therefore, just in case, uploaded to the dropbox . It would be nice if someone mirrored in their public repository.



Libstdc ++ 2.10-glibc2.2 library



Version 2.10 of the library is considered obsolete, therefore it is removed from the repositories. (At the time of writing this article in the libstdc ++ repositories version 6-4.3). But the old version is perfectly googled:



For other cases, there is a valid alternative .



Installation



If the necessary ingredients are already on hand, proceed directly to the installation of the game.



Create the necessary folder for the game:

Copy Source | Copy HTML sudo mkdir /usr/ local /games/wolfenstein/ sudo mkdir /usr/ local /games/wolfenstein/main
  1. Copy Source | Copy HTML sudo mkdir /usr/ local /games/wolfenstein/ sudo mkdir /usr/ local /games/wolfenstein/main
  2. Copy Source | Copy HTML sudo mkdir /usr/ local /games/wolfenstein/ sudo mkdir /usr/ local /games/wolfenstein/main




Resource Installation:

Copy Source | Copy HTML
  1. sudo cp mp_pak0.pk3 mp_pak1.pk3 mp_pak2.pk3 pak0.pk3 sp_pak1.pk3 sp_pak2.pk3 / usr / local / games / wolfenstein / main /




Installing the libstdc ++ 2.10-glibc2.2 Library

Copy Source | Copy HTML
  1. sudo dpkg -i libstdc ++ 2 . 10 -glibc2.2_2. 95 4 -24_i386.deb




Game installation:

Copy Source | Copy HTML
  1. sudo chmod + x wolf-linux- 1 .41b.x86.run
  2. sudo ./wolf-linux- 1 .41b.x86.run


ATTENTION! If the installation stops with the text "Extraction failed" - do not panic - the solution to the problem is below under the heading "Solving some problems."



In case of successful unpacking, the pseudographic installer will start. We pass standard steps.



The game is started by the teams:

Copy Source | Copy HTML
  1. wolfsp


and

Copy Source | Copy HTML
  1. wolfmp


for single player and multiplayer, respectively.



ATTENTION! If there is no sound in the game - do not panic - the solution to the problem below is entitled "Solving some problems."



Solving some problems



Extraction failed



They say the reason is that / tmp, where unpacking is performed, is not rubber. (And indeed). To solve the problem, launch the installer with the --target / custom / temp / folder key, where / custom / temp / folder is any folder that will be used to decompress temporary files. For example:

Copy Source | Copy HTML
  1. sudo ./wolf-linux- 1 .41b.x86.run --target / media / mydisk




No sound



Add the following line to the executable / usr / local / games / wolfenstein / wolfsp:

Copy Source | Copy HTML
  1. echo "wolfsp.x86 0 0 direct" | sudo tee / proc / asound / card0 / pcm0p / oss


before

Copy Source | Copy HTML
  1. exec ./wolfsp.x86 "$ @"




Please note that when you start the game you will need to enter a password (so the question is partially open). If you want to start the game not from the terminal, but from the menu, for example, use gksudo instead of sudo:

Copy Source | Copy HTML
  1. echo "wolfsp.x86 0 0 direct" | gksudo tee / proc / asound / card0 / pcm0p / oss




If there is still no sound, try installing the oss-compact package:

Copy Source | Copy HTML
  1. sudo apt-get install oss-compact




Express installation



(go to the folder where you copied the following resource files from the disk:

mp_pak0.pk3, mp_pak1.pk3, mp_pak2.pk3, pak0.pk3, sp_pak1.pk3, sp_pak2.pk3)



Copy Source | Copy HTML
  1. wget http: //au.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/libstdc++2.10-glibc2.2_2.95.4-24_i386.deb
  2. wget ftp: //ftp.idsoftware.com/idstuff/wolf/linux/wolf-linux-1.41b.x86.run
  3. sudo su
  4. mkdir / usr / local / games / wolfenstein /
  5. mkdir / usr / local / games / wolfenstein / main
  6. cp mp_pak0.pk3 mp_pak1.pk3 mp_pak2.pk3 pak0.pk3 sp_pak1.pk3 sp_pak2.pk3 / usr / local / games / wolfenstein / main /
  7. dpkg -i libstdc ++ 2 . 10 -glibc2.2_2. 95 4 -24_i386.deb
  8. chmod + x wolf-linux- 1 .41b.x86.run
  9. ./wolf-linux- 1 .41b.x86.run
  10. exit
  11. wolfsp




Finally



If you need more information - refer to the "official" FAQ and installation instructions .



By the way, on my Asus EeePC 901 netbook, the game works great with maximum settings.

Source: https://habr.com/ru/post/111929/



All Articles