From 221ba995a952855b43ea018294830cb122fe706e Mon Sep 17 00:00:00 2001 From: Vesa Piittinen Date: Tue, 24 May 2016 20:17:48 +0300 Subject: [PATCH] Update installation instructions for git usage --- .gitignore | 1 + INSTALL.MD | 41 +++++++++++++++++++++++++++++++++++++++++ README.MD | 46 ++++++++++++++++++++++++++++------------------ 3 files changed, 70 insertions(+), 18 deletions(-) create mode 100644 INSTALL.MD diff --git a/.gitignore b/.gitignore index 6bba56b..14aafb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /* !/.gitignore +!/INSTALL.MD !/README.MD !/Text /Text/* diff --git a/INSTALL.MD b/INSTALL.MD new file mode 100644 index 0000000..e3c094f --- /dev/null +++ b/INSTALL.MD @@ -0,0 +1,41 @@ +## Manual installation via ZIP file + +Locate your `Sid Meier's Civilization 5` user directory. Possible locations: + +- Windows 7, 8, 10: `C:\Users\USERNAME\Documents\My Games\Sid Meier's Civilization 5` +- Windows 7, 8, 10: [Git Bash] `cd ~/Documents/My\ Games/Sid\ Meier's\ Civilization\ 5` +- Mac OS X: `Users/USERNAME/Library/Application Support/Sid Meier's Civilization 5` +- Mac OS X: `cd ~/Library/Application Support/Sid Meier's Civilization 5` + +From there you can find `config.ini`. Locate line 66 which should state: `Language = en_US`. +Replace with `Language = fi_FI`. + +Next you need to copy `Suomi*.xml` files from this repo to the Text directory within the same path as `config.ini`. + +After this the game will boot in Finnish and you can play with other players with no additional DLC or MOD limitations! + + +## Installation using Git (Git Bash on Windows) + +If you do not have Git installed then [go get your copy!](https://git-scm.com/download) (You can use default settings.) + +1. Open command line / Git Bash +2. Move to the Civ 5 user directory: `cd ~/Documents/My\ Games/Sid\ Meier\'s\ Civilization\ 5/` +3. Set language to Finnish: `perl -pi -w -e 's/^Language = en_US/Language = fi_FI/;' config.ini` +4. Now we can copy the files. You can do this in two ways: simple copy, or as a fully working Git clone. + +To copy only the files from Git: + + rm -f Text/* && git clone https://github.com/Merri/civ5suomeksi.git temp && cp -r temp/* ./ && rm -rf temp + +To make it a fully functional Git clone: + + rm -f Text/* && git clone https://github.com/Merri/civ5suomeksi.git temp && mv temp/.git* ./ && cp -r temp/* ./ && rm -rf temp + + +Should anything go wrong you chould be able to recover by writing: + + rm -rf .git + rm -rf temp + +Those remove Git clone and the temp directory if it exists. diff --git a/README.MD b/README.MD index 3bf90fa..0aaebf5 100644 --- a/README.MD +++ b/README.MD @@ -1,28 +1,12 @@ # Civilization V suomeksi! This is Finnish language pack for Sid Meier's Civilization V. +[Installation instructions in English.](https://github.com/Merri/civ5suomeksi/blob/master/README.MD) 2010 - 2016 Vesa Piittinen -## Installation - -Locate your `Sid Meier's Civilization 5` user directory. Possible locations: - -- Windows 7, 8, 10: `C:\Users\USERNAME\Documents\My Games\Sid Meier's Civilization 5` -- Windows 7, 8, 10: [Git Bash] `cd ~/Documents/"My Games"/"Sid Meier's Civilization 5"` -- Mac OS X: `Users/USERNAME/Library/Application Support/Sid Meier's Civilization 5` -- Mac OS X: `cd ~/Library/Application Support/Sid Meier's Civilization 5` - -From there you can find `config.ini`. Locate line 66 which should state: `Language = en_US`. -Replace with `Language = fi_FI`. - -Next you need to copy `Suomi*.xml` files from this repo to the Text directory within the same path as `config.ini`. - -After this the game will boot in Finnish and you can play with other players with no DLC or MOD limitations! - - -## Asennusohjeet +## Asennus ZIP-tiedostosta Selvitä `Sid Meier's Civilization 5` käyttäjähakemisto. Esimerkkejä sijainnista: @@ -37,3 +21,29 @@ Kirjoita tilalle `Language = fi_FI`. Seuraavaksi `Suomi*.xml`-tiedostot tarvitsee kopioida samassa paikassa sijaitsevaan Text-hakemistoon. Tämän jälkeen peli käynnistyy suomeksi ja voit pelata muiden pelaajien kanssa riippumatta heidän pelikielestään! + + +## Asennus käyttäen gittiä ja komentoriviä (Git Bash Windowsissa) + +Jos et ole asentanut gittiä, niin [käy kipaisemassa se itsellesi!](https://git-scm.com/download) (Asennuksen voi tehdä oletusasetuksin.) + +1. Avaa komentorivi (Git Bash) +2. Siirry Civ 5:n käyttäjähakemistoon: `cd ~/Documents/My\ Games/Sid\ Meier\'s\ Civilization\ 5/` +3. Vaihda kieli suomeksi: `perl -pi -w -e 's/^Language = en_US/Language = fi_FI/;' config.ini` +4. Nyt tiedostot voi kopioida. Tämän voi tehdä kahdella tavalla: yksinkertaisena kopiona tai täydellisenä Git-kloonina. + +Jos haluat vain tiedostot: + + rm -f Text/* && git clone https://github.com/Merri/civ5suomeksi.git temp && cp -r temp/* ./ && rm -rf temp + +Jos haluat täyden kloonin (eli tehdä itse muutoksia ja kirjata ne gitillä): + + rm -f Text/* && git clone https://github.com/Merri/civ5suomeksi.git temp && mv temp/.git* ./ && cp -r temp/* ./ && rm -rf temp + + +Asioiden mennessä pieleen pitäisi normaalitilanteeseen päästä tällä: + + rm -rf .git + rm -rf temp + +Nämä poistavat git-kloonin ja temp-hakemiston, mikäli se on jäänyt kummittelemaan.