Skip to content

Commit

Permalink
Update installation instructions for git usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Merri committed May 24, 2016
1 parent 190ae2e commit 221ba99
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
/*
!/.gitignore
!/INSTALL.MD
!/README.MD
!/Text
/Text/*
Expand Down
41 changes: 41 additions & 0 deletions 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.
46 changes: 28 additions & 18 deletions 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:

Expand All @@ -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.

0 comments on commit 221ba99

Please sign in to comment.