Difference between revisions of "Red Alert"

From OnnoWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
OpenRA is a Libre/Free Real Time Strategy game engine supporting early Westwood games like Command & Conquer and Command & Conquer: Red Alert.
 
OpenRA is a Libre/Free Real Time Strategy game engine supporting early Westwood games like Command & Conquer and Command & Conquer: Red Alert.
 +
 +
 +
==Install Snap==
 +
 +
sudo apt update
 +
sudo apt -y install snapd
 +
sudo snap install openra
 +
 +
==Install .deb==
 +
 +
Install dependency
 +
 +
sudo apt-get install libmono-i18n2.0-cil
 +
 +
sudo dpkg -i openra_release.20130514_all.deb
 +
 +
Jalankan OpenRA
 +
 +
openra
 +
 +
akan di download content RA sekitar 10MByte-an
 +
 +
 +
==Compile dari Source Code==
 +
  
 
Download source code
 
Download source code
Line 18: Line 43:
 
  libsdl1.2-dev
 
  libsdl1.2-dev
 
  libfreetype6 or libfreetype6-dev
 
  libfreetype6 or libfreetype6-dev
 +
 +
 +
mono-runtime
 +
mono-gmcs
 +
freetype
 +
libmono-corlib1.0-cil
 +
libmono-winforms2.0-cil
 +
libopenal1
 +
libsdl1.2-dev
 +
nvidia-cg-toolkit
  
 
Install dependency menggunakan perintah
 
Install dependency menggunakan perintah
 
 
  sudo apt-get install mono-gmcs freetype libmono-corlib1.0-cil \
+
  sudo apt-get install mono-gmcs \
  libmono-winforms2.0-cil libopenal1 libsdl1.2-dev
+
  libmono-winforms2.0-cil libopenal1 libsdl1.2-dev \
 +
nvidia-cg-toolkit mono-runtime
  
 
Kita perlu menginstal assembly dari library third party untuk masuk ke global assemblu cache menggunakan mono compiler. Kita dapat menggunakan script berikut atau menjalankannya satu per satu
 
Kita perlu menginstal assembly dari library third party untuk masuk ke global assemblu cache menggunakan mono compiler. Kita dapat menggunakan script berikut atau menjalankannya satu per satu
Line 32: Line 68:
 
  gacutil -i thirdparty/Tao/Tao.Sdl.dll
 
  gacutil -i thirdparty/Tao/Tao.Sdl.dll
 
  gacutil -i thirdparty/Tao/Tao.FreeType.dll
 
  gacutil -i thirdparty/Tao/Tao.FreeType.dll
  gacutil -i thirdparty/WindowsBase.dll
+
  # gacutil -i thirdparty/WindowsBase.dll
  
 
kita perlu menjnalankan script tersebut sebagai administrator (root). JIka kita menjalankannya satu per satu sebaiknya di tambahkan 'sudo' di awalnya.
 
kita perlu menjnalankan script tersebut sebagai administrator (root). JIka kita menjalankannya satu per satu sebaiknya di tambahkan 'sudo' di awalnya.
  
 
Alternatively, you can copy the dll’s into the same directory as OpenRa.Game.exe.
 
Alternatively, you can copy the dll’s into the same directory as OpenRa.Game.exe.
 +
sudo apt-get install libmono-i18n2.0-cil
  
 
Once you have copied the following 'MIX' file packages into the appropriate directories (mods/*/packages), you're ready to compile (aka "build"):
 
Once you have copied the following 'MIX' file packages into the appropriate directories (mods/*/packages), you're ready to compile (aka "build"):
Line 67: Line 104:
 
  updatec.mix
 
  updatec.mix
 
  winter.mix
 
  winter.mix
 
 
  
 
The size should be around ~20 MB if you download a stripped (no audio and videos) version of these files. You can download these for C&C here and for RA here.
 
The size should be around ~20 MB if you download a stripped (no audio and videos) version of these files. You can download these for C&C here and for RA here.

Latest revision as of 03:20, 5 December 2021

OpenRA is a Libre/Free Real Time Strategy game engine supporting early Westwood games like Command & Conquer and Command & Conquer: Red Alert.


Install Snap

sudo apt update
sudo apt -y install snapd
sudo snap install openra

Install .deb

Install dependency

sudo apt-get install libmono-i18n2.0-cil
sudo dpkg -i openra_release.20130514_all.deb

Jalankan OpenRA

openra

akan di download content RA sekitar 10MByte-an


Compile dari Source Code

Download source code

$ git clone git://github.com/chrisforbes/OpenRA.git
$ cd OpenRA	

Jika git tidak ada, bisa di install menggunakan

$ sudo apt-get install git-core	

Untuk mengcompile OpenRA kita butuh

mono-gmcs
libmono-corlib1.0-cil
libmono-winforms2.0-cil
libopenal1
libsdl1.2-dev
libfreetype6 or libfreetype6-dev


mono-runtime
mono-gmcs
freetype
libmono-corlib1.0-cil
libmono-winforms2.0-cil
libopenal1
libsdl1.2-dev
nvidia-cg-toolkit

Install dependency menggunakan perintah

sudo apt-get install mono-gmcs \
libmono-winforms2.0-cil libopenal1 libsdl1.2-dev \
nvidia-cg-toolkit mono-runtime

Kita perlu menginstal assembly dari library third party untuk masuk ke global assemblu cache menggunakan mono compiler. Kita dapat menggunakan script berikut atau menjalankannya satu per satu

#!/bin/sh
gacutil -i thirdparty/Tao/Tao.Cg.dll
gacutil -i thirdparty/Tao/Tao.OpenGl.dll
gacutil -i thirdparty/Tao/Tao.OpenAl.dll
gacutil -i thirdparty/Tao/Tao.Sdl.dll
gacutil -i thirdparty/Tao/Tao.FreeType.dll
# gacutil -i thirdparty/WindowsBase.dll

kita perlu menjnalankan script tersebut sebagai administrator (root). JIka kita menjalankannya satu per satu sebaiknya di tambahkan 'sudo' di awalnya.

Alternatively, you can copy the dll’s into the same directory as OpenRa.Game.exe. sudo apt-get install libmono-i18n2.0-cil

Once you have copied the following 'MIX' file packages into the appropriate directories (mods/*/packages), you're ready to compile (aka "build"):

For the Red Alert mod:

allies.mix
expand2.mix
hires1.mix
redalert.mix
scores.mix
sounds.mix
conquer.mix
general.mix
interior.mix
russian.mix
snow.mix
temperat.mix

For the Command & Conquer mod:

cclocal.mix
conquer.mix
desert.mix
general.mix
sounds.mix
speech.mix
temperat.mix
tempicnh.mix
updatec.mix
winter.mix

The size should be around ~20 MB if you download a stripped (no audio and videos) version of these files. You can download these for C&C here and for RA here.

If you want to use the complete, non-strippedl MIX files, you'll need to install the game and then copy these files over from the installed directory plus the game CDs. You can download all the CD (and expansions) ISOs legally:

Command & Conquer Full Game Red Alert Full game

Note that both games' installers are 16-bit so they don't run under a 64-bit operating system, the C&C download link contains a modified 32-bit installer. To install RA1, use the Red Alert Setup Manager v0.98.

When you're done copying the MIX files to the correct folder, you'll only need to type

Code:

$ make all	


and pray that it works. To actually play the game you'll need the following dependencies:


   libglfw2
   libmono-* (Note: you dont need all of them, but it works with all of them)
   libopenal1
   mono-runtime



Referensi