Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Spookbuster committed Jan 29, 2024
1 parent 7a26865 commit 47876e6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 56 deletions.
57 changes: 19 additions & 38 deletions bats/file_operations.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,8 @@ set /A use_new_sdl2=0

@echo off
color 3
cd ..
if not exist tf (
echo ERROR: Incorrect directory placement! This file must be placed in 'Team Fortress 2\Vusaline'!
pause
exit 3
)
if exist tf\cfg\user\autoexec.cfg (
move /y tf\cfg\user\autoexec.cfg tf\cfg\autoexec2.cfg
) else (
move /y tf\cfg\autoexec.cfg tf\cfg\autoexec2.cfg
)
rd /s /q tf\cfg\user

cd bin
cd ..\bin
move /y bugreporter.dll bugreporter.dll.disabled
move /y bugreporter_filequeue.dll bugreporter_filequeue.dll.disabled
move /y bugreporter_public.dll bugreporter_public.dll.disabled
Expand Down Expand Up @@ -96,47 +84,40 @@ if %disable_voicelines%==0 (
move /y mssmp3.asi.disabled mssmp3.asi
)

if %use_new_sdl2%==1 (
move /y SDL2.dll SDL2.dll.disabled
)
if %use_new_sdl2%==0 (
move /y SDL2.dll.disabled SDL2.dll
)

cd ..\hl2
move /y hl2_sound_vo_english_dir.vpk hl2_sound_vo_english_dir.vpk.disabled
move /y hl2_sound_vo_english_004.vpk hl2_sound_vo_english_004.vpk.disabled
move /y hl2_sound_vo_english_003.vpk hl2_sound_vo_english_003.vpk.disabled
move /y hl2_sound_vo_english_002.vpk hl2_sound_vo_english_002.vpk.disabled
move /y hl2_sound_vo_english_001.vpk hl2_sound_vo_english_001.vpk.disabled
move /y hl2_sound_vo_english_000.vpk hl2_sound_vo_english_000.vpk.disabled

if %disable_hl2_sounds%==1 (
cd ..\hl2
move /y hl2_sound_misc_000.vpk hl2_sound_misc_000.vpk.disabled
move /y hl2_sound_misc_001.vpk hl2_sound_misc_001.vpk.disabled
move /y hl2_sound_misc_002.vpk hl2_sound_misc_002.vpk.disabled
move /y hl2_sound_misc_dir.vpk hl2_sound_misc_dir.vpk.disabled
move /y hl2_sound_vo_english_000.vpk hl2_sound_vo_english_000.vpk.disabled
move /y hl2_sound_vo_english_001.vpk hl2_sound_vo_english_001.vpk.disabled
move /y hl2_sound_vo_english_002.vpk hl2_sound_vo_english_002.vpk.disabled
move /y hl2_sound_vo_english_003.vpk hl2_sound_vo_english_003.vpk.disabled
move /y hl2_sound_vo_english_004.vpk hl2_sound_vo_english_004.vpk.disabled
move /y hl2_sound_vo_english_dir.vpk hl2_sound_vo_english_dir.vpk.disabled
)
if %disable_hl2_sounds%==0 (
cd ..\hl2
move /y hl2_sound_misc_000.vpk.disabled hl2_sound_misc_000.vpk
move /y hl2_sound_misc_001.vpk.disabled hl2_sound_misc_001.vpk
move /y hl2_sound_misc_002.vpk.disabled hl2_sound_misc_002.vpk
move /y hl2_sound_misc_dir.vpk.disabled hl2_sound_misc_dir.vpk
move /y hl2_sound_vo_english_000.vpk.disabled hl2_sound_vo_english_000.vpk
move /y hl2_sound_vo_english_001.vpk.disabled hl2_sound_vo_english_001.vpk
move /y hl2_sound_vo_english_002.vpk.disabled hl2_sound_vo_english_002.vpk
move /y hl2_sound_vo_english_003.vpk.disabled hl2_sound_vo_english_003.vpk
move /y hl2_sound_vo_english_004.vpk.disabled hl2_sound_vo_english_004.vpk
move /y hl2_sound_vo_english_dir.vpk.disabled hl2_sound_vo_english_dir.vpk
)

cd ..\tf
if %disable_map_intros%==1 (
cd ..\tf
move /y media_disabled media
)
if %disable_map_intros%==0 (
cd ..\tf
move /y media media_disabled
)

