-
Notifications
You must be signed in to change notification settings - Fork 2
/
Install ProjectProps.bat
64 lines (61 loc) · 2.1 KB
/
Install ProjectProps.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
set workingDir=%CD%\modloader\Project Props\
echo Props Props Installer
echo ---------------------
echo.
echo Installation Methods:
echo 1. Default Installation
echo 2. With Weeds and ProcObjs (Impacts performance)
echo 3. With Weeds only (Impacts performance)
echo 4. With ProcObjs only
echo 5. Minimal Installation
echo.
echo Weeds = Small trees, grasses etc.
echo ProcObj = Objects placed randomly on roads and pavements. But gets bugged sometimes and appear on walls too!
echo.
echo.
choice /C 12345 /M "Select an installation method."
if "%ERRORLEVEL%"=="2" (
MOVE /Y "%CD%\optional\lae_stream7.ipl" "%workingDir%ipl_src\"
MOVE /Y "%CD%\optional\procobj.dat" "%workingDir%"
MOVE /Y "%CD%\optional\surfinfo.dat" "%workingDir%"
)
if "%ERRORLEVEL%"=="3" (
MOVE /Y "%CD%\optional\lae_stream7.ipl" "%workingDir%ipl_src\"
)
if "%ERRORLEVEL%"=="4" (
MOVE /Y "%CD%\optional\procobj.dat" "%workingDir%"
MOVE /Y "%CD%\optional\surfinfo.dat" "%workingDir%"
)
if "%ERRORLEVEL%"=="5" (
@DEL /S /Q "%workingDir%\ipl_src\lae_stream7.ipl"
)
echo ---------------------------------
echo Converting IPLs (Text to Binary):
echo ---------------------------------
echo.
FOR %%i IN ("%workingDir%\ipl_src\*.ipl") DO (
echo Processing %%~ni.ipl...
echo -------------------------------------------
cmd /C ""%CD%\tools\fastman92_processor.exe" /file_type ipl /input_type text /input_game GAME_EXACT_GTASA_PC /input_filename "%workingDir%\ipl_src\%%~ni.ipl" /output_type binary /output_game GAME_EXACT_GTASA_PC /output_filename "%workingDir%\img_src\%%~ni.ipl""
echo.
)
echo Finished Convertering IPLs
echo.
echo ----------------------------------------
echo Building IMG archive (ProjectProps.img):
echo ----------------------------------------
echo.
cmd /C ""%CD%\tools\fastman92ImgConsole32.exe" -script "%workingDir%\ProjectProps.img.txt""
echo Finished Building IMG archive
echo.
echo Clearning up...
echo.
@RD /S /Q "%workingDir%\ipl_src\"
@RD /S /Q "%workingDir%\img_src\"
@RD /S /Q "%CD%\optional\"
@RD /S /Q "%CD%\tools\"
@DEL /S /Q "%CD%\README.md"
@DEL /S /Q "%workingDir%\ProjectProps.img.txt"
echo Installation Complete
pause