mxywes / Proton multiplayer desync script
Last active 7 months ago
Linux steam proton multiplayer desync script
I wanted to play Sins of the solar Empire 2 with my friends. Proton and Lutris works great for SP, but MP was broke.
First blocker was forcing the CPU architecture: (you can also edit this via ctrl+shift+s while in game)
The second was that there were desync issues, which the community found and fixed for other games. These desync issues seem to be fairly common with multiplayer games using proton. So you can always try this and copy the backup files back (.bak) if it didn't work. This version adds sha256 checksums of the .exe files. If you run into issues with "command not found", try dos2unix steam_patch_mp_desync.sh then retry.
The below script is a more agnostic version of the original script to be more generic and work with most games by passing the APP ID
chmod +x steam_patch_mp_desync.sh
mxywes / windows one time setup
Last active 8 months ago
powershell -ExecutionPolicy Bypass -NoProfile -Command "iex ((New-Object Net.WebClient).DownloadString('https://gist.mxyw.es/mxywes/4d7dc1880d494d89b85d0c5edc228bae/raw/HEAD/one_time_setup.ps1'))"
| 1 | # Elevate to Administrator if needed |
| 2 | If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { |
| 3 | Start-Process powershell.exe "-ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs |
| 4 | Exit |
| 5 | } |
| 6 | |
| 7 | # Enable TLS 1.2 |
| 8 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
| 9 | |
| 10 | # ----- Download All-in-One Runtime Installer (latest release from GitHub) ----- |
mxywes / Rotate IPv6 addresses each request using a whole IPv6 range
Last active 10 months ago
How to send IPv6 requests with a new IPv6 address for each request on a server with a whole IPv6 range. Source: https://gist.github.com/unixfox/2a9dbcb23d8f69c4582f7c85a849d5cc (by unixfox)
Technique found in https://github.com/Sadzurami/tunnelbroker-proxies/tree/main
Linux setup
- Add
net.ipv6.ip_nonlocal_bind=1to/etc/sysctl.conf - Reload sysctl with
sysctl -p - Find your IPv6 public subnet using
ip -6 a. Example:2a03:b0c0:3:d0::1d4f:1/64 - Execute this command and change
YOURIPV6SUBNETwith the subnet found above:/sbin/ip -6 route add local YOUR_IPV6_SUBNET dev lo