Difference between revisions of "Red Alert"

From OnnoWiki
Jump to navigation Jump to search
 
(3 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 6: Line 31:
 
  $ cd OpenRA
 
  $ cd OpenRA
  
 
+
Jika git tidak ada, bisa di install menggunakan
Jika got tidak ada, bisa di install menggunakan
 
  
 
  $ sudo apt-get install git-core
 
  $ sudo apt-get install git-core
Line 13: Line 37:
 
Untuk mengcompile OpenRA kita butuh
 
Untuk mengcompile OpenRA kita butuh
  
    mono-gmcs
+
mono-gmcs
    libmono-corlib1.0-cil
+
libmono-corlib1.0-cil
    libmono-winforms2.0-cil
+
libmono-winforms2.0-cil
    libopenal1
+
libopenal1
    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
  
Next you need to install the assemblies of these third party libraries into the global assembly cache that the Mono compiler uses. You can either run the following script or run these command individually (the 'gacutil' program can't handle multiple files at once):
+
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
 
 
Code:
 
  
 
  #!/bin/sh
 
  #!/bin/sh
Line 37: 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
  
Note: You'll need to run the script as an administrator ("root"). If you run these command one per one, it is recommended that you use the 'sudo' application to obtain root privilege.
+
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 47: Line 79:
 
For the Red Alert mod:
 
For the Red Alert mod:
  
 
+
allies.mix
    allies.mix
+
expand2.mix
    expand2.mix
+
hires1.mix
    hires1.mix
+
redalert.mix
    redalert.mix
+
scores.mix
    scores.mix
+
sounds.mix
    sounds.mix
+
conquer.mix
    conquer.mix
+
general.mix
    general.mix
+
interior.mix
    interior.mix
+
russian.mix
    russian.mix
+
snow.mix
    snow.mix
+
temperat.mix
    temperat.mix
 
 
 
 
 
  
 
For the Command & Conquer mod:
 
For the Command & Conquer mod:
  
 
+
cclocal.mix
    cclocal.mix
+
conquer.mix
    conquer.mix
+
desert.mix
    desert.mix
+
general.mix
    general.mix
+
sounds.mix
    sounds.mix
+
speech.mix
    speech.mix
+
temperat.mix
    temperat.mix
+
tempicnh.mix
    tempicnh.mix
+
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.
Line 107: Line 133:
 
==Referensi==
 
==Referensi==
  
 +
* http://openra.res0l.net/get-involved/
 
* http://openra.res0l.net/download
 
* http://openra.res0l.net/download
 
* http://openra.res0l.net/
 
* http://openra.res0l.net/
 
* http://www.sleipnirstuff.com/forum/viewtopic.php?f=82&t=14846
 
* http://www.sleipnirstuff.com/forum/viewtopic.php?f=82&t=14846
 +
* http://openra.res0l.net/packages/cnc-packages.zip

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