Streamline GPS momentum plugin

This commit is contained in:
2026-06-27 04:36:28 -05:00
parent 83cf10495e
commit 78520ee48f
8 changed files with 176 additions and 6184 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
plugin_dir="$repo_root/red4ext/EdgeWeightGPS"
build_dir="$repo_root/build/red4ext/EdgeWeightGPS-mingw64"
build_dir="$repo_root/build/red4ext/MomentumGPS-mingw64"
sdk_dir="$repo_root/vendor/RED4ext.SDK"
if [[ ! -f "$sdk_dir/include/RED4ext/Api/v1/PluginInfo.hpp" ]]; then
@@ -16,4 +16,4 @@ cmake -S "$plugin_dir" -B "$build_dir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build "$build_dir" --parallel
printf '%s\n' "$build_dir/EdgeWeightGPS.dll"
printf '%s\n' "$build_dir/MomentumGPS.dll"
+3 -7
View File
@@ -3,14 +3,10 @@ set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
game_dir="${CYBERPUNK2077_GAME_DIR:-/var/home/salt/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Cyberpunk 2077}"
plugin_out="$game_dir/red4ext/plugins/EdgeWeightGPS"
plugin_out="$game_dir/red4ext/plugins/MomentumGPS"
dll_path="$("$repo_root/tools/build_red4ext_shim.sh" | tail -n 1)"
mkdir -p "$plugin_out"
install -m 0644 "$dll_path" "$plugin_out/EdgeWeightGPS.dll"
install -m 0644 "$repo_root/presets/momentum/default.bin" "$plugin_out/momentum_weights.bin"
install -m 0644 "$repo_root/presets/solver_weights/vanilla.bin" "$plugin_out/solver_weights.bin"
install -m 0644 "$dll_path" "$plugin_out/MomentumGPS.dll"
printf 'Installed %s\n' "$plugin_out/EdgeWeightGPS.dll"
printf 'Installed %s\n' "$plugin_out/momentum_weights.bin"
printf 'Installed %s\n' "$plugin_out/solver_weights.bin"
printf 'Installed %s\n' "$plugin_out/MomentumGPS.dll"
+5 -7
View File
@@ -3,18 +3,16 @@ set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
timestamp="$(date +%Y%m%d-%H%M%S)"
staging="$repo_root/build/package/EdgeWeightGPS-$timestamp"
staging="$repo_root/build/package/MomentumGPS-$timestamp"
dist_dir="$repo_root/dist"
zip_path="$dist_dir/EdgeWeightGPS-red4ext-$timestamp.zip"
zip_path="$dist_dir/MomentumGPS-red4ext-$timestamp.zip"
dll_path="$("$repo_root/tools/build_red4ext_shim.sh" | tail -n 1)"
plugin_out="$staging/red4ext/plugins/EdgeWeightGPS"
plugin_out="$staging/red4ext/plugins/MomentumGPS"
mkdir -p "$plugin_out" "$dist_dir"
install -m 0644 "$dll_path" "$plugin_out/EdgeWeightGPS.dll"
install -m 0644 "$repo_root/presets/momentum/default.bin" "$plugin_out/momentum_weights.bin"
install -m 0644 "$repo_root/presets/solver_weights/vanilla.bin" "$plugin_out/solver_weights.bin"
install -m 0644 "$repo_root/packaging/EdgeWeightGPS-README.txt" "$plugin_out/README.txt"
install -m 0644 "$dll_path" "$plugin_out/MomentumGPS.dll"
install -m 0644 "$repo_root/packaging/MomentumGPS-README.txt" "$plugin_out/README.txt"
(
cd "$staging"