if %use_new_sdl2%==1 (
move /y SDL2.dll SDL2.dll.disabled
)
if %use_new_sdl2%==0 (
move /y SDL2.dll.disabled SDL2.dll
if %disable_map_intros%==0 (
move /y media_disabled media
)

exit 0
2 changes: 1 addition & 1 deletion cfgs/locked_overrides.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ skinval=0
tonemap=1

// Changes FOV in different fashion, play with it yourself while in a server.
r_aspectratio 0;setcvar r_aspectratio 0
r_aspectratio 0;setcvar r_aspectratio 0
6 changes: 3 additions & 3 deletions cfgs/settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ detail_props_distance=2 // 0: Off, 1: Lowest, 2: Valve default, 3: Very high, 4:
dual_core=0 // 1: Using a Core 2 Duo CPU
eject_casings=0 // 1: Eject empty ammo casings (cosmetic)
gibs=1 // 2: Loadsa gibs
glow_outlines=1 // 0: Disable glow outlines
Expand Down Expand Up @@ -99,13 +101,11 @@ auto_scoreboard_screenshot=0 // Screenshots scoreboard at match end
backpack_borders=1 // 0: Don't show borders for items, 1: Show borders for items based on quality, 2: Show borders for marketable items only

block_cathook_identify=1

block_minidumps=1 // 0: Allow .mdmp files to be generated after a crash

block_stats_reset=1

dashboard_anim=2 // 1: 250ms, 2: 500ms; Sliding animation for menu panels
dashboard_anim=0 // 1: 250ms, 2: 500ms; Sliding animation for menu panels

dashboard_full=1 // Compare "Find A Game" with full_dashboard=1, see which you prefer

Expand Down
Binary file modified vpks/zzz_vusaline_base.vpk
Binary file not shown.
24 changes: 10 additions & 14 deletions vusaline.iss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ WizardStyle=modern
[Files]
Source: "assets\*"; Flags: dontcopy
Source: "bats\*"; DestDir: "{app}\Vusaline"; Flags: ignoreversion
Source: "cfgs\*"; DestDir: "{app}\tf\custom\vusaline_configuration\cfg"; Flags: ignoreversion
Source: "cfgs\*"; DestDir: "{app}\tf\cfg\Vusaline"; Flags: ignoreversion
Source: "vpks\*"; DestDir: "{app}\tf\custom"; Flags: ignoreversion

[Run]
Expand All @@ -43,14 +43,10 @@ Filename: "{app}\Vusaline\file_operations.bat"; Flags: postinstall runhidden; Be
Filename: "{app}\Vusaline\revert_file_operations.bat"; Flags: runhidden

[Code]
//Welcome to hell
var
cfgAnsiStr, batAnsiStr: AnsiString;
cfgStr, batStr, TF2Path, cvar : String;
cfgAnsiStr, batAnsiStr : AnsiString;
cfgStr, batStr, TF2Path : String;
curWidthA, curHeightA, curWidthB, curHeightB, curWidthC, curHeightC, curHeightZ : Integer;
cb: TNewComboBox;
tb: TNewEdit;
chb: TNewCheckBox;
BackgroundBmp: TBitmapImage;
SettingsPageA, SettingsPageB, SettingsPageC : TWizardPage;
procedure LoadVCLStyle(VClStyleFile: String); external 'LoadVCLStyleW@files:VclStylesInno.dll stdcall delayload setuponly';
Expand Down Expand Up @@ -450,10 +446,10 @@ end;
procedure InitializeWizard();
var
cbAD, cbB, cbCE, cbCT, cbCD, cbCPT, cbCM, cbD, cbDPD, cbDL, cbDC, cbG, cbGOL, cbHDR, cbIDA, cbIGP, cbJB, cbLOD, cbLRA, cbLS, cbLFP, cbLVR, cbMSA, cbOGL, cbOLD, cbPM, cbPFX, cbRD, cbRIP, cbRMD, cbR, cbS, cbSCT, cbSBD, cbSUF, cbSQ, cbSD, cbTS, cbTFP, cbVM, cbVCM, cbVRS, cbW10, cbWP, cbXR, cbASS, cbBP, cbBCI, cbBMD, cbBSR, cbDLF, cbDBA, cbDBF, cbDCP, cbMA, cbP, cbSAD, cbVCD, cbMK : TNewComboBox;
cbAD, cbB, cbCE, cbCT, cbCD, cbCPT, cbCM, cbD, cbDPD, cbDL, cbDC, cbEAC, cbG, cbGOL, cbHDR, cbIDA, cbIGP, cbJB, cbLOD, cbLRA, cbLS, cbLFP, cbLVR, cbMSA, cbOGL, cbOLD, cbPM, cbPFX, cbRD, cbRIP, cbRMD, cbR, cbS, cbSCT, cbSBD, cbSUF, cbSQ, cbSD, cbTS, cbTFP, cbVM, cbVCM, cbVRS, cbW10, cbWP, cbXR, cbASS, cbBP, cbBMD, cbBSR, cbDLF, cbDBA, cbDBF, cbDCP, cbMA, cbP, cbSAD, cbVCD, cbMK : TNewComboBox;
tbMSL, tbMSC, tbMSR, tbIRS : TNewEdit;
begin
if LoadStringFromFile(TF2Path + '\tf\custom\vusaline_configuration\cfg\settings.cfg', cfgAnsiStr) then
if LoadStringFromFile(TF2Path + '\tf\cfg\Vusaline\settings.cfg', cfgAnsiStr) then
begin
LoadStringFromFile(TF2Path + '\Vusaline\file_operations.bat', batAnsiStr)
end
Expand Down Expand Up @@ -535,7 +531,7 @@ begin
CreateDropDown(SettingsPageC, 'Ragdolls', cbRD, 'ragdolls', 'Disabled', 'Enable for 6 seconds', 'Enable for 11 seconds', '', '', '');
CreateDropDown(SettingsPageC, 'Raw mouse input', cbRIP, 'raw_input', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageC, 'Ropes', cbR, 'ropes', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageC, 'Screenshot match end scoreboard', cbASS, 'auto_scoreboard_screenshot', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageC, 'Screenshot match-end scoreboard', cbASS, 'auto_scoreboard_screenshot', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageC, 'Skybox dimensions', cbSBD, 'skybox_dimensions', '2', '3', '', '', '', '');
CreateDropDown(SettingsPageC, 'Sleep whilst unfocused', cbSUF, 'sleep_unfocused','Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageC, 'Sound quality', cbSQ, 'sound_quality', 'Low', 'High', '', '', '', '');
Expand All @@ -558,7 +554,7 @@ begin
BackgroundBmp.Stretch:= True;
BackgroundBmp.Align:= alClient;
BackgroundBmp.Parent:= SettingsPageB.Surface;
CreateDropDown(SettingsPageB, 'Dual-core processor', cbDC, 'dual_core', 'No', 'Yes', '', '', '', '');
CreateDropDown(SettingsPageB, 'Eject ammo casings', cbEAC, 'eject_casings', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageB, 'First-person bullet tracers', cbTFP, 'tracers_firstperson', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageB, 'Gibs/giblets', cbG, 'gibs', 'Disabled', 'Enabled', 'Brutal', '', '', '');
CreateDropDown(SettingsPageB, 'Glow outlines', cbGOL, 'glow_outlines', 'Disabled', 'Enabled', '', '', '', '');
Expand Down Expand Up @@ -592,7 +588,6 @@ begin
CreateDropDown(SettingsPageA, 'Anti-aliasing (MSAA)', cbMSA, 'msaa', 'Disabled', '2x', '4x', '8x', '', '');
CreateDropDown(SettingsPageA, 'Auto record demos', cbAD, 'auto_demos', 'None', 'Competitive Matches', 'Tournament Matches', 'All matches', '', '');
CreateDropDown(SettingsPageA, 'Backpack item borders', cbBP, 'backpack_borders', 'Disabled', 'Item quality borders', 'Item marketability borders', '', '', '');
CreateDropDown(SettingsPageA, 'Block catbot identify', cbBCI, 'block_cathook_identify', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageA, 'Block minidumps', cbBMD, 'block_minidumps', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageA, 'Block player stats reset', cbBSR, 'block_stats_reset', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageA, 'Blood decals', cbB, 'blood', 'Disabled', 'Enabled', '', '', '', '');
Expand All @@ -605,8 +600,9 @@ begin
CreateDropDown(SettingsPageA, 'Crosshair target avatar', cbIDA, 'idavatar', 'Disabled', 'Friends only', 'Everyone', '', '', '');
CreateDropDown(SettingsPageA, 'Dashboard panel sliding animation', cbDBA, 'dashboard_anim', 'Disabled', 'Normal', 'Extra smooth', '', '', '');
CreateDropDown(SettingsPageA, 'Demo recording requirements', cbRMD, 'remove_demos_with_no_kills', 'None', '2 kills in 10 minutes', '', '', '', '');
CreateDropDown(SettingsPageA, 'Detail prop sprites', cbDPD, 'detail_props_distance', 'Disabled', 'Low', 'Medium', 'High', 'Very high', '');
CreateDropDown(SettingsPageA, 'Detail prop distance', cbDPD, 'detail_props_distance', 'Disabled', 'Low', 'Medium', 'High', 'Very high', '');
CreateDropDown(SettingsPageA, 'Disconnect prompt', cbDCP, 'disconnect_prompt', 'Disabled', 'Enabled', '', '', '', '');
CreateDropDown(SettingsPageA, 'Dual-core processor', cbDC, 'dual_core', 'No', 'Yes', '', '', '', '');
WizardForm.NextButton.Left := WizardForm.BackButton.Left + WizardForm.BackButton.Width + ScaleX(2);
WizardForm.CancelButton.Left := WizardForm.NextButton.Left + WizardForm.NextButton.Width + ScaleX(3);
Expand Down Expand Up @@ -681,7 +677,7 @@ begin
if CurStep = ssDone then
begin
cfgAnsiStr:= cfgStr;
SaveStringToFile(ExpandConstant('{app}/tf/custom/vusaline_configuration/cfg/settings.cfg'), cfgAnsiStr, False);
SaveStringToFile(ExpandConstant('{app}/tf/cfg/Vusaline/settings.cfg'), cfgAnsiStr, False);
end;
end;
Expand Down

0 comments on commit 47876e6

Please sign in to comment.