Skip to content

Commit 48774b3

Browse files
authored
Merge pull request #434 from merll002/patch-1
Create Linux (Lutris) install guide and automatic startup script
2 parents 20c7492 + 6eea425 commit 48774b3

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
run: cargo build --release
5555
working-directory: ./noita-proxy
5656

57+
- name: Copy lutris start script to target
58+
run: cp scripts/start-linux.sh target/start-linux.sh
59+
5760
- name: Create archives
5861
run: python scripts/ci_make_archives.py linux
5962

@@ -126,4 +129,4 @@ jobs:
126129
with:
127130
#draft: true
128131
artifacts: "*.zip"
129-
bodyFile: last_release_notes.md
132+
bodyFile: last_release_notes.md

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Then, start Noita, and enable the mod.
3434

3535
Now you're ready to start a server and have fun!
3636

37-
### Installation MacOs (provided by @Ownezx and @Roenalt)
37+
### Installation on MacOS (provided by @Ownezx and @Roenalt)
3838

3939
1. Install a GOG copy of Noita using [portingkit](https://www.portingkit.com/) by following the guide given directly on the Noita entry page on portingkit with a few specific options in the "Advance Settings" step:
4040
1. Set the Engine to "WS12WineKegworks10.0-battle.net"
@@ -47,6 +47,15 @@ Now you're ready to start a server and have fun!
4747

4848
Note: The proxy must be launched via terminal with the command above every time you want to play multiplayer.
4949

50+
## Installation on Linux with Lutris (provided by @merll002)
51+
52+
1. Install the GOG version of Noita through the lutris game installer:
53+
<img width="596" height="64" alt="image" src="https://github.com/user-attachments/assets/dfc2f415-1557-4716-b3e2-c62aae941344" />
54+
2. Navigate to the directory where the proxy was downloaded
55+
3. Run the proxy by typing `./start.sh`
56+
4. Enable the mod (refer to main installation instructions)
57+
5. Done!
58+
5059
## Connect using Steam
5160

5261
In the Proxy window, click on "Create Lobby". Then, "Save lobby ID to clipboard". Send that ID to your friends, who can then *copy* it and press "Connect to lobby in clipboard".
@@ -84,14 +93,14 @@ There are 11 global perks:
8493
[The mods listed here](https://docs.google.com/spreadsheets/d/1nMdqzrLCav_diXbNPB9RgxPcCQzDPgXdEv-klKWJyS0) have been tested by the community, it is publically editable so please add any untested mod with your findings
8594

8695

87-
## Cli connect
96+
## CLI connect
8897

89-
can also connect via cli, just run `noita_proxy --lobby [steam_code/ip and port]`
98+
You can also connect via cli, just run `noita_proxy --lobby [steam_code/ip and port]`
9099

91100

92-
## Cli host
101+
## CLI host
93102

94-
can also host via cli, just run `noita_proxy --host [steam/port]`, "--host steam" will host a steam game and "--host 5123" or any port will host via ip at that port
103+
You can also host via cli, just run `noita_proxy --host [steam/port]`, "--host steam" will host a steam game and "--host 5123" or any port will host via ip at that port
95104

96105
## Connecting via steam without steam version of game
97106

scripts/start-linux.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
if not pidof steam >/dev/null
4+
then
5+
echo "Steam API is not available. If you want to play without port forwarding, Steam needs to be running."
6+
read -rp "Do you want to start it now? [y/n] " choice
7+
choice="${choice,,}"
8+
if [ "$choice" = "y" ] || [ "$choice" = "yes" ]
9+
then
10+
nohup steam >/dev/null 2>&1 &
11+
read -rp "Started Steam. Press enter when it has fully initialised..."
12+
else
13+
echo "Running without Steam..."
14+
fi
15+
fi
16+
ID=$(lutris --list-games 2>&1 | grep Noita | awk -F'|' '{ if (length($1) >= 2) print substr($1, length($1)-1, 1) }')
17+
18+
echo "Noita Lutris instance found with ID: $ID"
19+
echo "Starting proxy..."
20+
21+
chmod +x noita_proxy.x86_64
22+
23+
LUTRIS_SKIP_INIT=1 ./noita_proxy.x86_64 --exe-path "/home/$USER/Games/gog/noita/drive_c/GOG Games/Noita/noita.exe" --launch-cmd "lutris lutris:rungameid/$ID"
24+

0 commit comments

Comments
 (0)