Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README and eu4 changes for different directory structures. #42

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ Works with EU4, HOI4, Stellaris and CK2.
Note: If you get SSH errors, make sure your gitlab (not github!) keys are in
order.


```
$ git submodule update --init --recursive
```
Follow the link below for a guide on setting up your gitlab shh key:

https://docs.gitlab.com/ee/user/ssh.html#adding-an-ssh-key-to-your-gitlab-account


# 2- Add the game

Expand All @@ -20,10 +25,10 @@ First run the following
$ ./add "<game name>" "<path to game>"
```

where `"<game name>"` is lowercase. E.g.
where `"<game name>"` is lowercase and `"<path to game>"` is the main install directory. E.g.

```
$ ./add "hoi4" "$(pwd)/hoi4_local"
$ ./add "hoi4" "/path/to/your/Hearts-of-Iron-IV"
```

Then select the game you added:
Expand All @@ -46,6 +51,7 @@ Then run this script:
```
$ ./install_copy
```
Make sure not to run as sudo or root for the script to work properly.

# 3b- Non-steam Users

Expand Down Expand Up @@ -124,3 +130,14 @@ I personally never cared all too much for achievements, so so be it.

This comes with some benefits, of course. Now Steam is not required to run in
the background!


# I am having issues running the installation!

First, make sure to check all errors when running; they provide the best clues to your issue. Here are a few suggestions on commonly encountered errors:
###### "libc.so.6" errors
- Make sure your `libc.so.6` file is present in your `/usr/lib/` directory, and that the `hookey/app/${APP}/run` file is correctly pointing to the correct lib.so.6 file.
###### "Launcher not found, retrying" error
- Ensure the variable `LAUNCHER_API_LOC` in your `hookey/app/${APP}/common` is pointing to the correct location for your paradoxlauncher, and that the version is correct.
###### "protoc and make" error
- Make sure to install the protobuf-compiler library using `sudo apt-get install protobuf-compiler`
7 changes: 6 additions & 1 deletion apps/eu4/common
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ vars[LAUNCHER_ROOT]=$'"$HOME/.paradoxlauncher"'
var_types[LAUNCHER_ROOT]="eval"
var_deps[LAUNCHER_ROOT]=$'()'

vars[LAUNCHER_API_LOC]=$'"${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app.asar.unpacked/dist/main"'
vars[LAUNCHER_API_LOC]=""
if [[ ! -d "${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app/dist/main" ]]; then
vars[LAUNCHER_API_LOC]=$'"${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app.asar.unpacked/dist/main"'
else
vars[LAUNCHER_API_LOC]=$'"${LAUNCHER_ROOT}/${LAUNCHER_VERSION}/resources/app/dist/main"'
fi
var_types[LAUNCHER_API_LOC]="eval"
var_deps[LAUNCHER_API_LOC]=$'(LAUNCHER_ROOT LAUNCHER_VERSION)'

Expand Down
19 changes: 18 additions & 1 deletion apps/eu4/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,21 @@ source ./common
fail_if_not_populated APP_ROOT

cd "${APP_ROOT}"
LD_PRELOAD="/usr/lib/libc.so.6" ./dowser

LOC=$(find /usr/lib -name "libc.so.6")

if [[ -z "$LOC" ]]; then
LOC=$(find /lib -name "libc.so.6");
if [[ -z "$LOC" ]]; then
echo "ERROR: libc.so.6 file not found in standard directories"
fi
fi

# incase multiple instances found
while read -r line; do
# can't use 32bit due to error
if [[ ! "$line" =~ "i386" ]]; then
LD_PRELOAD="$LOC" ./dowser;
exit;
fi
done <<< $LOC