No Description

goldenboy313 bb9db8178d Update 'plans' 18 minutes ago
emulation 14ad842f58 Update 'emulation/start.sh' 1 week ago
native 3b1ea0d128 Update 'native/start.sh' 3 days ago
tools 5f06c8a61b Delete 'tools/bindtointerface/readme.md' 1 week ago
wine 0f2d699dd7 Update 'wine/start.sh' 2 hours ago
LICENSE 5a914f47d1 Add LICENSE 4 months ago
desktop.sh efffcde65d Update 'desktop.sh' 2 weeks ago
plans bb9db8178d Update 'plans' 18 minutes ago
readme.md 424888f8c9 Update 'readme.md' 5 days ago

readme.md

Modules

# Edit a specific line of a file
sed -i "9s/.*/Resolution $RESOLUTION/" "foo.txt"

# Sed array use
LIST=(5 16 17 18 19 37 39 44)

for i in "${LIST[@]}"; do
sed -i "${i}s+/+\\\\\\\+g" "foo.txt"
done

# DOSBOX
exec dosbox -conf "dosboxULTIMA1.conf" -conf "dosboxULTIMA1_single.conf" -noconsole -c "exit"

# Install mono
[ ! -f "$PWD/game/wine-mono.msi" ] && echo "wine-mono.msi not found, downloading" && curl -L "$(curl -s https://api.github.com/repos/madewokherd/wine-mono/releases/latest | awk -F '["]' '/"browser_download_url":/ && /.msi/ {print $4}')" -o $PWD/game/wine-mono.msi || echo "wine-mono.msi found"
[ ! -d "$PREFIX/drive_c/windows/mono" ] && echo "wine-mono is not installed, installing now" && "$WINE" msiexec /i "$PWD/game/wine-mono.msi" || echo "wine-mono is installed"

# Install and auto-update vkd3d
export VKD3D_DEBUG=none; export VKD3D_SHADER_DEBUG=none; VKD3D="$(curl -s https://api.github.com/repos/HansKristian-Work/vkd3d-proton/releases/latest | awk -F '["]' '/"browser_download_url":/ {print $4}')"; VKD3DVER="$(curl -s https://api.github.com/repos/HansKristian-Work/vkd3d-proton/releases/latest | awk -F '["/]' '/"browser_download_url":/ {print $11}' | cut -c 2-)"; SYSVKD3D=$(command -v setup_vkd3d_proton 2>/dev/null); SYSVKD3DVER=$(pacman -Qi vkd3d-proton-bin 2>/dev/null | awk -F": " '/Version/ {print $2}' | awk -F"-" '{ print $1 }')
install_vkd3d() { [ -n "$SYSVKD3D" ] && echo "installing vkd3d from system" && $WINE wineboot -i && wineserver -w && $SYSVKD3D install && echo "$SYSVKD3DVER" > "$PWD/game/prefix/.sysvkd3d" && wineserver -w; [ -z "$SYSVKD3D" ] && echo "installing vkd3d from github" && $WINE wineboot -i && wineserver -w && cd "$PWD/game" && curl -L "$VKD3D" -o vkd3d.tar.zst && tar -xf vkd3d.tar.zst && cd "vkd3d-proton-${VKD3DVER}" && ./setup_vkd3d_proton.sh install && cd .. && echo "$VKD3DVER" > prefix/.vkd3d && wineserver -w && rm -rf "vkd3d.tar.zst" "vkd3d-proton-${VKD3DVER}" && cd ..; }
[[ ! -f "$PWD/game/prefix/.vkd3d" && ! -f "$PWD/game/prefix/.sysvkd3d" ]] && install_vkd3d || echo "vkd3d is installed"
[[ -f "$PWD/game/prefix/.sysvkd3d" && "$(cat "$PWD/game/prefix/.sysvkd3d")" != "$SYSVKD3DVER" ]] && echo "updating vkd3d from system" && install_vkd3d
[[ -f "$PWD/game/prefix/.vkd3d" && -n "$VKD3DVER" && "$VKD3DVER" != "$(awk '{print $1}' "$PWD/game/prefix/.vkd3d")" ]] && echo "newer vkd3d version found, installing" && install_vkd3d

#### DXVK-Async
export DXVK_ASYNC=1; export DXVK_FRAME_RATE=0; export DXVK_LOG_PATH=none; export DXVK_LOG_LEVEL=none; DXVK_ASYNC_VER="$(curl -s https://api.github.com/repos/Sporif/dxvk-async/releases/latest | awk -F '["/]' '/"browser_download_url":/ {print $11}')";
install_dxvk-async() { [ ! -f "dxvk-async-$DXVK_ASYNC_VER.tar.gz" ] && curl -LO "https://github.com/Sporif/dxvk-async/releases/download/$DXVK_ASYNC_VER/dxvk-async-$DXVK_ASYNC_VER.tar.gz"; tar -xf "dxvk-async-$DXVK_ASYNC_VER.tar.gz" && chmod +x "dxvk-async-$DXVK_ASYNC_VER/setup_dxvk.sh" && $WINE wineboot -i && wineserver -w && "dxvk-async-$DXVK_ASYNC_VER/setup_dxvk.sh" install && echo "$DXVK_ASYNC_VER" > "$WINEPREFIX/.dxvk_async" && wineserver -k; rm "dxvk-async-$DXVK_ASYNC_VER.tar.gz"; rm -r "dxvk-async-$DXVK_ASYNC_VER"; }
[[ ! -f "$PWD/game/prefix/.dxvk_async" ]] && install_dxvk-async || echo "dxvk-async is installed"
[[ -f "$PWD/game/prefix/.dxvk_async" && -n "$DXVK_ASYNC_VER" && "$DXVK_ASYNC_VER" != "$(awk '{print $1}' "$PWD/game/prefix/.dxvk_async")" ]] && echo "newer dxvk version found, installing" && install_dxvk-async

#### Add text to .reg file or anything else.
echo '

[Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Uplay] 1629462334
#whatever' | tee -a /whatever

# Desktop res
export RESOLUTION="$(xrandr | awk -F '[ , ]' '/current/ {print $9$10$11}')"
exec "$WINE" explorer /desktop=Game,"$RESOLUTION" "$EXE"

ZSTD Compression

tar -cvf Game.tar Game --owner=0 --group=0
pzstd Game.tar -o Game.tar.zst -p 4 (number of cpu threads, edit to your liking) --ultra -22

Trackers

udp://tracker.leechers-paradise.org:6969/announce

udp://tracker.opentrackr.org:1337/announce

udp://tracker.zer0day.to:1337/announce

udp://eddie4.nl:6969/announce

udp://46.148.18.250:2710

udp://opentor.org:2710

http://tracker.dler.org:6969/announce

udp://9.rarbg.me:2730/announce

udp://9.rarbg.to:2770/announce

udp://tracker.pirateparty.gr:6969/announce

http://retracker.local/announce

http://retracker.ip.ncnet.ru/announce

udp://exodus.desync.com:6969/announce

udp://ipv4.tracker.harry.lu:80/announce

udp://open.stealth.si:80/announce

udp://coppersurfer.tk:6969/announce