You will need a copy of Dune 2 to use the program, OpenDUNE is very similar to Dune 2 for MS DOS, here is the OpenDUNE GitHub website:
The only listed dependencies needed for OpenDUNE are sound driver (ALSA, Pulseaudio, OSS) and SDL2, search for these files in the Debian repository, to use the "git clone" command in the terminal, you need to install git:
Here are the instructions to compile OpenDUNE, open the terminal:
Code: Select all
git clone https://github.com/OpenDUNE/OpenDUNE.git
Search for a file called config.lib inside the /OpenDUNE directory, we need to edit the file to remove the "ansi" and "pendantic" segment included in the file, if we did not edit the file the program will not compile successfully, to edit the file use either the "nano" command or any text editor, to open the file with the nano command, write in the terminal:
After opening the config.lib file with the nano command, use the keyboard command Ctrl + w to search for text, we need to find "ansi" and "pendantic," we need to erase lines 742 to 745 if you are using Geany, if you are not using Geany, then here is the segment of the file that needs to be deleted:
if [ "$os" != "TOS" ] && [ "$os" != "DOS" ] && [ $cc_version -lt 70 ] ; then
flags="$flags -ansi -pedantic"
After deleting the segment, save the file then exit, if you have SDL2 installed on the RPI, you should have a file called sdl2-config located in the /usr/bin directory, we will need to include the sdl2-config location after running the "./configure" command, to run the ./configure command, write in the terminal:
Code: Select all
To see a full list of ./configure commands, run:
After using the ./configure command, scroll through all of the terminal text to verify if the ./configure command recognized the audio driver and the SDL2 version, after verifying run the "make" command, write in the terminal:
Compiling should take 1 - 2 minutes, this program is very lightweight, after compiling the source code, you will need to copy your Dune 2 .pak files to the /OpenDUNE/bin/data directory, before running the "opendune" program, you need to edit the opendune.ini.sample file located in the /OpenDUNE/bin directory, you can edit the file using the nano command or text editor, to edit with the nano command, write in the terminal:
After opening the opendune.ini.sample file, edit the file using the README.txt file located in the /OpenDUNE directory as a reference, the README.txt file lists all of the configuration commands used in the opendune.ini file, after editing the opendune.ini.sample file, save the file as opendune.ini before exiting the text editor.
You can run the opendune program using the command:
There are no configuration options inside the game, to change the game configuration options you need to edit the opendune.ini file, you can't adjust the screen resolution or the window size as far as I know, you can run this game with the Opengl Full KMS drivers enabled.
Update May 29 2019:
-Removed the sudo command from code and from explanations, was used in excess
-Added miscellaneous improvements