Revision Difference
proton#548902
<cat>Play.Intro</cat>
<title>Proton</title>
# Proton
All information regarding running and developing S&Box on Linux will described here.
# Running
Steam > Library > Right Click S&Box > Click Properties
<upload src="9831e/8d9d38bda11273e.png" size="36050" name="asdf.png" />
Compatibility > Click Force the use of a specific Steam Play compatibility tool > Select Proton Experimental
Currently `Proton Experimental` works best, if this doesn't work try a different version.
<upload src="9831e/8d9d38c4b3de597.png" size="107372" name="image.png" />
You will need to use this one of these methods to be able to play in any map on Linux
```
Temporary method:
sudo sysctl -w vm.max_map_count=16777216
Permanent method:
sudo bash -c 'echo "\nvm.max_map_count = 16777216\n" > /etc/sysctl.d/20-sbox-max_map_count.conf && sysctl --system'
```
⤶
Warnings:⤶
- Currently, games that uses WebSockets will not work and crash s&box.⤶
⤶
<warning>Currently, games that uses WebSockets will not work and crash s&box.</warning>⤶
# Developing
## Creating your first addon
```
cd ~/.local/share/Steam/steamapps/common/sbox/addons
git clone https://github.com/Facepunch/sbox-minimal.git my-addon
cd my-addon
rm -rf .git
```
## sbox-dev
At the time of writing *(Jan 2022)* you can launch s&box development executable but it is very buggy and is known to crash randomly.
Steam > Library > Right Click S&Box > Click Properties > General > Add `-tools` to Launch Options
<upload src="9831e/8d9d38d29c48c70.png" size="146265" name="image.png" />