Skip to content

Commit

Permalink
preserve sfall scripts, ref BGforgeNet/Fallout2_Restoration_Project#59
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Jul 19, 2020
1 parent 243578a commit 772c9b1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion extra/publish/sfall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ sfall_url="https://sourceforge.net/projects/sfall/files/sfall/sfall_$sfall_versi

cd "$release_dir"
wget -nv "$sfall_url" -O sfall.7z
7zr x sfall.7z
files="
ddraw.dll
ddraw.ini
sfall.dat
sfall-mods.ini
translations
"
for f in $files; do
7zr x sfall.7z "$f"
done
7zr e sfall.7z data/scripts
rm -f sfall.7z

# uncomment ini settings to preserve options' placement in ddraw.ini
Expand Down
7 changes: 7 additions & 0 deletions release/upu-install.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set "bdir=backup\upu"
set "scripts_dir=data\scripts"

if not exist %bdir% mkdir %bdir%

Expand All @@ -14,6 +15,12 @@ move /y %bdir%\data\*.txt data\
move /y %bdir%\data\*.gcd data\
move /y %bdir%\data\sound\music data\sound\

:: sfall scripts
mkdir %scripts_dir%
move /y gl_ammomod.int %scripts_dir%\
move /y gl_highlighting.int %scripts_dir%\
move /y gl_partycontrol.int %scripts_dir%\

:: sound path fix
initool.exe s fallout2.cfg sound music_path1 data\sound\music\ > tmp.cfg
initool.exe s tmp.cfg sound music_path2 sound\music\ > tmp2.cfg
Expand Down
11 changes: 11 additions & 0 deletions release/upu-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ for i in $(ls data/sound | grep -vi "^music$"); do
mv data/sound/"$i" "$bdir"/data/sound/
done

# sfall mods
mkdir -p data/scripts
scripts="
gl_ammomod.int
gl_highlighting.int
gl_partycontrol.int
"
for f in $scripts; do
mv "$f" data/scripts/
done

# sound path fix
rm -f camlrt.dll initool.exe
cp fallout2.cfg "$bdir"/
Expand Down

0 comments on commit 772c9b1

Please sign in to comment.